Changeset 1868
- Timestamp:
- Mar 4, 2007, 10:36:30 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_global.php
r1815 r1868 370 370 371 371 $query = ' 372 SELECT id,path,tn_ext 372 SELECT id,path,tn_ext,file,filesize 373 373 FROM '.IMAGES_TABLE.' 374 374 WHERE id IN ('.implode(',', $page['cat_elements_id']).') … … 394 394 'ID' => $row['id'], 395 395 'SRC' => $src, 396 'ALT' => 'TODO',397 'TITLE' => 'TODO'396 'ALT' => $row['file'], 397 'TITLE' => get_thumbnail_title($row) 398 398 ) 399 399 ); -
trunk/include/category_default.inc.php
r1864 r1868 75 75 $thumbnail_url = get_thumbnail_url($row); 76 76 77 // message in title for the thumbnail78 $thumbnail_title = $row['file'];79 if (isset($row['filesize']))80 {81 $thumbnail_title .= ' : '.$row['filesize'].' KB';82 }83 84 77 // link on picture.php page 85 78 $url = duplicate_picture_url( … … 96 89 'IMAGE' => $thumbnail_url, 97 90 'IMAGE_ALT' => $row['file'], 98 'IMAGE_TITLE' => $thumbnail_title,91 'IMAGE_TITLE' => get_thumbnail_title($row), 99 92 'IMAGE_TS' => get_icon($row['date_available']), 100 93 -
trunk/include/functions.inc.php
r1866 r1868 820 820 } 821 821 822 /* returns the title of the thumnail */ 823 function 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 } 822 842 823 843 // my_error returns (or send to standard output) the message concerning the
Note: See TracChangeset
for help on using the changeset viewer.