Changeset 6408 for extensions
- Timestamp:
- May 28, 2010, 10:52:34 AM (15 years ago)
- Location:
- extensions/rv_menutree/trunk
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_menutree/trunk/main.inc.php
r6393 r6408 30 30 add_event_handler('blockmanager_apply', 'rv_mt_menubar_categories'); 31 31 32 if ($expand )32 if ($expand or $filter) 33 33 return $where; 34 if ($filter)35 {36 global $rv_mt_all_open;37 $rv_mt_all_open = true;38 return $where;39 }40 34 41 35 global $page; … … 57 51 if (($block = $menu->get_block('mbCategories')) != null) 58 52 { 59 global $template, $page , $rv_mt_all_open;53 global $template, $page; 60 54 61 55 $dirname = dirname(__FILE__); … … 66 60 'PATH' => get_root_url().'plugins/'. basename($dirname).'/', 67 61 'CSS' => str_replace( 'url(', 'url('.get_root_url().'plugins/'.basename($dirname).'/',file_get_contents($dirname.'/rvtree-min.css')), 68 'ALL_OPEN' => $rv_mt_all_open,69 62 'UPPER_IDS' => isset($page['category']['uppercats']) ? array_flip( explode(',', $page['category']['uppercats'])) : null, 70 63 ) -
extensions/rv_menutree/trunk/menubar_categories.tpl
r6389 r6408 33 33 {/if} 34 34 {if $cat.count_categories > 0} 35 {if $rvmt.ALL_OPENor isset($rvmt.UPPER_IDS[$cat.id])}35 {if isset($U_STOP_FILTER) or isset($rvmt.UPPER_IDS[$cat.id])} 36 36 {assign var=liclass value=$liclass|@cat:'liOpen'} 37 37 {else}
Note: See TracChangeset
for help on using the changeset viewer.