Ignore:
Timestamp:
Feb 20, 2007, 2:40:40 AM (17 years ago)
Author:
rvelices
Message:
  • without subcatify, category thumbnail alt text is 'x images in y sub-categories'
  • improved display of 'x images in y sub-categories' or 'x images in this category' for cases when categories contain both images and sub-categories
  • small lang improvement (plural 'Images within the' instead 'Image within the')
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r1830 r1840  
    459459    $menu.= '>'.$category['name'].'</a>';
    460460
    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
    465463      $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"
    467466                                          : "menuInfoCatByChild").'"';
    468467      $menu.= ' title="';
     
    474473                    false
    475474                  ).'">';
    476       $menu.= '['.($category['nb_images'] > 0 ? $category['nb_images']
    477                                               : $category['count_images']).']';
     475      // show total number of images
     476      $menu.= '['.$category['count_images'].']';
    478477      $menu.= '</span>';
    479478    }
Note: See TracChangeset for help on using the changeset viewer.