Changeset 4396


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'
Location:
extensions/lmt
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/admin/plugin_admin_config.tpl

    r3396 r4396  
    33
    44    //global var ; need to not have to initialize them every time a value is changed
    5     var objlang; 
    6     var objlang2; 
     5    var objlang;
     6    var objlang2;
    77    var objnames = new Array('itext');
    88    var objnames2 = new Array({/literal}{$datas.objnames2}{literal});
     
    5757
    5858    //initialize help event
    59     $("sup").filter('.icnhelp').bind("mouseenter", 
    60       function(event){ 
     59    $("sup").filter('.icnhelp').bind("mouseenter",
     60      function(event){
    6161        $("#hinthlp").attr("innerHTML", get_hint(this))
    6262          .css("left", event.clientX+1+window.pageXOffset)
    6363          .css("top", event.clientY+1+window.pageYOffset);
    64       } 
     64      }
    6565    );
    6666
    67     $("sup").filter('.icnhelp').bind("mouseleave", 
    68       function(event){ 
     67    $("sup").filter('.icnhelp').bind("mouseleave",
     68      function(event){
    6969        $("#hinthlp")
    7070          .css("left", -450);
    71       } 
     71      }
    7272    );
    7373
     
    115115        break;
    116116      {/foreach}
    117       {literal}     
     117      {literal}
    118118    }
    119119  }
     
    148148  <fieldset >
    149149    <legend>{'lmt_general_config'|@translate}</legend>
    150    
     150
    151151    <table class="formtable"  >
    152152      <tr>
     
    244244        </td>
    245245      </tr>
    246  
     246
    247247      <tr>
    248248        <td>
     
    258258                    id="itext_{$lang.lang}" value="{$lang.text}">
    259259          {/foreach}
    260         {/if}       
     260        {/if}
    261261        <textarea id="itext" rows="4" cols="60" onkeyup="apply_changes('itext');" /></textarea>
    262262        </td>
     
    284284  <fieldset >
    285285    <legend>{'lmt_redirect_config'|@translate}</legend>
    286    
     286
    287287    <table class="formtable"  >
    288288
     
    291291        <td>
    292292          {html_options name="f_lmt_redirect_activated" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_redirect_activated}
     293        </td>
     294      </tr>
     295
     296      <tr>
     297        <td>{'lmt_cfg_warning_target'|@translate}<sup id="hlp10" class="icnhelp">?</sup></td>
     298        <td>
     299          {html_options name="f_lmt_redirect_open_target" values=$lmt_yesno_values output=$lmt_yesno_labels selected=$datas.lmt_redirect_open_target}
    293300        </td>
    294301      </tr>
  • extensions/lmt/admin/plugin_admin_list.tpl

    r3666 r4396  
    77
    88    tmp=http_request.responseText;
    9    
     9
    1010    $("#nbphotos").attr("innerHTML", tmp.substr(0,tmp.indexOf("#")));
    1111    $("#list").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
    12     $("#filter").value("innerHTML", tmp.substr(tmp.indexOf("#")+1));
     12    //$("#filter").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
    1313  }
    1414{/literal}
     
    2727  <div id="list">
    2828  </div>
    29  
     29
    3030  <form method="POST">
    3131    <p class="lmt_page" style="border-top:1px dotted;padding-top:10px;">
  • extensions/lmt/language/en_UK/plugin.lang.php

    r3396 r4396  
    172172$lang['lmt_yesno_y'] = 'Yes';
    173173
     174//1.1.0
     175$lang["lmt_help_config"][10] = "If activated, the page pointed to by the hyperlink will open in a new window.";
     176$lang["lmt_cfg_warning_target"] = "Force the page openning in a new window";
     177
    174178
    175179?>
  • extensions/lmt/language/fr_FR/plugin.lang.php

    r3396 r4396  
    178178$lang["lmt_nav_last"] = "Dernier";
    179179
     180//1.1.0
     181$lang["lmt_help_config"][10] = "Si activé, l'ouverture de la page vers laquelle pointe l'hyperlien sera effectuée dans une nouvelle fenêtre.";
     182$lang["lmt_cfg_warning_target"] = "Forcer l'ouverture dans une nouvelle fenêtre"
     183
     184
     185
    180186?>
  • extensions/lmt/lmt_aip.class.inc.php

    r3666 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 ! >>
     
    1010  See main.inc.php for release information
    1111
    12   LMT_AIP : classe to manage plugin admin pages 
     12  LMT_AIP : classe to manage plugin admin pages
    1313
    1414  --------------------------------------------------------------------------- */
     
    5353    $this->ajax = new Ajax();
    5454
    55     // don't create the google_translate object everytime, otherwise google's js 
     55    // don't create the google_translate object everytime, otherwise google's js
    5656    // code is always included in the header even if translation functionalities
    5757    // aren't needed
     
    192192
    193193  /*
    194  
     194
    195195  */
    196196  protected function display_help_page()
     
    239239    {
    240240      $filter_list_labels[] = "[".l10n("lmt_lbl_cc_s-".strtolower($val))."] ".l10n("lmt_lbl_cc-".strtolower($val));
    241       if($val==$_REQUEST['filter']) 
     241      if($val==$_REQUEST['filter'])
    242242      {
    243243        $filter_list_selected = $val;
    244244      }
    245245    }
    246  
     246
    247247    $filter_list_values = array_merge(array(''), $filter_list_values);
    248248    $filter_list_labels = array_merge(array(l10n('lmt_nofilter')), $filter_list_labels);
     
    261261    {
    262262
    263       $sql="REPLACE INTO ".CADDIE_TABLE." 
    264         SELECT '".$user['id']."', it.id FROM ".IMAGES_TABLE." it, ".$this->tables["images"]." lmti 
     263      $sql="REPLACE INTO ".CADDIE_TABLE."
     264        SELECT '".$user['id']."', it.id FROM ".IMAGES_TABLE." it, ".$this->tables["images"]." lmti
    265265        WHERE it.id = lmti.image_id";
    266266      if($_REQUEST['filter']!="")
     
    279279      }
    280280    }
    281  
     281
    282282    $template->assign('datas', $datas);
    283283    $template->assign('default_licence', $default_licence);
     
    314314          if($_POST['licence']=='DEFAULT')
    315315          {
    316             $sql="DELETE FROM ".$this->tables['images']." 
     316            $sql="DELETE FROM ".$this->tables['images']."
    317317                    WHERE image_id IN (".implode(",", $lst).")";
    318318          }
    319319          else
    320320          {
    321             $sql="REPLACE INTO ".$this->tables['images']." 
     321            $sql="REPLACE INTO ".$this->tables['images']."
    322322                    SELECT id, '".$_POST['licence']."', '".$_POST['author']."'
    323                     FROM ".IMAGES_TABLE." 
     323                    FROM ".IMAGES_TABLE."
    324324                    WHERE id IN (".implode(",", $lst).")";
    325325          }
     
    337337          case 'app_clear_selected':
    338338          case 'napp_clear_selected':
    339             $sql="DELETE FROM ".CADDIE_TABLE." 
     339            $sql="DELETE FROM ".CADDIE_TABLE."
    340340                  WHERE user_id = '".$user['id']."'
    341341                  AND element_id IN (".implode(",", $lst).")";
     
    398398      $licences_list_labels[] = "[".l10n("lmt_lbl_cc_s-".strtolower($val))."] ".l10n("lmt_lbl_cc-".strtolower($val));
    399399    }
    400  
     400
    401401/*    $licences_list_values = array_merge(array('DEFAULT'), $licences_list_values);
    402402    $licences_list_labels = array_merge(array(l10n('lmt_bydefault')), $licences_list_labels);*/
     
    406406
    407407    $selectlist_list_labels=array(
    408         l10n("lmt_choose_select"), 
    409         l10n("lmt_select_all"), 
    410         l10n("lmt_select_none"), 
    411         l10n("lmt_select_invert") 
     408        l10n("lmt_choose_select"),
     409        l10n("lmt_select_all"),
     410        l10n("lmt_select_none"),
     411        l10n("lmt_select_invert")
    412412    );
    413413    $selectlist_list_labels=array_merge($selectlist_list_labels, $licences_list_labels);
     
    437437                dirname($this->filelocation).'/admin/plugin_admin_config.tpl');
    438438
    439    
     439
    440440    $datas=array(
    441441      "img_directory" => LMT_PATH."img/"
     
    459459    $lmt_licence_default_labels = array();
    460460
    461     $tmp=array();   
     461    $tmp=array();
    462462    foreach($lmt_licence_default_values as $key=>$val)
    463463    {
     
    491491        'text' => $this->my_config['lmt_warning_texts'][$key]
    492492      );
    493      
     493
    494494      foreach($lmt_licence_default_values as $key2 => $val2)
    495495      {
     
    504504      $datas['help']['hlp'.$key]=addslashes($val);
    505505    }
    506    
     506
    507507    $lmt_licence_default_author_values=array(0);
    508508    $lmt_licence_default_author_labels=array(l10n("lmt_no_author"));
     
    555555
    556556    /* ------------------------------------------------------------------------
    557      * Add an author     
     557     * Add an author
    558558     * ---------------------------------------------------------------------- */
    559559    if(isset($_POST['submit_add_author']))
     
    578578      }
    579579    }
    580  
     580
    581581    /* ------------------------------------------------------------------------
    582      * Modify an author     
     582     * Modify an author
    583583     * ---------------------------------------------------------------------- */
    584584    if(isset($_POST['submit_modify_author']))
     
    586586      if($_POST["text1"]!="")
    587587      {
    588         $sql="UPDATE ".$this->tables["licence_author"]." 
    589               SET text1 = '". addslashes($_POST["text1"])."', 
    590                   text2 = '".addslashes($_POST["text2"])."' 
     588        $sql="UPDATE ".$this->tables["licence_author"]."
     589              SET text1 = '". addslashes($_POST["text1"])."',
     590                  text2 = '".addslashes($_POST["text2"])."'
    591591              WHERE id = '".$_POST["id"]."'";
    592592        $result=pwg_query($sql);
     
    608608
    609609    /* ------------------------------------------------------------------------
    610      * delete an author     
     610     * delete an author
    611611     * ---------------------------------------------------------------------- */
    612612    if($_REQUEST['action']=="delete")
     
    620620          $this->display_result(l10n("lmt_author_deleted"), true);
    621621
    622           $sql="UPDATE ".$this->tables["images"]." SET author_id = NULL 
     622          $sql="UPDATE ".$this->tables["images"]." SET author_id = NULL
    623623                WHERE author_id = '".$_REQUEST['id']."'";
    624624          $result=pwg_query($sql);
     
    639639        {
    640640          $this->display_result(l10n("lmt_cannot_delete_author"), false);
    641         } 
     641        }
    642642      }
    643643      else
     
    710710
    711711    if($_REQUEST["action"]=="edit")
    712     {   
     712    {
    713713      $sql="SELECT * FROM ".$this->tables['licence_author']." WHERE id = '".$_REQUEST['id']."'";
    714714      $result = pwg_query($sql);
     
    769769
    770770  /*
    771     this function return a js to manage licence text 
     771    this function return a js to manage licence text
    772772  */
    773773  protected function generate_js_licence_author()
     
    851851    $img_ids=array();
    852852    $img_liste = array();
    853     $sql="SELECT SQL_CALC_FOUND_ROWS lmti.*, img.file, img.path, img.tn_ext, 
    854                   GROUP_CONCAT(cat.id) AS catid, 
     853    $sql="SELECT SQL_CALC_FOUND_ROWS lmti.*, img.file, img.path, img.tn_ext,
     854                  GROUP_CONCAT(cat.id) AS catid,
    855855                  GROUP_CONCAT(CASE WHEN cat.name IS NULL THEN '' ELSE cat.name END SEPARATOR '@sep@') AS catname,
    856856                  GROUP_CONCAT(CASE WHEN cat.permalink IS NULL THEN '' ELSE cat.permalink END SEPARATOR '@sep@') AS catpermalink,
    857857                  GROUP_CONCAT(CASE WHEN cat.dir IS NULL THEN 'V' ELSE 'P' END) AS cattype,
    858                   lmtla.text1, lmtla.text2   
    859           FROM ".$this->tables["images"]." lmti 
    860                   LEFT OUTER JOIN ".$this->tables["licence_author"]." lmtla ON lmtla.id = lmti.author_id, 
    861                ".IMAGES_TABLE." img 
     858                  lmtla.text1, lmtla.text2
     859          FROM ".$this->tables["images"]." lmti
     860                  LEFT OUTER JOIN ".$this->tables["licence_author"]." lmtla ON lmtla.id = lmti.author_id,
     861               ".IMAGES_TABLE." img
    862862                  LEFT OUTER JOIN ".IMAGE_CATEGORY_TABLE." imgcat ON img.id = imgcat.image_id
    863863                  LEFT OUTER JOIN ".CATEGORIES_TABLE." cat ON imgcat.category_id = cat.id
     
    915915        );
    916916      }
    917     } 
     917    }
    918918
    919919    $sql="select FOUND_ROWS()";
     
    924924    $pages_navigation->set_nb_items($nb[0]);
    925925    $pages_navigation->set_nb_items_per_page($this->my_config['lmt_list_maxitems']);
    926     $pages_navigation->set_current_page($pagenum);   
     926    $pages_navigation->set_current_page($pagenum);
    927927    $pages_navigation->set_options(array(
    928928      "text_prev" => l10n("lmt_nav_prev"),
     
    955955
    956956    $img_liste = array();
    957     $sql="SELECT SQL_CALC_FOUND_ROWS img.id as image_id, img.file, img.path, img.tn_ext, 
    958                   GROUP_CONCAT(cat.id) AS catid, 
     957    $sql="SELECT SQL_CALC_FOUND_ROWS img.id as image_id, img.file, img.path, img.tn_ext,
     958                  GROUP_CONCAT(cat.id) AS catid,
    959959                  GROUP_CONCAT(CASE WHEN cat.name IS NULL THEN '' ELSE cat.name END SEPARATOR '@sep@') AS catname,
    960960                  GROUP_CONCAT(CASE WHEN cat.permalink IS NULL THEN '' ELSE cat.permalink END SEPARATOR '@sep@') AS catpermalink,
    961961                  GROUP_CONCAT(CASE WHEN cat.dir IS NULL THEN 'V' ELSE 'P' END) AS cattype,
    962                  lmti.licence_type, lmtla.text1, lmtla.text2 
    963           FROM ".CADDIE_TABLE." caddie, 
    964               (".IMAGES_TABLE." img 
     962                 lmti.licence_type, lmtla.text1, lmtla.text2
     963          FROM ".CADDIE_TABLE." caddie,
     964              (".IMAGES_TABLE." img
    965965                  LEFT OUTER JOIN ".IMAGE_CATEGORY_TABLE." imgcat ON img.id = imgcat.image_id
    966966                  LEFT OUTER JOIN ".CATEGORIES_TABLE." cat ON imgcat.category_id = cat.id)
    967                 LEFT OUTER JOIN ".$this->tables["images"]." AS lmti ON img.id = lmti.image_id 
     967                LEFT OUTER JOIN ".$this->tables["images"]." AS lmti ON img.id = lmti.image_id
    968968                LEFT OUTER JOIN ".$this->tables["licence_author"]." lmtla  ON lmtla.id = lmti.author_id
    969969          WHERE img.id = caddie.element_id
     
    10171017        );
    10181018      }
    1019     } 
     1019    }
    10201020
    10211021    $sql="select FOUND_ROWS()";
     
    10261026    $pages_navigation->set_nb_items($nb[0]);
    10271027    $pages_navigation->set_nb_items_per_page($this->my_config['lmt_list_maxitems']);
    1028     $pages_navigation->set_current_page($pagenum);   
     1028    $pages_navigation->set_current_page($pagenum);
    10291029    $pages_navigation->set_options(array(
    10301030      "text_prev" => l10n("lmt_nav_prev"),
  • extensions/lmt/lmt_pip.class.inc.php

    r3396 r4396  
    9191      {
    9292        $url=$this->my_config['lmt_redirect_url-'.strToLower($licence['licence'])]['en_UK'];
    93       }     
     93      }
    9494    }
    9595    else
     
    100100    $style="";
    101101    $text="";
     102    $target=($this->my_config['lmt_redirect_open_target']=="y")?" onclick='window.open(this.href); return false;'":"";
    102103    switch($this->my_config['lmt_licence_logo'])
    103104    {
     
    105106        if($url!="")
    106107        {
    107           $text = "<br/><a href='".$url."'><img class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'></a>".$licence['aut_text1']." ".$licence['aut_text2'];
     108          $text = "<br/><a href='".$url."'".$target."><img class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'></a>".$licence['aut_text1']." ".$licence['aut_text2'];
    108109        }
    109110        else
    110111        {
    111112          $text = "<br/><img class='logo80x15' src='". LMT_PATH."img/".strToLower($licence['licence'])."_80x15.png'>".$licence['aut_text1']." ".$licence['aut_text2'];
    112         } 
     113        }
    113114      break;
    114115      case '88x31';
     
    116117        if($url!="")
    117118        {
    118           $text = "<table style='margin:auto;'><tr><td><a href='".$url."'><img 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>";
     119          $text = "<table style='margin:auto;'><tr><td><a href='".$url."'".$target."><img 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>";
    119120        }
    120121        else
     
    126127        if($url!="")
    127128        {
    128           $text ="<br/>".l10n("lmt_lbl_under-".strToLower($licence['licence']))." <a href='".$url."'>".l10n("lmt_lbl_cc_s-".strToLower($licence['licence']))."</a> ".$licence['aut_text1']." ".$licence['aut_text2'];
     129          $text ="<br/>".l10n("lmt_lbl_under-".strToLower($licence['licence']))." <a href='".$url."'".$target.">".l10n("lmt_lbl_cc_s-".strToLower($licence['licence']))."</a> ".$licence['aut_text1']." ".$licence['aut_text2'];
    129130        }
    130131        else
     
    134135        break;
    135136    }
    136    
     137
    137138    $template->concat('COMMENT_IMG', '<span class="licencetag" '.$style.'>'.$text.'</span>');
    138139  }
     
    168169      if($url!="")
    169170      {
    170         $replacements[0]="<a href='".$url."'>".$replacements[0]."</a>";
    171         $replacements[1]="<a href='".$url."'>".$replacements[1]."</a>";
    172         $replacements[2]="<a href='".$url."'>".$replacements[2]."</a>";
     171        $target=($this->my_config['lmt_redirect_open_target']=="y")?" onclick='window.open(this.href); return false;'":"";
     172        $replacements[0]="<a href='".$url."'".$target.">".$replacements[0]."</a>";
     173        $replacements[1]="<a href='".$url."'".$target.">".$replacements[1]."</a>";
     174        $replacements[2]="<a href='".$url."'".$target.">".$replacements[2]."</a>";
    173175      }
    174176    }
  • 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
  • extensions/lmt/main.inc.php

    r3666 r4396  
    22/*
    33Plugin Name: LMT
    4 Version: 1.0.2
     4Version: 1.1.0
    55Description: Appliquer une licence sur ses photos / Apply a licence on photos
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=282
     
    2323| release | date       |
    2424| 1.0.0   | 2009/03/01 | first release
    25 | 1.0.1   | 2009/05/01 | * modify de style for 80x15&text logo (to be centered 
     25| 1.0.1   | 2009/05/01 | * modify de style for 80x15&text logo (to be centered
    2626|         |            |   like the 88x31 logo)
    2727|         |            | * modify the footer (allows to use html markup)
    2828| 1.0.2   | 2009/06/12 | * the plugin can't manage picture if no physical category
    2929|         |            |   is affected (pictures uploaded with pLoader have
    30 |         |            |   only virtual categories). For now, use a LEFT OUTER JOIN 
     30|         |            |   only virtual categories). For now, use a LEFT OUTER JOIN
    3131|         |            |   on physical categorie ; virtual category management will
    3232|         |            |   be coded for the next release
    33 | 1.0.3   | 2009/07/24 | * bug on "list" page when trying to add items in the 
     33| 1.0.3   | 2009/07/24 | * bug on "list" page when trying to add items in the
    3434|         |            |   caddie (==> topic #116263 on french forum)
    35 |         |            | * bug when displaying image's categories when image 
     35|         |            | * bug when displaying image's categories when image
    3636|         |            |   only have virtual categories / now display all image
    37 |         |            |   categories (physical & virtual)
    38 |         |            |   (==>topic #113337 on french forum) 
    39 |         |            |   
    40 |         |            |   
    41 |         |            |   
    42  
     37|         |            |   categories (physical & virtual)
     38|         |            |   (==>topic #113337 on french forum)
     39| 1.1.0   | 2009/11/29 | * mantis : feature 1294
     40|         |            |   Allow to open the licence page on a new page/tab when
     41|         |            |   user clic on the licence hyperlink
     42|         |            | * mantis : feature 1295
     43|         |            |   Compatibility with theme 'montblanc'
     44|         |            |
     45|         |            |
     46|         |            |
     47|         |            |
     48|         |            |
     49|         |            |
     50|         |            |
     51|         |            |
     52|         |            |
     53
    4354
    4455:: TO DO
     
    6576define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/');
    6677
    67 define('LMT_VERSION' , '1.0.2'); // => ne pas oublier la version dans l'entête !!
     78define('LMT_VERSION' , '1.1.0'); // => ne pas oublier la version dans l'entête !!
    6879
    6980global $prefixeTable;
Note: See TracChangeset for help on using the changeset viewer.