Changeset 16006 for extensions/AMenuManager/amm_aip.class.inc.php
- Timestamp:
- Jun 24, 2012, 9:13:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/amm_aip.class.inc.php
r15366 r16006 51 51 l10n('g002_album'), 52 52 $this->getAdminLink().'-album'); 53 $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().".css");54 53 } 55 54 … … 76 75 77 76 $template->assign('plugin', $template_plugin); 78 $template->assign('token', get_pwg_token()); 79 77 GPCCore::setTemplateToken(); 80 78 81 79 switch($_GET['tab']) … … 105 103 } 106 104 107 108 /**109 * initialize events call for the plugin110 */111 105 public function initEvents() 112 106 { 113 add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS')); 114 GPCCss::applyGpcCss(); 115 } 116 107 parent::initEvents(); 108 add_event_handler('blockmanager_register_blocks', array(&$this, 'registerBlocks') ); 109 } 110 111 112 public function loadCSS() 113 { 114 global $template; 115 116 parent::loadCSS(); 117 GPCCore::addUI('gpcCSS'); 118 GPCCore::addHeaderCSS('amm.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().".css"); 119 GPCCore::addHeaderCSS('amm.cssT', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().'_'.$template->get_themeconf('name').".css"); 120 } 117 121 118 122 /**
Note: See TracChangeset
for help on using the changeset viewer.