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

feature:2641- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/lmt_pip.class.inc.php

    r7560 r16014  
    4646    if($this->config['lmt_licence_activated']=='y')
    4747    {
    48       add_event_handler('loc_end_page_header', array(&$this->css_icn, 'applyCSS'));
    4948      add_event_handler('loc_end_picture', array(&$this, 'manageLicenceElement'));
    5049
     
    5655  }
    5756
    58 
     57  public function loadCSS()
     58  {
     59    //parent::loadCSS();  -- don't call the ancestor!
     60    GPCCore::addHeaderCSS('lmt_icn.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles()."_icn.css");
     61  }
    5962
    6063  /* -------------------------------------------------------------------------
     
    110113        if($url!="")
    111114        {
    112           $text = "<table style='margin:auto;'><tr><td><a href='".$url."'".$target."><img $alternateText class='logo88x31' style='top:-4px;' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></a></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
     115          $text = "<table style='margin:auto;'><tr><td><a href='".$url."'".$target."><img $alternateText class='logo88x31' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></a></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
    113116        }
    114117        else
    115118        {
    116           $text = "<table style='margin:auto;'><tr><td><img $alternateText class='logo88x31' style='top:-4px;' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
     119          $text = "<table style='margin:auto;'><tr><td><img $alternateText class='logo88x31' src='". LMT_PATH."img/".strToLower($licence['licence'])."_88x31.png'></td><td>".$licence['aut_text1']."<br/>".$licence['aut_text2']."</td></tr></table>";
    117120        }
    118121        break;
Note: See TracChangeset for help on using the changeset viewer.