Changeset 9634 for extensions/Comments_on_Albums/main.inc.php
- Timestamp:
- Mar 12, 2011, 10:56:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/main.inc.php
r9624 r9634 2 2 /* 3 3 Plugin Name: Comment on Albums 4 Version: 0. 1.a4 Version: 0.2 5 5 Description: Allows users to comment albums 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=512 … … 17 17 // +-----------------------------------------------------------------------+ 18 18 define('COA_NAME' , 'Comment on Albums'); 19 define('COA_VERSION', '0. 1.a');19 define('COA_VERSION', '0.2'); 20 20 define('COA_DIR' , basename(dirname(__FILE__))); 21 21 define('COA_PATH' , PHPWG_PLUGINS_PATH . COA_DIR . '/'); … … 27 27 // +-----------------------------------------------------------------------+ 28 28 add_event_handler('loc_end_index', 'COA_index'); 29 add_event_handler('loc_after_page_header', 'COA_comments_page'); 29 30 add_event_handler('loc_end_admin', 'COA_admin'); 30 31 31 32 32 33 // +-----------------------------------------------------------------------+ 33 // F onctions34 // Functions 34 35 // +-----------------------------------------------------------------------+ 35 36 … … 39 40 if ($page['section'] == 'categories' AND isset($page['category'])) { 40 41 include(COA_PATH . 'include/coa_albums.php'); 42 } 43 } 44 45 function COA_comments_page() { 46 global $template, $page, $conf; 47 48 if ($page['body_id'] == 'theCommentsPage') { 49 include(COA_PATH . 'include/coa_comments_page.php'); 41 50 } 42 51 }
Note: See TracChangeset
for help on using the changeset viewer.