Changeset 11999


Ignore:
Timestamp:
08/26/11 14:24:32 (8 years ago)
Author:
plg
Message:

feature 1797 added: use photo title for thumbnail ALT attribute if possible

File:
1 edited

Legend:

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

    r11996 r11999  
    114114      'ID'        => $row['id'], 
    115115      'TN_SRC'    => get_thumbnail_url($row), 
    116       'TN_ALT'    => $row['file'], 
     116      'TN_ALT'    => htmlspecialchars(strip_tags(get_picture_title($row))), 
    117117      'TN_TITLE'  => get_thumbnail_title($row), 
    118118      'URL'       => $url, 
     
    142142  } 
    143143 
    144   if (isset($row['name']) and $row['name'] != '') 
    145   { 
    146     $name = $row['name']; 
    147   } 
    148   else 
    149   { 
    150     $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 
    151   } 
    152    
    153   $name = trigger_event('render_element_description', $name); 
     144  $name = trigger_event('render_element_description', get_picture_title($row)); 
    154145   
    155146  switch ($page['section']) 
Note: See TracChangeset for help on using the changeset viewer.