Changeset 587:98698950a78c for plugins
- Timestamp:
- 07/13/11 11:05:17 (14 years ago)
- Branch:
- themes
- Location:
- plugins/simpleMenu
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/simpleMenu/_admin.php
r534 r587 28 28 preg_match('/plugin.php\?p=simpleMenu(&.*)?$/',$_SERVER['REQUEST_URI']), 29 29 $core->auth->check('usage,contentadmin',$core->blog->id)); 30 31 require dirname(__FILE__).'/_widgets.php'; 30 32 ?> -
plugins/simpleMenu/_define.php
r586 r587 16 16 /* Description*/ "Simple menu for Dotclear", 17 17 /* Author */ "Franck Paul", 18 /* Version */ '0. 7',18 /* Version */ '0.8', 19 19 array( 20 20 'permissions' => 'admin' -
plugins/simpleMenu/_public.php
r567 r587 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 require dirname(__FILE__).'/_widgets.php'; 15 14 16 # Simple menu template functions 15 17 $core->tpl->addValue('SimpleMenu',array('tplSimpleMenu','simpleMenu')); … … 17 19 class tplSimpleMenu 18 20 { 21 # Template function 19 22 public static function simpleMenu($attr) 20 23 { … … 32 35 "'".addslashes($description)."'". 33 36 '); ?>'; 37 } 38 39 # Widget function 40 public static function simpleMenuWidget($w) 41 { 42 global $core, $_ctx; 43 44 if ($w->homeonly && $core->url->type != 'default') { 45 return; 46 } 47 48 $menu = tplSimpleMenu::displayMenu(); 49 if ($menu == '') { 50 return; 51 } 52 53 return '<div class="simple-menu">'.($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : '').$menu.'</div>'; 34 54 } 35 55 -
plugins/simpleMenu/index.php
r573 r587 109 109 110 110 # --BEHAVIOR-- adminSimpleMenuAddType 111 # Should add an item to $items as an array(<label>,<optional step (true or false)>)111 # Should add an item to $items[<id>] as an array(<label>,<optional step (true or false)>) 112 112 $core->callBehavior('adminSimpleMenuAddType',$items); 113 113
Note: See TracChangeset
for help on using the changeset viewer.