-
Notifications
You must be signed in to change notification settings - Fork 4
/
e_menu.php
60 lines (43 loc) · 1.19 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
<?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)
*
*
*/
if (!defined('e107_INIT')) { exit; }
//v2.x Standard for extending menu configuration within Menu Manager. (replacement for v1.x config.php)
class paypal_donation_menu
{
function __construct()
{
// e107::lan('paypal_donation','menu',true); // English_menu.php or {LANGUAGE}_menu.php
}
/**
* Configuration Fields.
* @return array
*/
public function config($menu='')
{
$fields = array();
$fields['caption'] = array('title'=> "Custom Caption", 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'));
// $fields['blankCount'] = array('title'=> "Enabled", 'type'=>'number');
// $fields['blankCustom'] = array('title'=> "Enabled", 'type'=>'method'); // see below.
return $fields;
}
}
// optional - for when using custom methods above.
class paypal_donation_menu_form extends e_form
{
/*
function blankCustom($curVal)
{
$frm = e107::getForm();
$opts = array(1,2,3,4);
$frm->select('blankCustom', $opts, $curVal);
}*/
}
?>