forked from Piwigo/AMenuManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamm_aim.class.inc.php
More file actions
executable file
·46 lines (34 loc) · 1.26 KB
/
amm_aim.class.inc.php
File metadata and controls
executable file
·46 lines (34 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/* -----------------------------------------------------------------------------
Plugin : Advanced Menu Manager
Author : Grum
email : grum@piwigo.org
website : http://www.grum.fr
<< May the Little SpaceFrog be with you ! >>
------------------------------------------------------------------------------
See main.inc.php for release information
AMM_AIM : classe to manage plugin integration into plugin menu
--------------------------------------------------------------------------- */
if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
include_once('amm_root.class.inc.php');
class AMM_AIM extends AMM_root
{
function __construct($prefixeTable, $filelocation)
{
parent::__construct($prefixeTable, $filelocation);
}
/*
initialize events call for the plugin
*/
function initEvents()
{
parent::initEvents();
add_event_handler('loc_end_page_header', array(&$this, 'adminPanel'));
}
public function adminPanel()
{
global $template;
$template->append('footer_elements', "<script>$(document).ready(function () { $('li a[href=\"".$template->get_template_vars('U_CONFIG_MENUBAR')."\"]').attr('href', '".$this->getAdminLink()."-setmenu-position'); });</script>");
}
} // amm_aim class
?>