[ Index ] |
PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10) |
[Summary view] [Print] [Text view]
1 <?php 2 3 // ---------------------------------------------------------------- 4 // obligate check for phpwcms constants 5 if (!defined('PHPWCMS_ROOT')) { 6 die("You Cannot Access This Script Directly, Have a Nice Day."); 7 } 8 // ---------------------------------------------------------------- 9 10 11 if( ! ( strpos($content["all"],'{MY_LEVEL_NAV}')===false ) ) { 12 13 $complexNav = ''; 14 15 // equal template_defaults for all NAV_ROW 16 // don't forget to use $GLOBALS when using this in function 17 // like: $GLOBALS['template_default']["nav_row"]["after"] 18 // and : $GLOBALS['LEVEL_ID'] 19 $template_default["nav_row"]["after"] = '</ul>'; 20 $template_default["nav_row"]["between"] = "\n"; 21 $template_default["nav_row"]["link_before"] = '<li class="inactive">'; 22 $template_default["nav_row"]["link_after"] = '</li>'; 23 $template_default["nav_row"]["link_before_active"] = '<li class="active">'; 24 $template_default["nav_row"]["link_after_active"] = '</li>'; 25 $template_default["nav_row"]["link_direct_before"] = ''; 26 $template_default["nav_row"]["link_direct_after"] = ''; 27 $template_default["nav_row"]["link_direct_before_active"] = ''; 28 $template_default["nav_row"]["link_direct_after_active"] = ''; 29 30 foreach($LEVEL_ID as $depth => $thisStructureID) { 31 32 switch($depth) { 33 34 case 0: // Top Level 35 $template_default["nav_row"]["before"] = '<ul class="levelClass0">'; 36 $complexNav .= nav_level_row($thisStructureID,0); 37 38 break; 39 40 case 1: // 1st Level 41 $template_default["nav_row"]["before"] = '<ul class="levelClass1">'; 42 $complexNav .= nav_level_row($thisStructureID,0); 43 break; 44 45 case 2: // 2nd Level 46 $template_default["nav_row"]["before"] = '<ul class="levelClass2">'; 47 $complexNav .= nav_level_row($thisStructureID,0); 48 break; 49 50 case 3: // 3rd Level 51 $template_default["nav_row"]["before"] = '<ul class="levelClass3">'; 52 $complexNav .= nav_level_row($thisStructureID,0); 53 break; 54 55 case 4: // 4th Level 56 $template_default["nav_row"]["before"] = '<ul class="levelClass4">'; 57 $complexNav .= nav_level_row($thisStructureID,0); 58 break; 59 60 } 61 } 62 63 $content["all"] = str_replace('{MY_LEVEL_NAV}', $complexNav, $content["all"]); 64 65 } 66 67 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Nov 16 22:51:00 2010 | Cross-referenced by PHPXref 0.7 |