Changeset 20251


Ignore:
Timestamp:
Jan 18, 2013, 8:21:30 PM (8 years ago)
Author:
nikrou
Message:

Mise à jour année du copyright

Location:
extensions/user_tags
Files:
5 added
47 edited
3 copied

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/CHANGELOG

    r20139 r20251  
    1 User Tags 0.6.2 - 2013-01-14
     1User Tags 0.7.1 - 2012-09-12
    22================================
    3 * Fix issue with cache directory key in config parameters array.
     3* Fix issue with image without tag
     4
     5User Tags 0.7.0 - 2012-09-11
     6================================
     7* Fix incompatibility with piwigo 2.4.x
     8* Fix issue when adding similary tags
    49
    510User Tags 0.6.1 - 2011-07-18
  • extensions/user_tags/MANIFEST

    r11741 r20251  
    3232user_tags/language/lv_LV/help/index.php
    3333user_tags/language/lv_LV/help/readme.html
     34user_tags/language/tr_TR/plugin.lang.php
     35user_tags/language/tr_TR/index.php
     36user_tags/language/tr_TR/description.txt
     37user_tags/language/tr_TR/help/index.php
     38user_tags/language/tr_TR/help/readme.html
    3439user_tags/language/no_NO/plugin.lang.php
    3540user_tags/language/no_NO/index.php
     
    3742user_tags/language/no_NO/help/index.php
    3843user_tags/language/no_NO/help/readme.html
     44user_tags/language/nb_NO/plugin.lang.php
     45user_tags/language/nb_NO/index.php
     46user_tags/language/nb_NO/description.txt
     47user_tags/language/nb_NO/help/index.php
     48user_tags/language/nb_NO/help/readme.html
    3949user_tags/language/it_IT/plugin.lang.php
    4050user_tags/language/it_IT/index.php
     
    6171user_tags/css/admin.css
    6272user_tags/css/style.css
     73user_tags/css/imgs/edit.png
    6374user_tags/css/imgs/close.png
    6475user_tags/public.php
  • extensions/user_tags/admin.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/css/style.css

    r11741 r20251  
    1 .flash-messages{position:fixed;width:60%;display:none;top:50%;left:200px;font-size:.85em;}
    2 .flash-messages div{margin-left:120px;min-height:30px;padding:10px;font-weight:bold;}
    3 .flash-messages div.errors{color:red;background-color:#ffe1e1;border:1px solid red;}
    4 .flash-messages div.infos{color:green;background-color:#98fb98;}
    5 #t4u-update{float:right;}
     1#flash-messages{position:fixed;width:60%;display:none;top:50%;left:200px;font-size:.85em;}
     2#flash-messages div{margin-left:120px;min-height:30px;padding:10px;font-weight:bold;}
     3#flash-messages div.errors{color:red;background-color:#ffe1e1;border:1px solid red;}
     4#flash-messages div.infos{color:green;background-color:#98fb98;}
     5#t4u-update{float:right;cursor:pointer;}
    66#t4u-cancel,#t4u-update{margin-top:5px;}
    77#t4u-edit{margin-left:5px;}
    8 .t4u-clickable{cursor:pointer;}
    9 #t4u-addtags-form .t4u-disabled{color:#999;border-color:#666;}
    10 ul.token-input-list-facebook{overflow:hidden;height:auto!important;height:1%;width:400px;border:1px solid #8496ba;cursor:text;font-size:12px;font-family:Verdana;min-height:1px;z-index:999;margin:0;padding:0;background-color:#fff;list-style-type:none;clear:left;}
    11 ul.token-input-list-facebook li input{border:0;width:100px;padding:3px 8px;background-color:white;margin:2px 0;-webkit-appearance:caret;}
    12 li.token-input-token-facebook,li.token-input-new-token-facebook{overflow:hidden;height:auto!important;height:15px;margin:3px;padding:1px 3px;background-color:#eff2f7;color:#000;cursor:default;border:1px solid #ccd5e4;font-size:11px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;float:left;white-space:nowrap;}
    13 li.token-input-new-token-facebook{background-color:#FAF;}
    14 li.token-input-token-facebook span{margin-left:5px;cursor:pointer;}
    15 li.token-input-selected-token-facebook{background-color:#5670a6;border:1px solid #3b5998;color:#fff;}
    16 li.token-input-input-token-facebook{float:left;margin:0;padding:0;list-style-type:none;}
    17 div.token-input-dropdown-facebook{position:absolute;width:400px;background-color:#fff;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;cursor:default;font-size:11px;font-family:Verdana;z-index:1;}
    18 div.token-input-dropdown-facebook p{margin:0;padding:5px;font-weight:bold;color:#777;}
    19 div.token-input-dropdown-facebook ul{margin:0;padding:0;}
    20 div.token-input-dropdown-facebook ul li{background-color:#fff;padding:3px;margin:0;list-style-type:none;}
    21 div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook{background-color:#fff;}
    22 div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook{background-color:#fff;}
    23 div.token-input-dropdown-facebook ul li em{font-weight:bold;font-style:normal;}
    24 div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook{background-color:#3b5998;color:#fff;}
     8#t4u-update-tags .t4u-disabled{color:#999;border-color:#666;cursor:default;}
     9#Tags{background:transparent url(imgs/edit.png) no-repeat left top;padding-left:20px;cursor:pointer;}
     10ul.token-input-list{overflow:hidden;height:auto!important;height:1%;width:400px;border:1px solid #8496ba;cursor:text;font-size:12px;font-family:Verdana;min-height:1px;z-index:999;margin:0;padding:0;background-color:#fff;list-style-type:none;clear:left;}
     11ul.token-input-list li input{border:0;width:100px;padding:3px 8px;background-color:white;margin:2px 0;}
     12li.token-input-token{overflow:hidden;height:auto!important;height:15px;margin:3px;padding:1px 3px;background-color:#eff2f7;color:#000;cursor:default;border:1px solid #ccd5e4;font-size:11px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;float:left;white-space:nowrap;}
     13li.token-input-token p{display:inline;padding:0;margin:0;}
     14li.token-input-token span{color:#a6b3cf;margin-left:5px;font-weight:bold;cursor:pointer;}
     15li.token-input-selected-token{background-color:#5670a6;border:1px solid #3b5998;color:#fff;}
     16li.token-input-input-token{float:left;margin:0;padding:0;list-style-type:none;width:10px;}
     17li.token-input-input-token input{color:#000;}
     18div.token-input-dropdown{position:absolute;width:400px;background-color:#fff;overflow:hidden;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;cursor:default;font-size:11px;font-family:Verdana;z-index:1;}
     19div.token-input-dropdown p{margin:0;padding:5px;font-weight:bold;color:#777;}
     20div.token-input-dropdown ul{margin:0;padding:0;}
     21div.token-input-dropdown ul li{background-color:#fff;padding:3px;margin:0;list-style-type:none;}
     22div.token-input-dropdown ul li.token-input-dropdown-item{background-color:#fff;}
     23div.token-input-dropdown ul li.token-input-dropdown-item2{background-color:#fff;}
     24div.token-input-dropdown ul li em{font-weight:bold;font-style:normal;}
     25div.token-input-dropdown ul li.token-input-selected-dropdown-item{background-color:#3b5998;color:#fff;}
  • extensions/user_tags/include/autoload.inc.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/include/constants.inc.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/include/default_values.inc.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/include/t4u_config.class.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/include/t4u_content.class.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
     
    2929    global $template;
    3030
    31     if (!$this->plugin_config->hasPermission('add')) {
    32       return $content;
     31    $template->set_prefilter('picture', array(__CLASS__, 'picture_prefilter'));
     32
     33    if ($this->plugin_config->hasPermission('add')) {
     34      load_language('plugin.lang', T4U_PLUGIN_LANG);
     35
     36      $template->assign('T4U_JS', T4U_JS);
     37      $template->assign('T4U_CSS', T4U_CSS);
     38      $template->assign('T4U_IMGS', T4U_IMGS);
     39      $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
     40      $template->assign('T4U_UPDATE_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'update');
     41      $template->assign('T4U_UPDATE_METHOD', T4U_WS.'update');
     42      $template->assign('T4U_LIST_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'list');
     43      $template->assign('T4U_IMAGE_ID', $picture['id']);
     44      $template->assign('T4U_REFERER', urlencode($picture['url']));
     45      $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
     46     
     47      $related_tags = array();
     48      if (!empty($template->smarty->_tpl_vars['related_tags'])) {
     49        foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
     50          $related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name'];
     51        }
     52        $template->assign('T4U_RELATED_TAGS', $related_tags);
     53      }
     54
     55      $template->set_filename('add_tags', T4U_TEMPLATE.'/add_tags.tpl');
     56      $template->assign_var_from_handle('PLUGIN_PICTURE_AFTER', 'add_tags');
    3357    }
     58  }
    3459
    35     load_language('plugin.lang', T4U_PLUGIN_LANG);
    36 
    37     $template->assign('T4U_JS', T4U_JS);
    38     $template->assign('T4U_CSS', T4U_CSS);
    39     $template->assign('T4U_IMGS', T4U_IMGS);
    40     $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
    41     $template->assign('T4U_UPDATE_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'update');
    42     $template->assign('T4U_UPDATE_METHOD', T4U_WS.'update');
    43     $template->assign('T4U_GET_SCRIPT', get_root_url().'ws.php?format=json&method='.T4U_WS.'list');
    44     $template->assign('T4U_IMAGE_ID', $picture['id']);
    45     $template->assign('T4U_REFERER', urlencode($picture['url']));
    46     $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
    47 
    48     $related_tags = array();
    49     if (!empty($template->smarty->_tpl_vars['related_tags'])) {
    50       foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
    51         $related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name'];
    52       }
    53     }
    54     $template->assign('T4U_RELATED_TAGS', $related_tags);
    55 
    56     $template->set_filename('add_tags', T4U_TEMPLATE.'/add_tags.tpl');
    57 
    58     $plugin_picture_before = $template->get_template_vars('PLUGIN_PICTURE_BEFORE');
    59     $plugin_picture_before .= $template->parse('add_tags', true);
    60     $template->append('PLUGIN_PICTURE_BEFORE', $plugin_picture_before);
    61 
    62     return $content;
     60  public static function picture_prefilter($source, &$smarty) {
     61    $pattern = '{if $display_info.tags and isset($related_tags)}';
     62    $replace = '{if $display_info.tags}';
     63   
     64    return str_replace($pattern, $replace, $source);
    6365  }
    6466}
  • extensions/user_tags/include/t4u_ws.class.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
     
    2828
    2929    $service->addMethod(T4U_WS.'list', array($this, 'tagsList'),
    30                         array(),
     30                        array('q' => array()),
    3131                        'retrieves a list of tags than can be filtered'
    3232                        );
     
    4141
    4242  public function tagsList($params, &$service) {
    43     $query = '
    44 SELECT
    45     id AS tag_id,
    46     name AS tag_name
    47   FROM '.TAGS_TABLE.'
    48 ;';
    49    
     43    $query = 'SELECT id AS tag_id, name AS tag_name FROM '.TAGS_TABLE;
     44    if (!empty($params['q'])) {
     45      $query .= sprintf(' WHERE name like \'%%%s%%\'', $params['q']);
     46    }
     47
    5048    $tagslist = $this->__makeTagsList($query);
    5149    unset($tagslist['__associative_tags']);
     
    106104    }
    107105
    108     if (!empty($tags_to_associate)) {
    109       $tag_ids = get_tag_ids(implode(',', $tags_to_associate));
    110       set_tags($tag_ids, $params['image_id']); 
     106    if (empty($message['error'])) {
     107      if (empty($tags_to_associate)) { // remove all tags for an image
     108        $query = 'DELETE FROM '.IMAGE_TAG_TABLE;
     109        $query .= sprintf(' WHERE image_id = %d', $params['image_id']);
     110        pwg_query($query);
     111      } else {
     112        $tag_ids = get_tag_ids(implode(',', $tags_to_associate));
     113        set_tags($tag_ids, $params['image_id']); 
     114      }
    111115    }
    112116   
  • extensions/user_tags/init.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/js/jquery.addtags.js

    r11741 r20251  
    1 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6($){7 4q={2a:"4T 4S a 4U 2F",2R:"4V A",2E:"4X...",3S:"&4W;",47:4R,3j:1,1f:E,1J:E,23:"4Q",4c:"3n",4b:"q",2A:",",3b:J,3l:E,4f:J,4w:1I,1b:E,3c:E,2Y:E,1X:J,2X:J};7 1Y={4p:"c-n-4t",c:"c-n-c",2N:"c-n-4L-c",1B:"c-n-4K-c",2K:"c-n-1a-c",2v:"c-n-4x-c",2t:"c-n-4M-c",G:"c-n-G",4v:"c-n-G-z",4B:"c-n-G-4N",2O:"c-n-4x-G-z",45:"c-n-n-c"};7 W={2G:0,1V:1,1E:2};7 y={3J:8,3P:9,3u:13,3m:27,4P:32,4O:33,4Y:34,1E:35,4Z:36,2b:37,25:38,20:39,26:40,3C:59,3A:58};$.2U.3r=6(1d,1U){7 3=$.3h({},4q,1U||{});v m.P(6(){1a $.21(m,1d,3)})};$.2U.5a=6(z){2u(z.d,z.u)};$.21=6(n,1d,3){4(3x(1d)==="5b"){3.10=1d;4(3.2d===3d){4(3.10.3k("://")===-1){3.2d=J}l{3.2d=(5d.5c.1F(/\\/+/g)[1]!==3.10.1F(/\\/+/g)[1])}}}l 4(3x(1d)==="4J"){3.3i=1d}4(3.k){3.k=$.3h({},1Y,3.k)}l 4(3.3g){3.k={};$.P(1Y,6(3t,h){3.k[3t]=h+"-"+3.3g})}l{3.k=1Y}7 V=[];7 17=0;7 1Z=1a $.21.49();7 2L;7 2m;7 t=$("<n 1s=\\"2W\\"  57=\\"56\\">").18({51:"50"}).T(6(){4(3.1f===E||3.1f!==17){3T()}}).24(6(){16()}).52("53 3R 24 29",41).3R(6(w){7 R;7 1n;55(w.Z){Q y.2b:Q y.20:Q y.25:Q y.26:4(!$(m).B()){R=U.2D();1n=U.3K();4((R.D&&R.C(0)===x)||(1n.D&&1n.C(0)===x)){4(w.Z===y.2b||w.Z===y.25){19($(x),W.2G)}l{19($(x),W.1V)}}l 4((w.Z===y.2b||w.Z===y.25)&&R.D){1h($(R.C(0)))}l 4((w.Z===y.20||w.Z===y.26)&&1n.D){1h($(1n.C(0)))}}l{7 1q=E;4(w.Z===y.26||w.Z===y.20){1q=$(N).3K()}l{1q=$(N).2D()}4(1q.D){22(1q)}v J}1T;Q y.3J:R=U.2D();4(!$(m).B().D){4(x){4(3.1X||$(x).1r(\'1L.\'+3.k.2N).D>0){2w($(x))}}l 4(R.D){1h($(R.C(0)))}v J}l 4($(m).B().D===1){16()}l{2Q(6(){2P()},5)}1T;Q y.3P:Q y.3u:Q y.3C:Q y.3A:4(N){2H($(N));v J}l 4(3.2X){4($(m).B().D>0){2J($(m).B(),$(m).B(),1I);$(m).B("")}v J}1T;Q y.3m:16();v 1I;4I:4(4D.4C(w.4F)){2Q(6(){2P()},5)}1T}});7 M=$(n).1l().B("").T(6(){t.T()}).24(6(){t.24()});7 x=E;7 O=0;7 N=E;7 1c=$("<2Z />").H(3.k.4p).2l(6(w){7 o=$(w.1w).1x("o");4(o&&o.C(0)&&$.f(o.C(0),"1g")){3F(o)}l{4(x){19($(x),W.1E)}t.T()}}).4o(6(w){7 o=$(w.1w).1x("o");4(o&&x!==m){o.H(3.k.2t)}}).4H(6(w){7 o=$(w.1w).1x("o");4(o&&x!==m){o.1m(3.k.2t)}}).2y(M);7 U=$("<o />").H(3.k.45).1j(1c).1G(t);7 G=$("<1e>").H(3.k.G).1j("3s").1l();7 2r=$("<4E/>").2x(t).18({1p:"3v",2I:-43,2C:-43,2q:"4G",4e:t.18("4e"),4a:t.18("4a"),4d:t.18("4d"),3y:t.18("3y"),5o:"69"});M.B("");7 F=3.3l||M.f("63");4(3.4f&&$.1H(3.1b)){F=3.1b.1M(M,F)}4(F&&F.D){$.P(F,6(L,h){2u(h.d,h.u)})}6 41(){4(2m===(2m=t.B())){v}7 4y=2m.1u(/&/g,\'&6b;\').1u(/\\s/g,\' \').1u(/</g,\'&5T;\').1u(/>/g,\'&5U;\');2r.1o(4y);t.2q(2r.2q()+30)}6 5V(Y){v((Y>=48&&Y<=5Y)||(Y>=5X&&Y<=5W)||(Y>=5Z&&Y<=5Q)||(Y>=5P&&Y<=5f))}6 3H(d,h){1N(d,h,3.k.2K)}6 3I(d,h){1N(d,h,3.k.1B)}6 2u(d,h){1N(d,h,3.k.c)}6 1N(d,h,1C){7 1v=$("<o><1L>"+h+"</1L></o>").H(1C).2y(U);4(1C==3.k.2K||1C==3.k.1B||3.1X){$("<1L>"+3.3S+"</1L>").H(3.k.2N).1j(1v).2l(6(){2w($(m).62());v J})}4(1C==3.k.1B){1v.1m(3.k.1B).H(3.k.c)}7 15={"d":d,"u":h};$.f(1v.C(0),"1g",15);V=V.2g(0,O).2p([15]).2p(V.2g(O));O++;7 2c=$.3D(V,6(2f){v 2f.d});M.B(2c.3q(3.2A));17+=1;v 1v}6 2H(z){7 15=$.f(z.C(0),"1g");2J(15.d,15.u,J)}6 2J(d,u,3O){7 F={d:d,u:u};7 1i=3.3c;4(17>0&&3.3b){7 1D=E;1c.1r().P(6(){7 2M=$(m);7 2n=$.f(2M.C(0),"1g");4(2n&&((2n.d===F.d)||(2n.u===F.u))){1D=2M;v J}});4(1D){1h(1D);U.2x(1D);t.T();v}}4(3O){3H(F.d,F.u)}l{3I(F.d,F.u)}4(3.1f!==E&&17>=3.1f){t.1l();16();v}l{t.T()}t.B("");16();4($.1H(1i)){1i.1M(M,F)}}6 1h(c){c.H(3.k.2v);x=c.C(0);t.B("");16()}6 19(c,1p){c.1m(3.k.2v);x=E;4(1p===W.2G){U.2y(c);O--}l 4(1p===W.1V){U.2x(c);O++}l{U.1j(1c);O=17}t.T()}6 3F(c){7 3G=x;4(x){19($(x),W.1E)}4(3G===c.C(0)){19(c,W.1E)}l{1h(c)}}6 2w(c){7 15=$.f(c.C(0),"1g");7 1i=3.2Y;7 L=c.5N().D;4(L>O){L--}c.4k();x=E;t.T();V=V.2g(0,L).2p(V.2g(L+1));4(L<O){O--}7 2c=$.3D(V,6(2f){v 2f.d});M.B(2c.3q(3.2A));17-=1;4(3.1f!==E){t.2B().B("").T()}4($.1H(1i)){1i.1M(M,15)}}6 16(){G.1l().3W();N=E}6 1t(){G.18({1p:"3v",2I:$(1c).3w().2I+$(1c).5g(),2C:$(1c).3w().2C,5j:5k}).2B()}6 3Z(){4(3.2E){G.1o("<p>"+3.2E+"</p>");1t()}}6 3T(){4(3.2a){G.1o("<p>"+3.2a+"</p>");1t()}}6 4u(h,2F){v h.1u(1a 5l("(?![^&;]+;)(?!<[^<>]*)("+2F+")(?![^<>]*>)(?![^&;]+;)","5x"),"<b>$1</b>")}6 1S(r,A){4(A&&A.D){G.3W();7 1Q=$("<2Z>").1j(G).4o(6(w){22($(w.1w).1x("o"))}).5I(6(w){2H($(w.1w).1x("o"));v J}).1l();$.P(A,6(L,h){7 1y=$("<o>"+4u(h.u,r)+"</o>").1j(1Q);4(L%2){1y.H(3.k.4v)}l{1y.H(3.k.4B)}4(L===0){22(1y)}$.f(1y.C(0),"1g",{"d":h.d,"u":h.u})});1t();4(3.4w){1Q.5J("5K")}l{1Q.2B()}}l{4(3.2R){G.1o("<p>"+3.2R+"</p>");1t()}}}6 22(z){4(z){4(N){46($(N))}z.H(3.k.2O);N=z.C(0)}}6 46(z){z.1m(3.k.2O);N=E}6 2P(){7 r=t.B().1R();4(r&&r.D){4(x){19($(x),W.1V)}4(r.D>=3.3j){3Z();5y(2L);2L=2Q(6(){4g(r)},3.47)}l{16()}}}6 4g(r){7 2o=1Z.C(r);4(2o){1S(r,2o)}l{4(3.10){7 K={};K.f={};4(3.10.3k("?")>-1){7 2z=3.10.1F("?");K.10=2z[0];7 4i=2z[1].1F("&");$.P(4i,6(L,h){7 2s=h.1F("=");K.f[2s[0]]=2s[1]})}l{K.10=3.10}K.f[3.4b]=r;K.1s=3.23;K.3B=3.4c;4(3.2d){K.3B="5D"}K.5E=6(A){4($.1H(3.1b)){A=3.1b.1M(M,A)}1Z.3e(r,3.1J?A[3.1J]:A);4(t.B().1R()===r){1S(r,3.1J?A[3.1J]:A)}};$.5C(K)}l 4(3.3i){7 A=$.5B(3.3i,6(4h){v 4h.u.1R().3k(r.1R())>-1});4($.1H(3.1b)){A=3.1b.1M(M,A)}1Z.3e(r,A);1S(r,A)}}}};$.21.49=6(1U){7 3=$.3h({3Y:42},1U);7 f={};7 1W=0;7 3X=6(){f={};1W=0};m.3e=6(r,A){4(1W>3.3Y){3X()}4(!f[r]){1W+=1}f[r]=A};m.C=6(r){v f[r]}}}(3f));7 $j=3f.5z();(6($){$.2k=6(2V,f){$(2V).1o(\'\');$(2V).1l().1G(f).5A(42).5F(5G)};$.2U.2k=6(f){m.P(6(){1a $.2k(m,f)})};v m})(3f);6 2T(z){$j(\'#I-29\').1m(\'I-12\').5L(\'12\');v}6 4A(z){$j(\'#11\').1G(\'<1K h="\'+z.d+\'">\'+z.u+\'</1K>\');2T()}6 3p(z){$j(\'#11\').1r(\'1K\').P(6(i){4($j(m).2W()===z.u){$j(m).4k()}});2T()}6 3N(f){7 1z=\'\';$j(\'#I-29\').H(\'I-12\').1P(\'12\',\'12\');4(f.4z!==3d){1z=\'<1e 28="5M">\'+f.4z+\'</1e>\';7 4n=\'c-n-1a-c-1A\',4m=\'c-n-c-1A\';$j(\'2Z.c-n-4t-1A o.c-n-1a-c-1A\').1m(4n).H(4m)}4(f.4l!==3d){1z+=\'<1e 28="5H">\'+f.4l+\'</1e>\'}4(1z!==\'\'){$j(\'.3a-31\').2k(1z)}}$j(5w).5m(6(){4($j(\'.3a-31\').D==0){$j(\'3s\').1G(\'<1e 28="3a-31"></1e>\')}7 S=\'<2e 5h="\'+14.3M+\'" 23="3L" d="I-44-2e">\';S+=\'<3z d="11" u="11">\';S+=5i;S+=\'</3z>\';S+=\'<n d="I-3Q-d" 1s="3o" u="4r" h="\'+14.5n+\'">\';S+=\'<n d="I-1O" 1s="3o" u="1O" h="\'+14.5O+\'">\';S+=\'<n d="I-29" 1s="4s" 12="12" 28="I-12" h="\'+2i.5u+\'">\';S+=\'</2e>\';4($j(\'#1k\').D>0){7 2h,2j;4($j(\'#1k\').C(0).5v===\'5t\'){2h=\'#1k 3V.5s\';2j=\'#1k 3V.h\'}l{2h=\'#1k\';2j=\'#1k\'}$j(2h).1G(\'<5p d="I-5q" 5r="\'+14.60+\'" 6a="\'+2i.3E+\'">\').1P(\'64\',2i.3E).H(\'I-65\').2l(6(){$j(m).6c(\'2l\');$j(2j).1o(S);7 2S=[];$j(\'#11\').1r(\'1K\').P(6(){2S.67({d:$j(m).1P(\'d\'),u:$j(m).2W()})});$j.68(14[\'66\'],6(f){$j(\'#11\').3r(f.3U,{2a:2i.61,3g:\'1A\',3j:2,1f:5S,3b:1I,3l:2S,1X:14.5R,2Y:3p,3c:4A,2X:1I})});$j(\'#I-44-2e\').4s(6(e){e.4j();7 X=\'4r=\'+$j(\'#I-3Q-d\',$j(m)).B();X+=\'&23=\'+14.5e;X+=\'&1O=\'+$j(\'#I-1O\',$j(m)).B();X+=\'&11=\';$j(\'#11\').1r(\'1K\').P(6(i){X+=$j(m).1P(\'h\')+\',\'});X=X.54(0,X.D-1);$j.3L(14.3M,X,6(f){3N(f.3U)},\'3n\');e.4j()})})}});',62,385,'|||settings|if||function|var|||||token|id||data||value|||classes|else|this|input|li|||query||input_box|name|return|event|selected_token|KEY|item|results|val|get|length|null|li_data|dropdown|addClass|t4u|false|ajax_params|index|hidden_input|selected_dropdown_item|selected_token_index|each|case|previous_token|newRow|focus|input_token|saved_tokens|POSITION|serialized_form|keycode|keyCode|url|tags|disabled||path|token_data|hide_dropdown|token_count|css|deselect_token|new|onResult|token_list|url_or_data|div|tokenLimit|tokeninput|select_token|callback|appendTo|Tags|hide|removeClass|next_token|html|position|dropdown_item|children|type|show_dropdown|replace|this_token|target|closest|this_li|message|facebook|tokenChoosed|className|found_existing_token|END|split|append|isFunction|true|jsonContainer|option|span|call|_insert_token|referer|attr|dropdown_ul|toLowerCase|populate_dropdown|break|options|AFTER|size|canDelete|DEFAULT_CLASSES|cache|RIGHT|TokenList|select_dropdown_item|method|blur|UP|DOWN||class|update|hintText|LEFT|token_ids|crossDomain|form|el|slice|icon_selector|vocab|input_selector|flashMessage|click|input_val|existing_data|cached_results|concat|width|input_resizer|kv|highlightedToken|insert_token|selectedToken|delete_token|insertAfter|insertBefore|parts|tokenDelimiter|show|left|prev|searchingText|term|BEFORE|add_token|top|_add_token|tokenNew|timeout|existing_token|tokenDelete|selectedDropdownItem|do_search|setTimeout|noResultsText|existing_tags|t4u_on_change|fn|source|text|allowNewItems|onDelete|ul||messages|||||||||flash|preventDuplicates|onAdd|undefined|add|jQuery|theme|extend|local_data|minChars|indexOf|prePopulate|ESCAPE|json|hidden|t4u_on_delete|join|tokenInput|body|key|ENTER|absolute|offset|typeof|letterSpacing|select|COMMA|dataType|NUMPAD_ENTER|map|click_to_add_tags|toggle_select_token|previous_selected_token|insert_new_token|insert_choosed_token|BACKSPACE|next|post|t4u_update_script|t4u_form_success|new_token|TAB|image|keydown|deleteText|show_dropdown_hint|result|td|empty|flush|max_size|show_dropdown_searching||resize_input|500|9999|addtags|inputToken|deselect_dropdown_item|searchDelay||Cache|fontFamily|queryParam|contentType|fontWeight|fontSize|processPrePopulate|run_search|row|param_array|preventDefault|remove|error|normal_class|new_class|mouseover|tokenList|DEFAULT_SETTINGS|image_id|submit|list|highlight_term|dropdownItem|animateDropdown|selected|escaped|info|t4u_on_add|dropdownItem2|fromCharCode|String|tester|which|auto|mouseout|default|object|choosed|delete|highlighted|item2|PAGE_UP|SPACE|GET|300|in|Type|search|No|times|Searching|PAGE_DOWN|HOME|none|outline|bind|keyup|substring|switch|off|autocomplete|188|108|insertToken|string|href|location|t4u_update_method|222|outerHeight|action|related_tags|zindex|999|RegExp|ready|t4u_image_id|whiteSpace|img|edit|src|label|TR|update_tags|nodeName|document|gi|clearTimeout|noConflict|fadeIn|grep|ajax|jsonp|success|fadeOut|3000|errors|mousedown|slideDown|fast|removeAttr|infos|prevAll|t4u_referer|219|192|t4u_permission_delete|100|lt|gt|is_printable_character|111|96|90|186|t4u_edit_icon|start_to_type|parent|pre|title|clickable|t4u_get_script|push|getJSON|nowrap|alt|amp|unbind'.split('|'),0,{}))
     1eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 $j=10.1i();(2($){$.m=2(w,4){$(w).B(\'\');$(w).1o().L(4).1t(1g).14(13)};$.12.m=2(4){7.E(2(){11 $.m(7,4)})};H 7})($j);$j(2(){3 6=[];$j(\'#P\').G(2(){$j(7).15(\'G\');$j(\'#5-c\').16(\'19\').E(2(){6.z({t:$j(7).x(),u:$j(7).18()})});$j(7).B($j(\'#5-g-c\').17());$j(\'#5-c\').1a(S,{W:f.Z,Y:f.X,V:f.T,U:f.1w,1q:1p,1b:C,1n:C,k:k,l:l,n:n});$j(\'#5-g-c\').1r(2(e){3 8=\'1s=\'+$j(\'#5-1v-t\').x();8+=\'&D=\'+$j(\'#5-D\').x();8+=\'&c=\';3 o=6.v;A(3 i=0;i<o;i++){8+=6[i].t+\',\'}8=8.1u(0,8.v-1);$j.1m($j(7).J(\'1f\'),8,2(4,p){R(4,p)},\'1e\');e.1d()})});3 n=2 n(F){H F.b};3 l=2 l(s){6.z(s);h()};3 k=2 k(s){3 o=6.v,r=[];A(3 i=0;i<o;i++){q(6[i].u!=s.u){r.z(6[i])}}6=r;h()};3 h=2 h(){$j(\'#5-g\').1j(\'5-d\').1k(\'d\')};3 R=2 1h(4,p){3 a=\'\';$j(\'#5-g\').1c(\'5-d\').J(\'d\',\'d\');q(4.b.I){a=\'<9 y="N">\'+4.b.I+\'</9>\'}O q(4.b.M){a=\'<9 y="1l">\'+4.b.M+\'</9>\'}O{a=\'<9 y="N">\'+p+\'</9>\'}q(a!==\'\'){$j(\'#P\').L(\'<9 t="K-Q"></9>\');$j(\'#K-Q\').m(a)}}});',62,95,'||function|var|data|t4u|existing_tags|this|serialized_form|div|message|result|tags|disabled||vocab|update|onChange|||onDelete|onAdd|flashMessage|onResult|nbItems|textStatus|if||item|id|name|length|source|val|class|push|for|html|true|referer|each|results|click|return|info|attr|flash|append|error|infos|else|Tags|messages|formSuccess|t4u_list_script|searching_text|newText|searchingText|hintText|no_results|noResultsText|start_to_type|jQuery|new|fn|3000|fadeOut|unbind|children|show|text|option|tokenInput|preventDuplicates|addClass|preventDefault|json|action|500|formSucess|noConflict|removeClass|removeAttr|errors|post|allowCreation|hide|false|animateDropdown|submit|image_id|fadeIn|substring|image|new_text'.split('|'),0,{}))
  • extensions/user_tags/language/de_DE/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/de_DE/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/de_DE/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/en_UK/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/en_UK/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/en_UK/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/es_ES/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/es_ES/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/es_ES/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/fr_FR/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/fr_FR/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/fr_FR/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/hu_HU/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/hu_HU/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/hu_HU/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/it_IT/description.txt

    r11825 r20251  
    1 Consente ai visitatori della galleria di aggiungere dei tag alle immagini.
     1Consenta i visitatori ad aggiungere dei tag alle immagini.
  • extensions/user_tags/language/it_IT/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/it_IT/help/readme.html

    r11825 r20251  
    22
    33<h3>Uso</h3>
    4 <p>Se un utente ha le autorizzazioni sufficienti per aggiungere dei tag e i tag sono visibili sulla pagina delle foto, egli potra modificare i tag correlati cliccando sull\'icona "modifica".</p>
     4<p>Se un utente ha il diritto di aggiungere i tag e i tag sono visibili sulla pagina delle foto, egli può modificare i tag correlati cliccando sull\'icona "modifica".</p>
    55
    66<h3>Autorizzazioni</h3>
    7 <p>Le autorizzazioni sono correlate allo statuto degli utenti (ospite, generico, utente, amministratore, webmaster). Gli utenti possono eseguire le azzioni (aggiungere, cancellare) se appartengono ad uno stato uguale o superiore a quello impostato nel plugin.</p>
    8 <p>Per esempio, se si definisce che solo gli utenti che hanno lo statuto utente potranno aggiungere dei tag, allora gli utenti ospite e generico non potranno aggiungere dei tag.</p>
    9 <p>Gli utenti hanno la possibilità di cancellare i propri tag prima di aggiornare il pannello dei tag, anche se non hanno l'autorizzazione di cancellare dei tag. L'autorizzazione si applica unicamente sui tag già esistenti.</p>
     7<p>Le autorizzazioni sono correlate  allo stato degli utenti (ospite, generico, utente, amministratore, webmaster). Gli utenti possono eseguire i processi (aggiungere, eliminare) se appartengono ad uno stato uguale o migliore a quello impostato nel plug-in.</p>
     8<p>Gli utenti hanno la possibilità di eliminare i propri tag prima di aggiornare il pannello dei tag, anche se non ha negato nel plug-in la possibilità di eliminare i tag.</p>
  • extensions/user_tags/language/it_IT/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/it_IT/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
     
    2020// +-----------------------------------------------------------------------+
    2121
     22$lang['Click to add tags'] = 'Premere per aggiungere dei tag';
     23$lang['Start to type'] = 'Iniziare a digitare';
     24$lang['Update tags'] = 'Aggiornare i tag';
     25$lang['Tags updated'] = 'I tag sono stati aggiornati';
     26$lang['Cancel'] = 'Cancellare';
     27
    2228// admin
    23 $lang['Add permission updated'] = 'L\'autorizzazione "aggiungere" è stata aggiornata';
    24 $lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Attenzione, qualunque sia il valore di questo parametro di configurazione, i nuovi tag potranno essere cancellati';
    25 $lang['Delete permission updated'] = 'L\'autorizzazione "cancellare" è stata aggiornata';
    26 $lang['That plugin allow visitors to add tags to image.'] = 'Questo Plugin consente ai visitatori della galleria di aggiungere dei tag alle immagini';
    27 $lang['Who can add tags?'] = 'Chi può aggiungere dei tag?';
    28 $lang['Who can delete related tags?'] = 'Chi può cancellare dei tag?';
    29 $lang['You can choose which users (per status) can add and delete tags.'] = 'Potete definire quale tipo di utente può aggiungere/cancellare dei tag';
     29$lang['That plugin allow visitors to add tags to image.'] = 'il plug-in consente ai visitatori di aggiungere dei tag alle immagini';
     30$lang['You can choose which users (per status) can add and delete tags.'] = 'Lei può scegliere (tramite lo stato) quale utente possa aggiungere ed eliminare i tag.';
     31$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Attenzione qualunque sia il valore di configurazione, un nuovo tag può essere eliminato in qualsiasi momento';
     32$lang['Who can add tags?'] = 'Chi può aggiungere i tag?';
     33$lang['Who can delete related tags?'] = 'Chi può eliminare i tag?';
    3034
    31 // public
    32 $lang['Click to add tags'] = 'Cliccare per aggiungere dei tag';
    33 $lang['Start to type'] = 'Iniziare a digitare';
    34 $lang['Tags updated'] = 'I tag sono stati aggiornati';
    35 $lang['Update tags'] = 'Aggiornare i tag';
    36 $lang['You are not allowed to add nor delete tags'] = 'Non siete autorizzati ad aggiungere o cancellare dei tag';
    37 $lang['You are not allowed to add tags'] = 'Non siete autorizzati ad aggiungere dei tag';
    38 $lang['You are not allowed to delete tags'] = 'Non siete autorizzati a cancellare dei tag';
     35$lang['Add permission updated'] = 'Aggiornato l\'aggiungere dell\'autorizzazione';
     36$lang['Delete permission updated'] = 'Aggiornato l\'elimino dell\'autorizzazione';
    3937?>
  • extensions/user_tags/language/lv_LV/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/lv_LV/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/lv_LV/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/nb_NO/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/nb_NO/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/no_NO/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/no_NO/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/no_NO/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
     
    2020// +-----------------------------------------------------------------------+
    2121
    22 $lang['Click to add tags'] = '点选增加标签';
    23 $lang['Start to type'] = '开始输入';
    24 $lang['Update tags'] = '更新标签';
    25 $lang['Tags updated'] = '标签已更新';
    26 $lang['Cancel'] = '取消';
     22$lang['Click to add tags'] = 'Klikk for å legge til tagger';
     23$lang['Start to type'] = 'Begynn å skrive';
     24$lang['Update tags'] = 'Oppdater tagger';
     25$lang['Tags updated'] = 'Tagger oppdaert';
     26$lang['Cancel'] = 'Angre';
    2727
    2828// admin
    29 $lang['That plugin allow visitors to add tags to image.'] = '这个插件允许访客添加图片的标签.';
    30 $lang['You can choose which users (per status) can add and delete tags.'] = '你可设定哪些類別的使用者有权添加和删除标签.';
    31 $lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = '请注意: 不论设定值为何,新的标签都可能被删除.';
    32 $lang['Who can add tags?'] = '谁能添加标签?';
    33 $lang['Who can delete related tags?'] = '谁能删除相关连的标签?';
     29$lang['That plugin allow visitors to add tags to image.'] = 'Denne pluggingen lar besøkende legge til tagger på bilder';
     30$lang['You can choose which users (per status) can add and delete tags.'] = 'Du kan velge hvilke brukere ( per status) som kan legge til og slette tagger';
     31$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Vær forsiktig, uansett hva konfigurasjons verdien er, nya tagger kan slettes uansett';
     32$lang['Who can add tags?'] = 'Hvem kan legge til tagger?';
     33$lang['Who can delete related tags?'] = 'Hvem kan slette tagger?';
    3434
    35 $lang['Add permission updated'] = '加入更新权限';
    36 $lang['Delete permission updated'] = '删除更新权限';
     35$lang['Add permission updated'] = 'Legge til rettigheter oppdatert';
     36$lang['Delete permission updated'] = 'Slett rettigheter oppdatert';
    3737?>
  • extensions/user_tags/language/templates/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/tr_TR/help/index.php

    r12837 r20251  
    33// | User Tags  - a plugin for Piwigo                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
     5// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License as published by  |
    9 // | the Free Software Foundation                                          |
     8// | it under the terms of the GNU General Public License version 2 as     |
     9// | published by the Free Software Foundation                             |
    1010// |                                                                       |
    1111// | This program is distributed in the hope that it will be useful, but   |
  • extensions/user_tags/language/tr_TR/index.php

    r12837 r20251  
    33// | User Tags  - a plugin for Piwigo                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
     5// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License as published by  |
    9 // | the Free Software Foundation                                          |
     8// | it under the terms of the GNU General Public License version 2 as     |
     9// | published by the Free Software Foundation                             |
    1010// |                                                                       |
    1111// | This program is distributed in the hope that it will be useful, but   |
  • extensions/user_tags/language/zh_CN/help/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/zh_CN/index.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/language/zh_CN/plugin.lang.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/main.inc.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
     
    2222/*
    2323Plugin Name: User Tags
    24 Version: 0.6.2
     24Version: 0.7.1
    2525Description: Allow visitors to add tag to images
    2626Plugin URI: http://piwigo.org/ext/extension_view.php?eid=441
  • extensions/user_tags/maintain.inc.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
  • extensions/user_tags/public.php

    r20139 r20251  
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
    8 // | it under the terms of the GNU General Public License version2 as      |
     8// | it under the terms of the GNU General Public License version 2 as     |
    99// | published by the Free Software Foundation                             |
    1010// |                                                                       |
     
    2626$public_content = new t4u_Content($plugin_config);
    2727add_event_handler('render_element_content',
    28                   array($public_content, 'render_element_content'),
    29                   EVENT_HANDLER_PRIORITY_NEUTRAL,
    30                   2
    31                   );
     28                  array($public_content, 'render_element_content'),
     29                  EVENT_HANDLER_PRIORITY_NEUTRAL,
     30                  2
     31                  );
    3232
    3333$t4u_ws = new t4u_Ws();
    3434add_event_handler('ws_add_methods',
    35                   array($t4u_ws, 'addMethods')
    36                   );
     35                  array($t4u_ws, 'addMethods')
     36                  );
    3737?>
  • extensions/user_tags/template/add_tags.tpl

    r11741 r20251  
    11{combine_css path="$T4U_CSS/style.css"}
     2{combine_script id="jquery.tokeninput" require="jquery" path="themes/default/js/plugins/jquery.tokeninput.js"}
    23{combine_script id="addtags" require="jquery" path="$T4U_JS/jquery.addtags.js"}
     4{footer_script require="jquery.tokeninput,addtags"}
    35
    4 {footer_script require="addtags"}
    5 var related_tags = '';
    6 {foreach from=$T4U_RELATED_TAGS item=tag key=id}
    7 related_tags += '<option value="{$id}">{$tag}</option>';
    8 {/foreach}
    9 var path = new Array();
    10 path['t4u_permission_delete'] = "{$T4U_PERMISSION_DELETE}";
    11 path['t4u_update_script'] = "{$T4U_UPDATE_SCRIPT}";
    12 path['t4u_update_method'] = "{$T4U_UPDATE_METHOD}";
    13 path['t4u_image_id'] = "{$T4U_IMAGE_ID}";
    14 path['t4u_referer'] = "{$T4U_REFERER}";
    15 path['t4u_edit_icon'] = "{$ROOT_URL}{$T4U_IMGS}/edit.png";
    16 path['t4u_get_script'] = "{$T4U_GET_SCRIPT}";
    17 
    18 var vocab = new Array();
     6var t4u_list_script = '{$T4U_LIST_SCRIPT}';
     7var vocab = [];
    198vocab['click_to_add_tags'] = "{'Click to add tags'|@translate}";
    209vocab['start_to_type'] = "{'Start to type'|@translate}...";
    21 vocab['update_tags'] = "{'Update tags'|@translate}";
     10vocab['no_results'] = "{'No results'|@translate}",
     11vocab['searching_text'] = "{'Searching...'|@translate}",
     12vocab['new_text'] = " ({'new'|@translate})",
    2213{/footer_script}
     14
     15<form style="display:none" name="t4u-update-tags" id="t4u-update-tags" action="{$T4U_UPDATE_SCRIPT}" method="post">
     16  <input type="hidden" id="t4u-image-id" name="image_id" value="{$T4U_IMAGE_ID}">
     17  <input type="hidden" id="t4u-referer" name="referer" value="{$T4U_REFERER}">
     18
     19  <select id="t4u-tags" name="tags">
     20    {foreach from=$T4U_RELATED_TAGS item=tag key=id}
     21    <option value="{$id}">{$tag}</option>
     22    {/foreach}
     23  </select>
     24  <input id="t4u-update" type="submit" disabled="disabled" class="t4u-disabled" value="{'Update tags'|@translate}">
     25</form>
Note: See TracChangeset for help on using the changeset viewer.