Changeset 12451


Ignore:
Timestamp:
Oct 15, 2011, 5:27:33 PM (9 years ago)
Author:
patdenice
Message:

feature:2473
Apply trigger render_element_description for thumbnail title

Location:
trunk/include
Files:
2 edited

Legend:

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

    r12391 r12451  
    110110  }
    111111
     112  $name = get_picture_title($row);
     113
    112114  $tpl_var =
    113115    array(
    114116      'ID'        => $row['id'],
    115117      'TN_SRC'    => get_thumbnail_url($row),
    116       'TN_ALT'    => htmlspecialchars(strip_tags(get_picture_title($row))),
     118      'TN_ALT'    => htmlspecialchars(strip_tags($name)),
    117119      'TN_TITLE'  => get_thumbnail_title($row),
    118120      'URL'       => $url,
     
    141143    $tpl_var['NB_HITS'] = $row['hit'];
    142144  }
    143 
    144   $name = trigger_event('render_element_description', get_picture_title($row));
    145145 
    146146  switch ($page['section'])
  • trunk/include/functions.inc.php

    r12023 r12451  
    881881  if (isset($info['name']) and !empty($info['name']))
    882882  {
    883     return $info['name'];
     883    return trigger_event('render_element_description', $info['name']);
    884884  }
    885885
Note: See TracChangeset for help on using the changeset viewer.