source: extensions/user_tags/public.php @ 11298

Last change on this file since 11298 was 11081, checked in by nikrou, 13 years ago

Fix incompatibility with piwigo 2.2
Change jquery plugin from fcbkcomplete to tokeninput

File size: 1.9 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | User Tags  - a plugin for Piwigo                                      |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2010-2011 Nicolas Roudaire        http://www.nikrou.net  |
6// +-----------------------------------------------------------------------+
7// | This program is free software; you can redistribute it and/or modify  |
8// | it under the terms of the GNU General Public License as published by  |
9// | the Free Software Foundation                                          |
10// |                                                                       |
11// | This program is distributed in the hope that it will be useful, but   |
12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
14// | General Public License for more details.                              |
15// |                                                                       |
16// | You should have received a copy of the GNU General Public License     |
17// | along with this program; if not, write to the Free Software           |
18// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
19// | MA 02110-1301 USA.                                                    |
20// +-----------------------------------------------------------------------+
21
22if (!defined('PHPWG_ROOT_PATH')) {
23  die('Hacking attempt!');
24}
25
26if (!empty($_GET['action']) && in_array($_GET['action'], array('add', 'get'))) {
27  include_once T4U_PLUGIN_ROOT . "/include/t4u_admin_action.inc.php";
28}
29
30include_once T4U_PLUGIN_ROOT . "/include/t4u_content.class.php";
31
32$public_content = new t4u_Content($plugin_config);
33add_event_handler('render_element_content', 
34                  array($public_content, 'render_element_content'),
35                  EVENT_HANDLER_PRIORITY_NEUTRAL,
36                  2
37                  );
38?>
Note: See TracBrowser for help on using the repository browser.