Changeset 26677 for extensions/reply_to/main.inc.php
- Timestamp:
- Jan 13, 2014, 1:18:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/reply_to/main.inc.php
r15645 r26677 4 4 Version: auto 5 5 Description: This plugin allows you to add Twitter-like reply links to comments. 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=5566 Plugin URI: auto 7 7 Author: Mistic 8 8 Author URI: http://www.strangeplanet.fr 9 9 */ 10 10 11 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');11 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 12 12 13 13 global $page; 14 14 15 define('REPLYTO_ DIR' ,basename(dirname(__FILE__)));16 define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_ DIR. '/');15 define('REPLYTO_ID' , basename(dirname(__FILE__))); 16 define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_ID . '/'); 17 17 18 18 add_event_handler('init', 'replyto_init'); … … 24 24 25 25 add_event_handler('render_comment_content', 'replyto_parse', 60, 2); 26 if (script_basename() == 'comments') add_event_handler('loc_after_page_header', 'replyto_add_link'); 27 else add_event_handler('loc_end_section_init', 'replyto_add_link'); 26 if (script_basename() == 'comments') 27 { 28 add_event_handler('loc_end_comments', 'replyto_add_link', 60); 29 } 30 else 31 { 32 add_event_handler('loc_end_section_init', 'replyto_add_link'); 33 } 28 34 } 29 30 ?>
Note: See TracChangeset
for help on using the changeset viewer.