Last change
on this file since 13669 was
12389,
checked in by mistic100, 13 years ago
|
activate replyTo button on comments.php
|
File size:
874 bytes
|
Line | |
---|
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. |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=556 |
---|
7 | Author: Mistic |
---|
8 | Author URI: http://www.strangeplanet.fr |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | global $page; |
---|
14 | |
---|
15 | define('REPLYTO_DIR' , basename(dirname(__FILE__))); |
---|
16 | define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_DIR . '/'); |
---|
17 | |
---|
18 | include_once(REPLYTO_PATH.'reply_to.inc.php'); |
---|
19 | load_language('plugin.lang', REPLYTO_PATH); |
---|
20 | |
---|
21 | add_event_handler('render_comment_content', 'replyto_parse', 60, 2); |
---|
22 | if (script_basename() == 'comments') add_event_handler('init', 'replyto_add_link'); // for comments page (section_init.inc is not called on this page) |
---|
23 | else add_event_handler('loc_end_section_init', 'replyto_add_link'); // for all other pages (we need section infos) |
---|
24 | |
---|
25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.