[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/template/inc_script/frontend_render/disabled/ -> h3_menu.php (source)

   1  <?php
   2  
   3  /**
   4   * Create menu where Top Level is <h3>Level</h3> and all submenu as <ul></ul>
   5   * good for having footer link blocks
   6   */
   7  
   8  $h3            = array();
   9  $start_id    = 0;
  10  foreach($content['struct'] as $key => $item) {
  11  
  12      if( $item['acat_struct'] == 0 && _getStructureLevelDisplayStatus($key, $start_id) ) {
  13      
  14          $h3[] = '<h3>' . get_level_ahref($key) . html_entities($item['acat_name']) . '</a></h3>';
  15          $h3[] = buildCascadingMenu(','.$key); // the same as used behind {NAV_LIST_UL:...} - $key is the ID to start with
  16  
  17      }
  18  }
  19  
  20  $content['all'] = str_replace('{H3_MENU}', implode(LF, $h3), $content['all']);
  21  
  22  ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7