Changeset 2154:a70eddc75ca4
- Timestamp:
- 09/29/13 16:42:19 (12 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.admincombos.php
r2049 r2154 30 30 @return <b>array</b> the combo box (form::combo -compatible format) 31 31 */ 32 public static function getCategoriesCombo($categories,$include_empty = true ) {32 public static function getCategoriesCombo($categories,$include_empty = true,$use_url = false) { 33 33 $categories_combo = array(); 34 34 if ($include_empty) { … … 38 38 $categories_combo[] = new formSelectOption ( 39 39 html::escapeHTML($categories->cat_title).' ('.$categories->nb_post.')', 40 $categories->cat_id,40 ($use_url ? $categories->cat_url : $categories->cat_id), 41 41 ($categories->level-1 ? 'sub-option'.($categories->level-1) : '') 42 42 ); -
plugins/simpleMenu/index.php
r2120 r2154 25 25 $categories_label = array(); 26 26 $rs = $core->blog->getCategories(array('post_type'=>'post')); 27 $categories_combo = dcAdminCombos::getCategoriesCombo($rs,false); 28 27 $categories_combo = dcAdminCombos::getCategoriesCombo($rs,false,true); 29 28 $rs->moveStart(); 30 29 while ($rs->fetch()) { 31 $categories_label[$rs->cat_id] = html::escapeHTML($rs->cat_title); 32 } 30 $categories_label[$rs->cat_url] = html::escapeHTML($rs->cat_title); 31 } 32 33 33 # Liste des langues utilisées 34 34 $langs_combo = dcAdminCombos::getLangscombo(
Note: See TracChangeset
for help on using the changeset viewer.