1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<?php
// $Header: /cvsroot/bitweaver/_bit_pigeonholes/admin/admin_pigeonholes_inc.php,v 1.8 2006/04/26 11:02:08 bitweaver Exp $
$pigeonholeSettings = array(
'display_pigeonhole_path' => array(
'label' => 'Display Path',
'note' => 'Display category paths above the page leading to the object.',
),
'pigeonholes_display_members' => array(
'label' => 'Display Members',
'note' => 'Show the other members of the same categories at the bottom of the page.',
),
'display_pigeonhole_description' => array(
'label' => 'Display Description',
'note' => 'When showing the category members, you can display the category description as well.',
),
'pigeonholes_themes' => array(
'label' => 'Enable variable theme selection',
'note' => 'Allow the selection of a different theme to use for a category.',
),
'pigeonholes_permissions' => array(
'label' => 'Enable variable permission selection',
'note' => 'Allow the selection of different permissions to use for each category.',
),
'pigeonholes_groups' => array(
'label' => 'Enable group management selection',
'note' => 'Allow the selection of a different group to use for a category.',
),
'pigeonholes_use_jstab' => array(
'label' => 'Use seperate Tab',
'note' => 'When editing content use a seperate tab to categorise.',
),
);
$gBitSmarty->assign( 'pigeonholeSettings', $pigeonholeSettings );
$listStyles = array(
'dynamic' => tra( 'Dynamic list' ),
'table' => tra( 'Table based list' ),
);
$gBitSmarty->assign( 'listStyles', $listStyles );
$memberLimit = array(
'0' => tra( 'None' ),
'10' => 10,
'20' => 20,
'30' => 30,
'50' => 50,
'100' => 100,
'9999' => tra( 'Unlimited' ),
);
$gBitSmarty->assign( 'memberLimit', $memberLimit );
if( !empty( $_REQUEST['pigeonhole_settings'] ) ) {
foreach( array_keys( $pigeonholeSettings ) as $item ) {
simple_set_toggle( $item, PIGEONHOLES_PKG_NAME );
}
simple_set_value( 'pigeonholes_limit_member_number', PIGEONHOLES_PKG_NAME );
simple_set_value( 'pigeonholes_list_style', PIGEONHOLES_PKG_NAME );
simple_set_value( 'pigeonholes_scrolling_list_number', PIGEONHOLES_PKG_NAME );
}
?>
|