Changeset 1840 for trunk/include/functions_html.inc.php
- Timestamp:
- Feb 20, 2007, 2:40:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r1830 r1840 459 459 $menu.= '>'.$category['name'].'</a>'; 460 460 461 // Count of category is main 462 // if not picture on categorie, test on sub-categories 463 if (($category['nb_images'] > 0) or ($category['count_images'] > 0)) 464 { 461 if ( $category['count_images']>0 ) 462 {// at least one direct or indirect image 465 463 $menu.= "\n".'<span class="'; 466 $menu.= ($category['nb_images'] > 0 ? "menuInfoCat" 464 // at least one image in this category -> class menuInfoCat 465 $menu.= ($category['nb_images'] > 0 ? "menuInfoCat" 467 466 : "menuInfoCatByChild").'"'; 468 467 $menu.= ' title="'; … … 474 473 false 475 474 ).'">'; 476 $menu.= '['.($category['nb_images'] > 0 ? $category['nb_images']477 : $category['count_images']).']';475 // show total number of images 476 $menu.= '['.$category['count_images'].']'; 478 477 $menu.= '</span>'; 479 478 }
Note: See TracChangeset
for help on using the changeset viewer.