Changeset 14528 for extensions/Comments_on_Albums/main.inc.php
- Timestamp:
- Apr 29, 2012, 5:09:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/main.inc.php
r12618 r14528 8 8 Author URI: http://www.strangeplanet.fr 9 9 */ 10 11 ## TODO ## 12 // compatibility with Simple when updated to 2.4 13 // compatibility with Gally when updated to 2.4 10 14 11 15 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 29 33 { 30 34 global $user; 31 // luciano doesn't show comments, display is very bad on Stripped & Collumns 35 36 // luciano doesn't use comments 37 // incompatible with dynamic display of Stripped & Collumns 32 38 if ($user['theme'] == 'luciano' or $user['theme'] == 'stripped_black_bloc') return; 33 39 34 add_event_handler('loc_ end_index', 'COA_albums');40 add_event_handler('loc_begin_page_header', 'COA_albums'); 35 41 add_event_handler('loc_after_page_header', 'COA_comments_page'); 36 42 add_event_handler('loc_begin_admin_page', 'COA_admin_intro'); 37 43 add_event_handler('loc_end_admin', 'COA_admin_comments'); 38 add_event_handler('get_admin_plugin_menu_links', 'COA_admin_menu');39 44 add_event_handler('get_stuffs_modules', 'COA_register_stuffs_module'); 40 45 } … … 49 54 global $template, $page, $conf, $pwg_loaded_plugins; 50 55 51 if ( 52 $page['section'] == 'categories' AND isset($page['category']) AND 53 ( !isset($pwg_loaded_plugins['rv_tscroller']) OR count($page['navigation_bar']) == 0 ) 54 ) { 56 if ( !empty($page['section']) AND $page['section'] == 'categories' AND isset($page['category']) AND $page['body_id'] == 'theCategoryPage' ) 57 { 55 58 if (isset($pwg_loaded_plugins['bbcode_bar']) AND !isset($_GET['comment_to_edit'])) 56 59 { … … 102 105 } 103 106 104 function COA_admin_menu($menu)105 {106 array_push($menu, array(107 'NAME' => 'Comments on Albums',108 'URL' => COA_ADMIN109 ));110 return $menu;111 }112 113 107 function COA_register_stuffs_module($modules) 114 108 { … … 124 118 } 125 119 126 127 120 ?>
Note: See TracChangeset
for help on using the changeset viewer.