Changeset 876 for trunk/include/functions_html.inc.php
- Timestamp:
- Sep 25, 2005, 8:31:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r862 r876 340 340 341 341 $ref_level = 0; 342 $menu = ' 343 <ul class="menu">'; 342 $menu = ''; 344 343 345 344 foreach ($categories as $category) 346 345 { 347 $level = substr_count($category['global_rank'], '.') ;346 $level = substr_count($category['global_rank'], '.') + 1; 348 347 if ($level > $ref_level) 349 348 { 350 349 $menu.= ' 351 <ul class="menu">'; 350 <ul>'; 351 } 352 else if ($level == $ref_level) 353 { 354 $menu.= ' 355 </li>'; 352 356 } 353 357 else if ($level < $ref_level) … … 355 359 // we may have to close more than one level at the same time... 356 360 $menu.= str_repeat("\n</ul>",($ref_level-$level)); 361 $menu.= "\n</li>"; 357 362 } 358 363 $ref_level = $level; … … 383 388 $menu.= get_icon($category['date_last']); 384 389 } 385 386 $menu.= ' 387 </li>'; 388 } 389 390 $menu.= ' 390 } 391 392 $menu.= '</li> 391 393 </ul>'; 392 394
Note: See TracChangeset
for help on using the changeset viewer.