Changeset 16008 for extensions/ASearchEngine/ase_pip.class.inc.php
- Timestamp:
- Jun 24, 2012, 9:15:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ASearchEngine/ase_pip.class.inc.php
r15360 r16008 23 23 const SEARCH_SECTION = 'ASearch'; 24 24 protected $sectionPage; 25 protected $css2;26 25 27 26 public function __construct($prefixeTable, $filelocation) 28 27 { 28 global $template; 29 29 30 parent::__construct($prefixeTable, $filelocation); 30 $this->css2 = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css",10);31 31 $this->loadConfig(); 32 32 … … 72 72 73 73 add_event_handler('init', array(&$this, 'applyJS')); 74 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)75 74 add_event_handler('user_init', array(&$this, 'load_lang')); 76 75 } 77 76 } 78 77 79 78 public function loadCSS() 79 { 80 GPCCore::addHeaderCSS('ase.css2', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles()."2.css",9); // have to be loaded before other css file (event level from GPCCore=10) 81 } 80 82 81 83 /* ------------------------------------------------------------------------- … … 104 106 $file=PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'local/css/ASE'.$theme.'.css'; 105 107 if(file_exists(GPCCore::getPiwigoSystemPath().'/'.$file)) GPCCore::addHeaderCSS('ASE2', $file, 45); 108 109 /* 110 $template->set_filename('ASEheader', dirname(__FILE__)."/templates/search_page_header.tpl"); 111 $template->block_html_head(null, $template->parse('ASEheader', true), null, null); 112 */ 106 113 } 107 114 … … 116 123 $template->assign('TITLE', $page['title']); 117 124 125 GPCCore::AddUI('inputTag,categorySelector'); 126 118 127 $template->clear_assign(array('U_MODE_CREATED', 'U_MODE_POSTED')); 119 128 … … 122 131 * (all content are managed with ajax) 123 132 */ 133 134 $template->assign( 135 array( 136 'derivative_params' =>trigger_event('get_index_derivative_params', ImageStdParams::get_by_type( pwg_get_session_var('index_deriv', IMG_THUMB) ) ) 137 ) 138 ); 124 139 125 140 $template->set_filename('ASEmain', dirname(__FILE__)."/templates/search_page.tpl");
Note: See TracChangeset
for help on using the changeset viewer.