Ignore:
Timestamp:
Aug 26, 2007, 1:10:12 AM (17 years ago)
Author:
rub
Message:

Resolved 0000728: Add description triggers for categories and elements

Add:

o render_category_description
o render_category_literal_description
o render_element_description

Merge branch-1_7 2048:2050 into BSF

File:
1 edited

Legend:

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

    r1971 r2079  
    218218    update_cats_with_filtered_data($categories);
    219219  }
     220
     221  // add default event handler for rendering category literal description
     222  add_event_handler('render_category_literal_description',
     223    create_function('$d',
     224      'return strip_tags($d, \'<a><br><p><b><i><small><strong><font>\');'));
     225
    220226  trigger_action('loc_begin_index_category_thumbnails', $categories);
    221227  if ($conf['subcatify'])
     
    225231    foreach ($categories as $category)
    226232    {
    227       $comment = strip_tags(@$category['comment'], '<a><br><p><b><i><small><strong><font>');
    228233      if ($page['section']=='recent_cats')
    229234      {
     
    258263                                    '<br />'
    259264                                  ),
    260           'DESCRIPTION' => @$comment,
     265          'DESCRIPTION' =>
     266            trigger_event('render_category_literal_description',
     267              trigger_event('render_category_description',
     268                @$category['comment'])),
    261269          'NAME'  => $name,
    262270          )
Note: See TracChangeset for help on using the changeset viewer.