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
|
Rev | Line | |
---|
[3681] | 1 | <?php |
---|
| 2 | /* ----------------------------------------------------------------------------- |
---|
| 3 | Plugin : Advanced Menu Manager |
---|
| 4 | Author : Grum |
---|
[8962] | 5 | email : grum@piwigo.org |
---|
[3681] | 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 | |
---|
| 17 | if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } |
---|
| 18 | |
---|
| 19 | include_once('amm_root.class.inc.php'); |
---|
| 20 | |
---|
| 21 | class AMM_AIM extends AMM_root |
---|
[5545] | 22 | { |
---|
[3681] | 23 | function AMM_AIM($prefixeTable, $filelocation) |
---|
| 24 | { |
---|
| 25 | parent::__construct($prefixeTable, $filelocation); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | /* |
---|
| 29 | initialize events call for the plugin |
---|
| 30 | */ |
---|
[5545] | 31 | function initEvents() |
---|
[3681] | 32 | { |
---|
[5545] | 33 | parent::initEvents(); |
---|
| 34 | add_event_handler('get_admin_plugin_menu_links', array(&$this, 'pluginAdminMenu') ); |
---|
[8962] | 35 | add_event_handler('loc_end_page_header', array(&$this, 'adminPanel')); |
---|
[3681] | 36 | } |
---|
| 37 | |
---|
[8962] | 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()."&fAMM_tabsheet=setmenu&fAMM_page=position'); });</script>"); |
---|
| 43 | } |
---|
| 44 | |
---|
[3681] | 45 | } // amm_aim class |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.