Changeset 20796 for extensions/bbcode_bar/main.inc.php
- Timestamp:
- Feb 17, 2013, 12:52:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/bbcode_bar/main.inc.php
r20209 r20796 21 21 remove_event_handler('render_comment_content', 'render_comment_content'); 22 22 add_event_handler('render_comment_content', 'BBCodeParse'); 23 add_event_handler('render_contact_content', 'BBCodeParse'); 23 24 add_event_handler('loc_after_page_header', 'add_bbcode_bar'); 24 25 } … … 31 32 { 32 33 $prefilter = 'picture'; 34 $textarea_id = 'contentid'; 33 35 } 34 36 else if ( … … 38 40 { 39 41 $prefilter = 'comments_on_albums'; 42 $textarea_id = 'contentid'; 40 43 } 41 44 else if (isset($page['section']) and $page['section'] == 'guestbook') 42 45 { 43 46 $prefilter = 'index'; 47 $textarea_id = 'contentid'; 48 } 49 else if (isset($page['section']) and $page['section'] == 'contact') 50 { 51 $prefilter = 'index'; 52 $textarea_id = 'cf_content'; 44 53 } 45 54 46 55 if (isset($prefilter)) 47 56 { 48 set_bbcode_bar($prefilter );57 set_bbcode_bar($prefilter, $textarea_id); 49 58 } 50 59 }
Note: See TracChangeset
for help on using the changeset viewer.