Changeset 1851 for trunk/include/functions_category.inc.php
- Timestamp:
- Feb 22, 2007, 9:20:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r1840 r1851 387 387 * @return string 388 388 */ 389 function get_display_images_count($cat_nb_images, $cat_count_images, $cat_count_categories, $short_message = true )389 function get_display_images_count($cat_nb_images, $cat_count_images, $cat_count_categories, $short_message = true, $Separator = '\n') 390 390 { 391 391 $display_text = ''; 392 392 393 if ($cat_count_images>0) 394 {//at least one image direct or indirect 393 if ($cat_count_images > 0) 394 { 395 if ($cat_nb_images > 0 and $cat_nb_images < $cat_count_images) 396 { 397 $display_text.= get_display_images_count($cat_nb_images, $cat_nb_images, 0, $short_message, $Separator).$Separator; 398 $cat_count_images-= $cat_nb_images; 399 $cat_nb_images = 0; 400 } 401 402 //at least one image direct or indirect 395 403 $display_text.= l10n_dec('image_available', 'images_available', $cat_count_images); 396 404 397 if ($cat_count_categories==0 or $cat_nb_images>=$cat_count_images) 398 {//no descendant categories or descendants do not contain images 405 if ($cat_count_categories == 0 or $cat_nb_images == $cat_count_images) 406 { 407 //no descendant categories or descendants do not contain images 399 408 if (! $short_message) 400 409 {
Note: See TracChangeset
for help on using the changeset viewer.