Skip to content
Permalink
Browse files

Enhance NAV_LIST_UL by menu type B and BA

  • Loading branch information...
slackero committed Feb 24, 2014
1 parent 09b1911 commit 1eba9679db7714bd9189ad76fad9a4e29f304124
Showing with 14 additions and 6 deletions.
  1. +14 −6 include/inc_front/front.func.inc.php
@@ -2975,13 +2975,24 @@ class_active_li|class_active_a,
$parent = false; // do not show parent link
$articlemenu = false; // do not show category's article titles as menu entry
$bootstrap = false; // bootstrap dropdown style
/**
* P = Show parent level
* B = Bootstrap compatible rendering
* A = Articles as menu items
* F = Folded, unfold only active level
* HCSS = Sample horizontal CSS based menu
* VCSS = Sample vertical CSS based menu
**/
switch($menu_type) {
case 'B': $bootstrap = true;
break;
case 'BA': $bootstrap = true;
case 'A': $articlemenu = true;
break;
// show parent level too
case 'PBA': $bootstrap = true;
case 'PA': $articlemenu = true;
case 'P': $parent = true;
@@ -3001,16 +3012,13 @@ class_active_li|class_active_a,
$unfold = 'active_path';
break;
// horizontal, all levels unfolded, add special code for horizontal flyout menu
case 'HCSSP': $parent = true;
case 'HCSS': $create_css = true;
break;
// horizontal, all levels unfolded, add special code for vertical flyout menu
case 'VCSSP': $parent = true;
case 'VCSS': $create_css = true;
break;
}
$start_id = empty($parameter[1]) ? 0 : intval($parameter[1]);

0 comments on commit 1eba967

Please sign in to comment.
You can’t perform that action at this time.