Changeset 597:08c2eb1ecb30 for plugins/simpleMenu/index.php
- Timestamp:
- 07/17/11 12:48:38 (14 years ago)
- Branch:
- themes
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/simpleMenu/index.php
r587 r597 88 88 89 89 # Liste des types d'item de menu 90 $items = array('home' => array(__('Home'),false)); 90 $items = new ArrayObject(); 91 $items['home'] = new ArrayObject(array(__('Home'),false)); 91 92 92 93 if (count($langs_combo) > 1) { 93 $items['lang'] = array(__('Language'),true);94 $items['lang'] = new ArrayObject(array(__('Language'),true)); 94 95 } 95 96 if (count($categories_combo)) { 96 $items['category'] = array(__('Category'),true);97 $items['category'] = new ArrayObject(array(__('Category'),true)); 97 98 } 98 99 if (count($months_combo) > 1) { 99 $items['archive'] = array(__('Archive'),true);100 $items['archive'] = new ArrayObject(array(__('Archive'),true)); 100 101 } 101 102 if ($core->plugins->moduleExists('pages')) { 102 103 if(count($pages_combo)) 103 $items['pages'] = array(__('Page'),true);104 $items['pages'] = new ArrayObject(array(__('Page'),true)); 104 105 } 105 106 if ($core->plugins->moduleExists('tags')) { 106 107 if (count($tags_combo) > 1) 107 $items['tags'] = array(__('Tags'),true);108 $items['tags'] = new ArrayObject(array(__('Tags'),true)); 108 109 } 109 110 … … 112 113 $core->callBehavior('adminSimpleMenuAddType',$items); 113 114 114 $items['special'] = array(__('User defined'),false);115 $items['special'] = new ArrayObject(array(__('User defined'),false)); 115 116 116 117 $items_combo = array();
Note: See TracChangeset
for help on using the changeset viewer.