source: extensions/SmiliesSupport/main.inc.php @ 6239

Last change on this file since 6239 was 3304, checked in by patdenice, 16 years ago

New extension added:
Smilies Support (2.0.a)

File size: 1.1 KB
Line 
1<?php /*
2Plugin Name: SmiliesSupport
3Version: 2.0.a
4Description: Allow add Smilies for comments and descriptions. / Permet d'ajouter des Smilies pour les commentaires et les descriptions.
5Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=159
6Author: Atadilo
7Author URI: http://www.phpwebgallery.net
8*/
9
10if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
11
12include_once(dirname(__FILE__).'/smiliessupport.inc.php');
13
14add_event_handler('init', 'init_smiliessupport');
15add_event_handler('render_comment_content', 'SmiliesParse', 60);
16add_event_handler('loc_begin_picture', 'set_smiliessupport_page');
17
18function init_smiliessupport()
19{
20  remove_event_handler('render_comment_content', 'parse_comment_content');
21}
22
23if (script_basename() == 'admin')
24{
25  add_event_handler('get_admin_plugin_menu_links', 'smiliessupport_admin_menu');
26
27  function smiliessupport_admin_menu($menu) {
28      array_push($menu,
29        array('NAME' => 'SmiliesSupport',
30              'URL' => get_admin_plugin_menu_link(dirname(__FILE__) . '/smiliessupport_admin.php')));
31      return $menu;
32  }
33}
34?>
Note: See TracBrowser for help on using the repository browser.