'."\n"; // traverse selected menu item $selected_menu_item_id = 0; if($cmsid > 0) $selected_menu_item_id = $cmsid; else $selected_menu_item_id = $parent_cmsid; // generate menu print $cms->create_front_end_menu_html(1, 0, $selected_menu_item_id, $menu_item_template); ?>
Hoofdmenu
{anchor}
0) { // Other Content if($type == "") { // try from url if type is not found yet if(file_exists("content_viewers/".$_GET['type']."/viewer.php")) // use $_GET here $type = $_GET['type']; } include("content_viewers/".$type."/viewer.php"); } elseif($cmsid > 0) { // Text / HTML Content include("content_viewers/html_viewer/viewer.php"); } elseif($parent_cmsid > 0 || $parent_ocid > 0) { // Show a total overview of all items of this type include("content_overviews/".$subtype."/overview.php"); } else { // Show the default page include("content_viewers/default.php"); } /*************** PRINT BUFFER CONTENTS *********************/ $buffer = ob_get_contents(); ob_end_clean(); $content_html = ""; $lines = explode("\n", $buffer); foreach($lines as $line) $content_html .= "\t\t\t\t\t\t\t\t".$line."\n"; /***********************************************************/ // Start new buffer for bottom contents ob_start(); ?>