Ignore:
Timestamp:
Oct 28, 2010, 9:26:28 AM (13 years ago)
Author:
grum
Message:

implement feature:1970

File:
1 edited

Legend:

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

    r7439 r7450  
    3030    $this->css2 = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css");
    3131    $this->loadConfig();
    32     $this->initEvents();
     32
    3333    $this->load_lang();
    3434
     
    3838      $this->sectionPage->setCallbackPageFunction(array(&$this, 'managePage'));
    3939      $this->sectionPage->initEvents();
     40      $this->initEvents();
    4041    }
    4142  }
     
    6465    parent::initEvents();
    6566
    66     GPCRequestBuilder::loadJSandCSS();
     67    if($this->sectionPage->pageIsSection())
     68    {
     69      GPCRequestBuilder::loadJSandCSS();
    6770
    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    }
    7276  }
    7377
     
    8185  {
    8286    global $template;
     87
    8388
    8489    GPCCore::addHeaderJS('jquery', 'themes/default/js/jquery.packed.js');
Note: See TracChangeset for help on using the changeset viewer.