Ignore:
Timestamp:
Jun 24, 2012, 9:15:21 PM (12 years ago)
Author:
grum
Message:

feature:2635- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ASearchEngine/ase_pip.class.inc.php

    r15360 r16008  
    2323  const SEARCH_SECTION = 'ASearch';
    2424  protected $sectionPage;
    25   protected $css2;
    2625
    2726  public function __construct($prefixeTable, $filelocation)
    2827  {
     28    global $template;
     29
    2930    parent::__construct($prefixeTable, $filelocation);
    30     $this->css2 = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css",10);
    3131    $this->loadConfig();
    3232
     
    7272
    7373      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)
    7574      add_event_handler('user_init', array(&$this, 'load_lang'));
    7675    }
    7776  }
    7877
    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  }
    8082
    8183  /* -------------------------------------------------------------------------
     
    104106    $file=PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'local/css/ASE'.$theme.'.css';
    105107    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    */
    106113  }
    107114
     
    116123    $template->assign('TITLE', $page['title']);
    117124
     125    GPCCore::AddUI('inputTag,categorySelector');
     126
    118127    $template->clear_assign(array('U_MODE_CREATED', 'U_MODE_POSTED'));
    119128
     
    122131     * (all content are managed with ajax)
    123132     */
     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    );
    124139
    125140    $template->set_filename('ASEmain', dirname(__FILE__)."/templates/search_page.tpl");
Note: See TracChangeset for help on using the changeset viewer.