Last change
on this file since 8139 was
6774,
checked in by patdenice, 14 years ago
|
Do not remove default parse_comment_content for smilies support.
|
File size:
815 bytes
|
Rev | Line | |
---|
[6298] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Smilies Support |
---|
| 4 | Version: auto |
---|
| 5 | Description: Allow add Smilies for comments and descriptions. |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=159 |
---|
| 7 | Author: Atadilo & P@t |
---|
[3304] | 8 | */ |
---|
| 9 | |
---|
| 10 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 11 | |
---|
| 12 | include_once(dirname(__FILE__).'/smiliessupport.inc.php'); |
---|
| 13 | |
---|
| 14 | add_event_handler('render_comment_content', 'SmiliesParse', 60); |
---|
| 15 | add_event_handler('loc_begin_picture', 'set_smiliessupport_page'); |
---|
| 16 | |
---|
| 17 | if (script_basename() == 'admin') |
---|
| 18 | { |
---|
| 19 | add_event_handler('get_admin_plugin_menu_links', 'smiliessupport_admin_menu'); |
---|
| 20 | |
---|
| 21 | function smiliessupport_admin_menu($menu) { |
---|
| 22 | array_push($menu, |
---|
[6298] | 23 | array('NAME' => 'Smilies Support', |
---|
[3304] | 24 | 'URL' => get_admin_plugin_menu_link(dirname(__FILE__) . '/smiliessupport_admin.php'))); |
---|
| 25 | return $menu; |
---|
| 26 | } |
---|
| 27 | } |
---|
| 28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.