Code: Select all
<?php
// Direct call NAV_LIST_UL -> function buildCascadingMenu
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); }
// ----------------------------------------------------------------
$_vertmenu = '';
if(isset($LEVEL_ID[1])) {
$_vertmenu = trim( buildCascadingMenu( 'F,' . $LEVEL_ID[2] . ',,act_path, active, id' ) );
// this is exactly the same as {NAV_LIST_UL: F, start_level_id,,act_path, active, id }
// but built with php function behind
if( $_vertmenu ) {
$_vertmenu = '<!-- JS: {TEMPLATE}lib/sticky/sticky.js --> <div id="nav"><div class="subnavi">' . $_vertmenu . '</div></div>';
} else {
$_vertmenu = '';
}
}
$content['all'] = str_replace( '{SUBNAVI1}', $_vertmenu, $content['all'] );
?>
Wie wohl? flip-flop?