Skip to content

Commit

Permalink
Enhance NAV_LIST_UL by menu type B and BA
Browse files Browse the repository at this point in the history
  • Loading branch information
slackero committed Feb 24, 2014
1 parent 09b1911 commit 1eba967
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions include/inc_front/front.func.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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]);
Expand Down

0 comments on commit 1eba967

Please sign in to comment.