Last change
on this file since 31717 was
16445,
checked in by grum, 12 years ago
|
feature:2642- compatibility with Piwigo 2.4
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[3681] | 1 | <?php |
---|
| 2 | /* ----------------------------------------------------------------------------- |
---|
| 3 | Plugin : Advanced Menu Manager |
---|
| 4 | Author : Grum |
---|
[8962] | 5 | email : grum@piwigo.org |
---|
[16445] | 6 | website : http://www.grum.fr |
---|
[3681] | 7 | |
---|
| 8 | << May the Little SpaceFrog be with you ! >> |
---|
| 9 | ------------------------------------------------------------------------------ |
---|
| 10 | See main.inc.php for release information |
---|
| 11 | |
---|
| 12 | AMM_AIM : classe to manage plugin integration into plugin menu |
---|
| 13 | |
---|
| 14 | --------------------------------------------------------------------------- */ |
---|
| 15 | |
---|
| 16 | if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } |
---|
| 17 | |
---|
| 18 | include_once('amm_root.class.inc.php'); |
---|
| 19 | |
---|
| 20 | class AMM_AIM extends AMM_root |
---|
[5545] | 21 | { |
---|
[3681] | 22 | function AMM_AIM($prefixeTable, $filelocation) |
---|
| 23 | { |
---|
| 24 | parent::__construct($prefixeTable, $filelocation); |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | /* |
---|
| 28 | initialize events call for the plugin |
---|
| 29 | */ |
---|
[5545] | 30 | function initEvents() |
---|
[3681] | 31 | { |
---|
[5545] | 32 | parent::initEvents(); |
---|
| 33 | add_event_handler('get_admin_plugin_menu_links', array(&$this, 'pluginAdminMenu') ); |
---|
[8962] | 34 | add_event_handler('loc_end_page_header', array(&$this, 'adminPanel')); |
---|
[3681] | 35 | } |
---|
| 36 | |
---|
[8962] | 37 | public function adminPanel() |
---|
| 38 | { |
---|
| 39 | global $template; |
---|
| 40 | |
---|
[15366] | 41 | $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>"); |
---|
[8962] | 42 | } |
---|
| 43 | |
---|
[3681] | 44 | } // amm_aim class |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.