Changeset 12618 for extensions/Comments_on_Albums
- Timestamp:
- Nov 13, 2011, 1:18:26 PM (13 years ago)
- Location:
- extensions/Comments_on_Albums
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/include/coa_albums.php
r12601 r12618 350 350 ); 351 351 352 $template->set_filename('comments_on_albums', dirname(__FILE__) .'/../template/albums.tpl'); 352 global $user; 353 if ( $is_simple = strstr($user['theme'], 'simple') !== false or strstr($user['theme'], 'stripped') !== false ) 354 { 355 $template->assign('IS_SIMPLE', $is_simple); 356 $template->set_filename('comments_on_albums', dirname(__FILE__) .'/../template/albums_simple.tpl'); 357 } 358 else 359 { 360 $template->set_filename('comments_on_albums', dirname(__FILE__) .'/../template/albums.tpl'); 361 } 353 362 $template->concat('PLUGIN_INDEX_CONTENT_END', $template->parse('comments_on_albums', true)); 354 363 -
extensions/Comments_on_Albums/main.inc.php
r12381 r12618 25 25 // Triggers 26 26 // +-----------------------------------------------------------------------+ 27 add_event_handler('loc_end_index', 'COA_albums'); 28 add_event_handler('loc_after_page_header', 'COA_comments_page'); 29 add_event_handler('loc_begin_admin_page', 'COA_admin_intro'); 30 add_event_handler('loc_end_admin', 'COA_admin_comments'); 31 add_event_handler('get_admin_plugin_menu_links', 'COA_admin_menu'); 32 add_event_handler('get_stuffs_modules', 'COA_register_stuffs_module'); 27 add_event_handler('init', 'coa_init'); 28 function coa_init() 29 { 30 global $user; 31 // luciano doesn't show comments, display is very bad on Stripped & Collumns 32 if ($user['theme'] == 'luciano' or $user['theme'] == 'stripped_black_bloc') return; 33 34 add_event_handler('loc_end_index', 'COA_albums'); 35 add_event_handler('loc_after_page_header', 'COA_comments_page'); 36 add_event_handler('loc_begin_admin_page', 'COA_admin_intro'); 37 add_event_handler('loc_end_admin', 'COA_admin_comments'); 38 add_event_handler('get_admin_plugin_menu_links', 'COA_admin_menu'); 39 add_event_handler('get_stuffs_modules', 'COA_register_stuffs_module'); 40 } 33 41 34 42
Note: See TracChangeset
for help on using the changeset viewer.