Changeset 1868


Ignore:
Timestamp:
Mar 4, 2007, 10:36:30 AM (17 years ago)
Author:
rub
Message:

Remove "TODO" on picture display showed on the caddie...

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_global.php

    r1815 r1868  
    370370
    371371  $query = '
    372 SELECT id,path,tn_ext
     372SELECT id,path,tn_ext,file,filesize
    373373  FROM '.IMAGES_TABLE.'
    374374  WHERE id IN ('.implode(',', $page['cat_elements_id']).')
     
    394394        'ID' => $row['id'],
    395395        'SRC' => $src,
    396         'ALT' => 'TODO',
    397         'TITLE' => 'TODO'
     396        'ALT' => $row['file'],
     397        'TITLE' => get_thumbnail_title($row)
    398398        )
    399399      );
  • trunk/include/category_default.inc.php

    r1864 r1868  
    7575  $thumbnail_url = get_thumbnail_url($row);
    7676
    77   // message in title for the thumbnail
    78   $thumbnail_title = $row['file'];
    79   if (isset($row['filesize']))
    80   {
    81     $thumbnail_title .= ' : '.$row['filesize'].' KB';
    82   }
    83 
    8477  // link on picture.php page
    8578  $url = duplicate_picture_url(
     
    9689      'IMAGE'              => $thumbnail_url,
    9790      'IMAGE_ALT'          => $row['file'],
    98       'IMAGE_TITLE'        => $thumbnail_title,
     91      'IMAGE_TITLE'        => get_thumbnail_title($row),
    9992      'IMAGE_TS'           => get_icon($row['date_available']),
    10093
  • trunk/include/functions.inc.php

    r1866 r1868  
    820820}
    821821
     822/* returns the title of the thumnail */
     823function get_thumbnail_title($element_info)
     824{
     825  // message in title for the thumbnail
     826  if (isset($element_info['file']))
     827  {
     828    $thumbnail_title = $element_info['file'];
     829  }
     830  else
     831  {
     832    $thumbnail_title = '';
     833  }
     834 
     835  if (!empty($element_info['filesize']))
     836  {
     837    $thumbnail_title .= ' : '.$element_info['filesize'].' KB';
     838  }
     839
     840  return $thumbnail_title;
     841}
    822842
    823843// my_error returns (or send to standard output) the message concerning the
Note: See TracChangeset for help on using the changeset viewer.