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

Last change on this file since 9724 was 9683, checked in by mistic100, 14 years ago

[extentions] Smilies Support

  • compatibility with Piwigo 2.2.0
  • many corrections
File size: 892 bytes
Line 
1<?php
2/*
3Plugin Name: Smilies Support
4Version: 2.2.0
5Description: Allow add Smilies for comments and descriptions.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=159
7Author: Atadilo & P@t & Mistic
8*/
9
10if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
11
12define('SMILIES_DIR' , basename(dirname(__FILE__)));
13define('SMILIES_PATH' , PHPWG_PLUGINS_PATH . SMILIES_DIR . '/');
14
15include_once(SMILIES_PATH.'smiliessupport.inc.php');
16
17add_event_handler('render_comment_content', 'SmiliesParse', 60);
18add_event_handler('loc_begin_picture', 'set_smiliessupport_page');
19
20if (script_basename() == 'admin')
21{
22        add_event_handler('get_admin_plugin_menu_links', 'smiliessupport_admin_menu');
23        function smiliessupport_admin_menu($menu) 
24        {
25                array_push($menu, array(
26                        'NAME' => 'Smilies Support',
27                         'URL' => get_root_url().'admin.php?page=plugin-' . SMILIES_DIR));
28                return $menu;
29        }
30}
31?>
Note: See TracBrowser for help on using the repository browser.