Show
Ignore:
Timestamp:
07/12/08 16:57:24 (5 years ago)
Author:
patdenice
Message:

Merge from branch-1_7 (r2432).

Add triggers for category name (render_category_name).
Add strip_tags for ALT attribute on category thumbnail.

Files:
1 modified

Legend:

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

    r2424 r2433  
    225225  foreach ($categories as $category) 
    226226  { 
     227    $category['name'] = trigger_event( 
     228        'render_category_name', 
     229        $category['name'], 
     230        'subcatify_category_name' 
     231        ); 
     232 
    227233    if ($page['section']=='recent_cats') 
    228234    { 
     
    240246          'ID'    => $category['id'], 
    241247          'TN_SRC'   => $thumbnail_src_of[$category['representative_picture_id']], 
    242           'ALT'   => $category['name'], 
     248          'ALT'   => strip_tags($category['name']), 
    243249          'ICON'  => $icon_ts, 
    244250