Changeset 2078 for branches/branch-1_7
- Timestamp:
- Aug 26, 2007, 1:08:02 AM (17 years ago)
- Location:
- branches/branch-1_7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/include/category_cats.inc.php
r1900 r2078 178 178 update_cats_with_filtered_data($categories); 179 179 } 180 181 // add default event handler for rendering category literal description 182 add_event_handler('render_category_literal_description', 183 create_function('$d', 184 'return strip_tags($d, \'<a><br><p><b><i><small><strong><font>\');')); 185 180 186 trigger_action('loc_begin_index_category_thumbnails', $categories); 181 187 if ($conf['subcatify']) … … 185 191 foreach ($categories as $category) 186 192 { 187 $comment = strip_tags(@$category['comment'], '<a><br><p><b><i><small><strong><font>');188 193 if ($page['section']=='recent_cats') 189 194 { … … 218 223 '<br />' 219 224 ), 220 'DESCRIPTION' => @$comment, 225 'DESCRIPTION' => 226 trigger_event('render_category_literal_description', 227 trigger_event('render_category_description', 228 @$category['comment'])), 221 229 'NAME' => $name, 222 230 ) -
branches/branch-1_7/index.php
r1932 r2078 297 297 'cat_infos.comment', 298 298 array( 299 'COMMENTS' => $page['comment'] 299 'COMMENTS' => 300 trigger_event('render_category_description', $page['comment']) 300 301 ) 301 302 ); -
branches/branch-1_7/picture.php
r2015 r2078 56 56 2 57 57 ); 58 // add default event handler for rendering element description 59 add_event_handler('render_element_description', 'nl2br'); 60 58 61 trigger_action('loc_begin_picture'); 59 62 … … 639 642 'legend', 640 643 array( 641 'COMMENT_IMG' => nl2br($picture['current']['comment']) 644 'COMMENT_IMG' => 645 trigger_event('render_element_description', 646 $picture['current']['comment']) 642 647 )); 643 648 $header_infos['COMMENT'] = strip_tags($picture['current']['comment']);
Note: See TracChangeset
for help on using the changeset viewer.