Ignore:
Timestamp:
Nov 29, 2009, 11:21:50 PM (14 years ago)
Author:
grum
Message:

[LMT] feature 1294, feature 1295

  • Allow to open the licence page on a new page/tab when user clic on the licence hyperlink
  • Compatibility with theme 'montblanc'
File:
1 edited

Legend:

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

    r3396 r4396  
    44  Author     : Grum
    55    email    : grum@piwigo.org
    6     website  : http://photos.grum.dnsalias.com
     6    website  : http://photos.grum.fr
    77
    88    << May the Little SpaceFrog be with you ! >>
     
    1212  LMT_root : common classe for admin and public classes
    1313
    14   --------------------------------------------------------------------------- */ 
     14  --------------------------------------------------------------------------- */
    1515  include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/common_plugin.class.inc.php');
    1616  include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/css.class.inc.php');
     
    8484
    8585    /*
    86       intialize default values 
     86      intialize default values
    8787    */
    8888    public function init_config()
     
    9393        'lmt_list_maxheight' => '650',
    9494        'lmt_list_maxitems' => '0',    /* limit number of item displayed ; 0 : no limit */
    95         'lmt_licence_default' => 'BY', 
    96         'lmt_licence_default_author' => 0, 
     95        'lmt_licence_default' => 'BY',
     96        'lmt_licence_default_author' => 0,
    9797        'lmt_licence_activated' => 'n',
    9898        'lmt_licence_visible' => 'n',  /* y:always visible, n:only if needed */
    9999        'lmt_licence_logo' => '80x15', /* 80x15, 88x31, text */
    100         'lmt_warning_visible' => 'y',     /* y: display a text at the bottom of each page */ 
     100        'lmt_warning_visible' => 'y',     /* y: display a text at the bottom of each page */
    101101        'lmt_warning_texts' => array(), /* text displayed - multi lang */
    102         'lmt_redirect_activated' => 'y',     /* y: the text is an url to a warning page */ 
    103         'lmt_redirect_url-by' => array(),   
    104         'lmt_redirect_url-by-nd' => array(),   
    105         'lmt_redirect_url-by-nc' => array(),   
    106         'lmt_redirect_url-by-nc-nd' => array(),   
    107         'lmt_redirect_url-by-nc-sa' => array(),   
    108         'lmt_redirect_url-by-sa' => array(),   
    109         'lmt_redirect_url-cright' => array(),   
    110         'lmt_redirect_url-cleft' => array(),   
     102        'lmt_redirect_activated' => 'y',     /* y: the text is an url to a warning page */
     103        'lmt_redirect_open_target' => 'n',   /* y: url are openned in a new page/tab */
     104        'lmt_redirect_url-by' => array(),
     105        'lmt_redirect_url-by-nd' => array(),
     106        'lmt_redirect_url-by-nc' => array(),
     107        'lmt_redirect_url-by-nc-nd' => array(),
     108        'lmt_redirect_url-by-nc-sa' => array(),
     109        'lmt_redirect_url-by-sa' => array(),
     110        'lmt_redirect_url-cright' => array(),
     111        'lmt_redirect_url-cleft' => array(),
    111112      );
    112113
     
    164165
    165166.lmt  {
    166   text-align:justify; 
     167  text-align:justify;
    167168}
    168169
     
    176177#ullist li {
    177178  width:300px;
    178   display:block; 
     179  display:block;
    179180  float:left;
    180181  text-align:left;
     
    229230  color:#000000;
    230231  top:0px;
    231   left:-450px; 
     232  left:-450px;
    232233  padding:2px;
    233234  text-align:justify;
     
    239240
    240241    /*
    241       generate the css code 
     242      generate the css code
    242243    */
    243244    protected function generate_CSS2()
     
    259260#theImage img.logo80x15, #theImage img.logo88x31 {
    260261  border:0px none;
     262  padding:0px;
    261263}
    262264
     
    287289        "aut_text2" => ""
    288290      );
    289       $sql="SELECT lmti.licence_type, lmta.text1, lmta.text2 
     291      $sql="SELECT lmti.licence_type, lmta.text1, lmta.text2
    290292            FROM ".$this->tables['images']." lmti
    291293              LEFT OUTER JOIN ".$this->tables['licence_author']." lmta ON lmti.author_id = lmta.id
     
    314316        );
    315317
    316         $sql="SELECT * FROM ".$this->tables['licence_author']." 
     318        $sql="SELECT * FROM ".$this->tables['licence_author']."
    317319              WHERE id = '".$this->my_config["lmt_licence_default_author"]."'";
    318320        $result=pwg_query($sql);
    319         if($result)     
     321        if($result)
    320322        {
    321323          while($row=mysql_fetch_array($result))
     
    327329      }
    328330
    329       return($return);     
     331      return($return);
    330332    }
    331333
     
    348350        }
    349351        return($returned);
    350       } 
    351       return(false); 
     352      }
     353      return(false);
    352354    }
    353355
Note: See TracChangeset for help on using the changeset viewer.