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

feature:2638- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_pip.class.inc.php

    r15345 r16011  
    5252      )
    5353  );
    54   protected $css2;
    5554
    5655  public function __construct($prefixeTable, $filelocation)
    5756  {
    5857    parent::__construct($prefixeTable, $filelocation);
    59     $this->css2 = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css");
    6058    $this->loadConfig();
    6159    $this->initEvents();
     
    8684  {
    8785    parent::initEvents();
    88 
    8986    add_event_handler('loc_begin_index', array(&$this, 'displayCategoryPageMap'));
    9087    if(!isset($_GET['slideshow'])) add_event_handler('loc_begin_picture', array(&$this, 'displayPicturePageMap'), EVENT_HANDLER_PRIORITY_NEUTRAL+5);
    9188    add_event_handler('amd_jpegMD_loaded', array(&$this, 'preparePictureMaps'));
    92     add_event_handler('loc_end_page_header', array(&$this->css2, 'applyCSS'));
    9389    add_event_handler('render_category_description',  array(&$this, 'categoryMarkup'), EVENT_HANDLER_PRIORITY_NEUTRAL-5, 2);
    9490  }
    9591
    9692
     93  public function loadCSS()
     94  {
     95    //parent::loadCSS(); // -- do not call ancestor!
     96    GPCCore::addHeaderCSS('gmaps.css2', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles()."2.css");
     97  }
    9798
    9899  /* -------------------------------------------------------------------------
     
    213214            gmaps =
    214215              {
     216                token:'".get_pwg_token()."',
    215217                lang:{
    216218                  boundmap:'".l10n('gmaps_i_boundmap')."',
     
    306308var gmaps =
    307309  {
     310    token:'".get_pwg_token()."',
    308311    geolocated:".($nb>0?'true':'false').",
    309312    forceDisplay:".($nb==0?'true':'false').",
     
    503506  var gmaps =
    504507    {
     508      token:'".get_pwg_token()."',
    505509      geolocated:".($this->picture['geolocated']?'true':'false').",
    506510      forceDisplay:".($this->picture['forceDisplay']?'true':'false').",
Note: See TracChangeset for help on using the changeset viewer.