Last change
on this file since 27061 was
26677,
checked in by mistic100, 11 years ago
|
compatibility with Comments on Albums for 2.6
|
File size:
828 bytes
|
Rev | Line | |
---|
[11252] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Reply To |
---|
| 4 | Version: auto |
---|
| 5 | Description: This plugin allows you to add Twitter-like reply links to comments. |
---|
[26677] | 6 | Plugin URI: auto |
---|
[11252] | 7 | Author: Mistic |
---|
| 8 | Author URI: http://www.strangeplanet.fr |
---|
| 9 | */ |
---|
| 10 | |
---|
[26677] | 11 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
[11252] | 12 | |
---|
| 13 | global $page; |
---|
| 14 | |
---|
[26677] | 15 | define('REPLYTO_ID' , basename(dirname(__FILE__))); |
---|
| 16 | define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_ID . '/'); |
---|
[11252] | 17 | |
---|
[15645] | 18 | add_event_handler('init', 'replyto_init'); |
---|
[11252] | 19 | |
---|
[15645] | 20 | function replyto_init() |
---|
| 21 | { |
---|
| 22 | include_once(REPLYTO_PATH.'reply_to.inc.php'); |
---|
| 23 | load_language('plugin.lang', REPLYTO_PATH); |
---|
| 24 | |
---|
| 25 | add_event_handler('render_comment_content', 'replyto_parse', 60, 2); |
---|
[26677] | 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 | } |
---|
[15645] | 34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.