source: extensions/AMenuManager/amm_aim.class.inc.php @ 9061

Last change on this file since 9061 was 8962, checked in by grum, 14 years ago

release 3.0.0
fix bug:1716, bug:2128, bug:1296, bug:2052, bug:1910, bug:1723, bug:1709, bug:1680, bug:1477, bug:2129
rewrite plugin core, implement ajax interface, optimize JS

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1<?php
2/* -----------------------------------------------------------------------------
3  Plugin     : Advanced Menu Manager
4  Author     : Grum
5    email    : grum@piwigo.org
6    website  : http://photos.grum.dnsalias.com
7    PWG user : http://forum.phpwebgallery.net/profile.php?id=3706
8
9    << May the Little SpaceFrog be with you ! >>
10  ------------------------------------------------------------------------------
11  See main.inc.php for release information
12
13  AMM_AIM : classe to manage plugin integration into plugin menu
14
15  --------------------------------------------------------------------------- */
16
17if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
18
19include_once('amm_root.class.inc.php');
20
21class AMM_AIM extends AMM_root
22{
23  function AMM_AIM($prefixeTable, $filelocation)
24  {
25    parent::__construct($prefixeTable, $filelocation);
26  }
27
28  /*
29    initialize events call for the plugin
30  */
31  function initEvents()
32  {
33    parent::initEvents();
34    add_event_handler('get_admin_plugin_menu_links', array(&$this, 'pluginAdminMenu') );
35    add_event_handler('loc_end_page_header', array(&$this, 'adminPanel'));
36  }
37
38  public function adminPanel()
39  {
40    global $template;
41
42    $template->append('footer_elements', "<script>$(document).ready(function () { $('li a[href=".$template->get_template_vars('U_CONFIG_MENUBAR')."]').attr('href', '".$this->getAdminLink()."&amp;fAMM_tabsheet=setmenu&amp;fAMM_page=position'); });</script>");
43  }
44
45} // amm_aim  class
46
47
48?>
Note: See TracBrowser for help on using the repository browser.