source: extensions/add_index/main.normal.inc.php @ 33151

Last change on this file since 33151 was 12801, checked in by rub, 13 years ago

Add upload directory
Fixed site id
Fixed first dir

Update Copyright (C)

  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | Add Index - a Piwigo Plugin                                           |
4// | Copyright (C) 2019-2011 Piwigo team                                   |
5// +-----------------------------------------------------------------------+
6// | This program is free software; you can redistribute it and/or modify  |
7// | it under the terms of the GNU General Public License as published by  |
8// | the Free Software Foundation                                          |
9// |                                                                       |
10// | This program is distributed in the hope that it will be useful, but   |
11// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
12// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
13// | General Public License for more details.                              |
14// |                                                                       |
15// | You should have received a copy of the GNU General Public License     |
16// | along with this program; if not, write to the Free Software           |
17// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
18// | USA.                                                                  |
19// +-----------------------------------------------------------------------+
20
21
22if (!defined('PHPWG_ROOT_PATH'))
23{
24  die('Hacking attempt!');
25}
26
27class NormalAddIndex extends AddIndex
28{
29  function get_popup_help_content($popup_help_content, $page)
30  {
31    if (in_array($page, array('advanced_feature', 'site_manager')))
32    {
33      $help_content =
34        load_language('help/'.$page.'.html', $this->path, array('return'=>true) );
35    }
36    else
37    {
38      $help_content = false;
39    }
40
41    if ($help_content == false)
42    {
43      return $popup_help_content;
44    }
45    else
46    {
47      return $popup_help_content.$help_content;
48    }
49  }
50}
51
52// Create object
53$add_index = new NormalAddIndex();
54
55// Add events
56add_event_handler('get_popup_help_content', array(&$add_index, 'get_popup_help_content'), EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
57
58?>
Note: See TracBrowser for help on using the repository browser.