Changeset 7450 for extensions/ASearchEngine/ase_pip.class.inc.php
- Timestamp:
- Oct 28, 2010, 9:26:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ASearchEngine/ase_pip.class.inc.php
r7439 r7450 30 30 $this->css2 = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css"); 31 31 $this->loadConfig(); 32 $this->initEvents(); 32 33 33 $this->load_lang(); 34 34 … … 38 38 $this->sectionPage->setCallbackPageFunction(array(&$this, 'managePage')); 39 39 $this->sectionPage->initEvents(); 40 $this->initEvents(); 40 41 } 41 42 } … … 64 65 parent::initEvents(); 65 66 66 GPCRequestBuilder::loadJSandCSS(); 67 if($this->sectionPage->pageIsSection()) 68 { 69 GPCRequestBuilder::loadJSandCSS(); 67 70 68 add_event_handler('init', array(&$this, 'applyJS')); 69 add_event_handler('loc_begin_page_header', array(&$this->css2, 'applyCSS'), 9); // have to be loaded before other css file (event level from GPCCore=10) 70 add_event_handler('blockmanager_apply', array(&$this, 'blockmanagerApply'), 40); // call ASE before AMM 71 add_event_handler('user_init', array(&$this, 'load_lang')); 71 add_event_handler('init', array(&$this, 'applyJS')); 72 add_event_handler('loc_begin_page_header', array(&$this->css2, 'applyCSS'), 9); // have to be loaded before other css file (event level from GPCCore=10) 73 add_event_handler('blockmanager_apply', array(&$this, 'blockmanagerApply'), 40); // call ASE before AMM 74 add_event_handler('user_init', array(&$this, 'load_lang')); 75 } 72 76 } 73 77 … … 81 85 { 82 86 global $template; 87 83 88 84 89 GPCCore::addHeaderJS('jquery', 'themes/default/js/jquery.packed.js');
Note: See TracChangeset
for help on using the changeset viewer.