-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathe_menu.php
81 lines (69 loc) · 1.5 KB
/
e_menu.php
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2015 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Configuration for menu options through Admin Area > Menu manager
*
*/
if (!defined('e107_INIT')) { exit; }
class cookbook_menu
{
function __construct()
{
// e107::lan('banner','admin', 'true');
}
/**
* Configuration Fields.
* @return array
*/
public function config($menu='')
{
$fields = array();
//print_a($menu);
if($menu == "cookbook_latest")
{
$fields['caption'] = array(
'title' => LAN_CAPTION,
'type' => 'text',
'multilan' => true,
'writeParms' => array('size' => 'xxlarge')
);
$fields['limit'] = array(
'title' => LAN_LIMIT,
'type' => 'number',
'writeParms' => array('default' => 10)
);
}
if($menu == "cookbook_categories")
{
$fields['caption'] = array(
'title' => LAN_CAPTION,
'type' => 'text',
'multilan' => true,
'writeParms' => array('size' => 'xxlarge')
);
}
if($menu == "cookbook_popkeywords")
{
$fields['caption'] = array(
'title' => LAN_CAPTION,
'type' => 'text',
'multilan' => true,
'writeParms' => array('size' => 'xxlarge')
);
$fields['limit'] = array(
'title' => LAN_LIMIT,
'type' => 'number',
'writeParms' => array('default' => 10)
);
}
return $fields;
}
}
class cookbook_menu_form extends e_form
{
}