source: extensions/reply_to/main.inc.php @ 15607

Last change on this file since 15607 was 15108, checked in by mistic100, 13 years ago

update for Piwigo 2.4
fix a bug in links refresh on comments.php

File size: 777 bytes
Line 
1<?php 
2/*
3Plugin Name: Reply To
4Version: auto
5Description: This plugin allows you to add Twitter-like reply links to comments.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=556
7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $page;
14
15define('REPLYTO_DIR' , basename(dirname(__FILE__)));
16define('REPLYTO_PATH' , PHPWG_PLUGINS_PATH . REPLYTO_DIR . '/');
17
18include_once(REPLYTO_PATH.'reply_to.inc.php');
19load_language('plugin.lang', REPLYTO_PATH);
20
21add_event_handler('render_comment_content', 'replyto_parse', 60, 2);
22if (script_basename() == 'comments') add_event_handler('loc_after_page_header', 'replyto_add_link');
23else add_event_handler('loc_end_section_init', 'replyto_add_link');
24   
25?>
Note: See TracBrowser for help on using the repository browser.