Dotclear

Changeset 1326


Ignore:
Timestamp:
07/13/09 11:58:58 (14 years ago)
Author:
Apercite
Message:

Passage en version 1.0.2

Location:
plugins/apercite
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/apercite/_define.php

    r1321 r1326  
    1515     /* Description*/         "Apercite is a module to include a thumbnail of your links in your post.", 
    1616     /* Author */             "Francis Besset", 
    17      /* Version */            '1.0.1', 
     17     /* Version */            '1.0.2', 
    1818     /* Permissions */        'admin' 
    1919); 
  • plugins/apercite/_public.php

    r1321 r1326  
    2929          echo 
    3030          '<style type="text/css">'."\n". 
    31                "\t".'@import url('.$url.'/css/apercite.css);'."\n". 
     31          '@import url('.$url.'/css/apercite.css);'."\n". 
    3232          '</style>'."\n". 
    3333          '<script type="text/javascript" src="'.$url.'/js/apercite.js"></script>'."\n". 
    3434          '<script type="text/javascript">'."\n". 
    35                "\t".'//<![CDATA['."\n". 
    36                     "\t\t".'$(function() {'."\n". 
    37                          "\t\t\t".'$("div#content").apercite({'."\n". 
    38                               "\t\t\t\t".'"baseURL":"'.substr($core->blog->url, 0, -1).'",'."\n". 
    39                               "\t\t\t\t".'"sizeX":'.$size[0].','."\n". 
    40                               "\t\t\t\t".'"sizeY":'.$size[1].','."\n". 
    41                               "\t\t\t\t".'"javascript":"'.$javascript.'",'."\n". 
    42                               "\t\t\t\t".'"java":"'.$java.'"'."\n". 
    43                          "\t\t\t".'});'."\n". 
    44                     "\t\t".'});'."\n". 
    45                "\t".'//]]>'."\n". 
     35          '//<![CDATA['."\n". 
     36          '$(function() {'."\n". 
     37          '$("div#content").apercite({'."\n". 
     38          '"baseURL":"'.substr($core->blog->url, 0, -1).'",'."\n". 
     39          '"localLink":"'.($core->blog->settings->apercite_local_link || $core->blog->settings->apercite_local_link === null ? 'oui' : 'non').'",'."\n". 
     40          '"sizeX":'.$size[0].','."\n". 
     41          '"sizeY":'.$size[1].','."\n". 
     42          '"javascript":"'.$javascript.'",'."\n". 
     43          '"java":"'.$java.'"'."\n". 
     44          '});'."\n". 
     45          '});'."\n". 
     46          '//]]>'."\n". 
    4647          '</script>'."\n"; 
    4748     } 
  • plugins/apercite/index.php

    r1321 r1326  
    2727} 
    2828 
     29if ($core->blog->settings->apercite_local_link === null) { 
     30     $core->blog->settings->setNameSpace('apercite'); 
     31     $core->blog->settings->put('apercite_local_link',1,'boolean'); 
     32      
     33     http::redirect($p_url); 
     34} 
     35 
    2936 
    3037if (isset($_POST['xd_check'])) { 
     
    3643     $core->blog->settings->put('apercite_enabled',!empty($_POST['apercite_enabled']),'boolean'); 
    3744     $core->blog->settings->put('apercite_size',$_POST['apercite_size']); 
     45     $core->blog->settings->put('apercite_local_link',!empty($_POST['apercite_local_link']),'boolean'); 
    3846     $core->blog->settings->put('apercite_javascript',!empty($_POST['apercite_javascript']),'boolean'); 
    3947     $core->blog->settings->put('apercite_java',!empty($_POST['apercite_java']),'boolean'); 
     
    6371form::checkbox('apercite_enabled','1',$core->blog->settings->apercite_enabled). 
    6472__('Apercite enable').'</label></p>'. 
     73'<p><label class="classic">'. 
     74form::checkbox('apercite_local_link','1',$core->blog->settings->apercite_local_link). 
     75__('Apercite local link').'</label></p>'. 
    6576'<p><label class="classic">'. 
    6677form::checkbox('apercite_javascript','1',$core->blog->settings->apercite_javascript). 
  • plugins/apercite/js/apercite-original.js

    r1325 r1326  
    1212          this.nameDiv             = this.options.nameDiv || "apercite-thumbnail"; 
    1313          this.baseURL             = this.options.baseURL || ""; 
     14          this.localLink           = this.options.localLink || "oui"; 
    1415          this.javascript               = this.options.javascript || "oui"; 
    1516          this.java                = this.options.java || "oui"; 
     
    7677                
    7778               if(u[0] == '/'){ 
    78                     u = self.baseURL + u; 
     79                    if(self.localLink == "oui"){ 
     80                         u = self.baseURL + u; 
     81                    } 
     82                    else{ 
     83                         return true; 
     84                    } 
    7985               } 
    8086                
  • plugins/apercite/js/apercite.js

    r1325 r1326  
    1 eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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($){6 d=N;5.h.4=3(o){O 2.P(3(){Q 5.4(2,o)})};5.4=3(e,o){2.8=o||{};2.7=2.8.7||"4-R";2.l=2.8.l||"";2.m=2.8.m||"v";2.n=2.8.n||"v";2.9=2.8.9||"S";2.i=2.8.i||"T";2.w=5(e);2.y()};5.4.h=5.4.U={4:\'1.0\'};5.4.h.j=5.4.j=5.j;5.4.h.j({y:3(){6 a=2;$(2.w).V(\'<z W="\'+a.7+\'">&A;</z>\');2.B();2.C()},B:3(){6 a=2;$(".q-X a").D(3(e){a.f($(2).E("F"));a.g(e);$(2).G(3(e){a.g(e)})});$(".q-H a").D(3(e){a.f($(2).E("F"));a.g(e);$(2).G(3(e){a.g(e)})})},C:3(){6 a=2;$(".q-H a").Y(3(e){$("#"+a.7).I("&A;");$("#"+a.7).r({"f":"Z"})})},f:3(u){6 a=2;s(u[0]==\'/\'){u=a.l+u}$("#"+a.7).I("<10 11=\'12://13.4.J/14/4/"+a.9+"x"+a.i+"/"+a.m+"/"+a.n+"/"+u+"\' 15=\'16 18 1a.J\' />");$("#"+a.7).r({"f":"1b","1c":a.9+"K","1d":a.i+"K"})},g:3(p){6 a=2;6 b=p.k+17;6 c=p.1e+17;t=L.M-1f;6 x=t-(L.M-p.k);s(x>a.9){x=p.k+a.9+19;s(x>=t){b=p.k-17-a.9}}$("#"+a.7).r({"1g":b,"1h":c})}})})(5);',62,80,'||this|function|apercite|jQuery|var|nameDiv|options|sizeX||||||display|move|fn|sizeY|extend|pageX|baseURL|javascript|java|||post|css|if|widthDisplay||oui|element||init|div|nbsp|over|out|mouseover|attr|href|mousemove|content|html|fr|px|window|innerWidth|null|return|each|new|thumbnail|120|90|prototype|append|id|excerpt|mouseout|none|img|src|http|www|api|title|Miniatures||par||Apercite|block|width|height|pageY|30|left|top'.split('|'),0,{})) 
     1eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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($){6 d=P;5.h.4=3(o){y 2.Q(3(){R 5.4(2,o)})};5.4=3(e,o){2.7=o||{};2.8=2.7.8||"4-S";2.n=2.7.n||"";2.q=2.7.q||"i";2.r=2.7.r||"i";2.s=2.7.s||"i";2.9=2.7.9||"T";2.j=2.7.j||"U";2.z=5(e);2.A()};5.4.h=5.4.V={4:\'1.0\'};5.4.h.k=5.4.k=5.k;5.4.h.k({A:3(){6 a=2;$(2.z).W(\'<B X="\'+a.8+\'">&C;</B>\');2.D();2.E()},D:3(){6 a=2;$(".t-Y a").F(3(e){a.f($(2).G("H"));a.g(e);$(2).I(3(e){a.g(e)})});$(".t-J a").F(3(e){a.f($(2).G("H"));a.g(e);$(2).I(3(e){a.g(e)})})},E:3(){6 a=2;$(".t-J a").Z(3(e){$("#"+a.8).K("&C;");$("#"+a.8).v({"f":"10"})})},f:3(u){6 a=2;l(u[0]==\'/\'){l(a.q=="i"){u=a.n+u}11{y 12}}$("#"+a.8).K("<13 14=\'15://16.4.L/18/4/"+a.9+"x"+a.j+"/"+a.r+"/"+a.s+"/"+u+"\' 1a=\'1b 1c 1d.L\' />");$("#"+a.8).v({"f":"1e","1f":a.9+"M","1g":a.j+"M"})},g:3(p){6 a=2;6 b=p.m+17;6 c=p.1h+17;w=N.O-1i;6 x=w-(N.O-p.m);l(x>a.9){x=p.m+a.9+19;l(x>=w){b=p.m-17-a.9}}$("#"+a.8).v({"1j":b,"1k":c})}})})(5);',62,83,'||this|function|apercite|jQuery|var|options|nameDiv|sizeX||||||display|move|fn|oui|sizeY|extend|if|pageX|baseURL|||localLink|javascript|java|post||css|widthDisplay||return|element|init|div|nbsp|over|out|mouseover|attr|href|mousemove|content|html|fr|px|window|innerWidth|null|each|new|thumbnail|120|90|prototype|append|id|excerpt|mouseout|none|else|true|img|src|http|www||api||title|Miniatures|par|Apercite|block|width|height|pageY|30|left|top'.split('|'),0,{})) 
  • plugins/apercite/lib.apercite.php

    r1321 r1326  
    2626           
    2727          $o = new netHttp(self::apercite_uri,self::apercite_port); 
    28           $o->setUserAgent('Clearbricks HTTP Client - DotClear 2 - Apercite 1.0.1'); 
     28          $o->setUserAgent('Clearbricks HTTP Client - DotClear 2 - Apercite 1.0.2'); 
    2929          return $o->get($path); 
    3030     } 
     
    6767                    foreach ($match[1] as $k=>$v) { 
    6868                         if (!empty($v)) { 
     69                              $update = true; 
    6970                              if ($v{0} == '/') { 
    70                                    $v = substr($core->blog->url, 0, -1).$v; 
     71                                   if ($core->blog->settings->apercite_local_link || $core->blog->settings->apercite_local_link === null) { 
     72                                        $v = substr($core->blog->url, 0, -1).$v; 
     73                                   } 
     74                                   else { 
     75                                        $update = false; 
     76                                   } 
    7177                              } 
    7278                               
    73                               if (!in_array($v, $tab_uri)) { 
     79                              if ($update && !in_array($v, $tab_uri)) { 
    7480                                   $tab_uri[] = $v; 
    7581                                    
  • plugins/apercite/locales/en/main.po

    r1321 r1326  
    22msgstr "Content-Type: text/plain; charset=UTF-8\n" 
    33 
    4 #: plugins/apercite/index.php:37 
    5 #: plugins/apercite/lib.apercite.php:22 
    64#, php-format 
    75msgid "Apercite" 
    86msgstr "Apercite" 
    97 
    10 #: plugins/apercite/index.php:42 
    118#, php-format 
    129msgid "Apercite configuration" 
    1310msgstr "Apercite configuration" 
    1411 
    15 #: plugins/apercite/index.php:45 
    1612#, php-format 
    1713msgid "Apercite success save" 
    1814msgstr "Modifications saved" 
    1915 
    20 #: plugins/apercite/index.php:50 
    2116#, php-format 
    2217msgid "Apercite general" 
    2318msgstr "General" 
    2419 
    25 #: plugins/apercite/index.php:53 
    2620#, php-format 
    2721msgid "Apercite enable" 
    2822msgstr "Enable plugin Apercite" 
    2923 
    30 #: plugins/apercite/index.php:56 
     24#, php-format 
     25msgid "Apercite local link" 
     26msgstr "Display thumbnails of links who return on the blog" 
     27 
    3128#, php-format 
    3229msgid "Apercite javascript enable" 
    3330msgstr "Enable Javascript on thumbnails" 
    3431 
    35 #: plugins/apercite/index.php:59 
    3632#, php-format 
    3733msgid "Apercite java enable" 
    3834msgstr "Enable Java on thumbnails" 
    3935 
    40 #: plugins/apercite/index.php:61 
    4136#, php-format 
    4237msgid "Apercite size" 
    4338msgstr "Size of thumbnails" 
    4439 
    45 #: plugins/apercite/index.php:78 
    4640#, php-format 
    4741msgid "Apercite member" 
    4842msgstr "Member" 
    4943 
    50 #: plugins/apercite/index.php:79 
    5144#, php-format 
    5245msgid "Apercite details member" 
     
    5548If you do not have yet subscription go to the following address : <a href='http://www.apercite.fr/abonnements.html' target='_blank' alt='Subscriptions Apercite' title='Subscriptions Apercite'>Subscriptions Apercite</a>." 
    5649 
    57 #: plugins/apercite/index.php:81 
    5850#, php-format 
    5951msgid "Apercite login" 
    6052msgstr "Login Apercite" 
    6153 
    62 #: plugins/apercite/index.php:85 
    6354#, php-format 
    6455msgid "Apercite api key" 
    6556msgstr "API Key Apercite" 
    6657 
    67 #: plugins/apercite/index.php:91 
    6858#, php-format 
    6959msgid "Apercite save" 
    7060msgstr "Save" 
    7161 
    72 #: plugins/apercite/lib.apercite.php:28 
    7362#, php-format 
    7463msgid "Apercite update thumbnails" 
    7564msgstr "Update thumbnails" 
    7665 
    77 #: plugins/apercite/lib.apercite.php:33 
    7866#, php-format 
    7967msgid "Apercite disabled" 
  • plugins/apercite/locales/fr/main.po

    r1321 r1326  
    22msgstr "Content-Type: text/plain; charset=UTF-8\n" 
    33 
    4 #: plugins/apercite/index.php:37 
    5 #: plugins/apercite/lib.apercite.php:22 
    64#, php-format 
    75msgid "Apercite" 
    86msgstr "Apercite" 
    97 
    10 #: plugins/apercite/index.php:42 
    118#, php-format 
    129msgid "Apercite configuration" 
    1310msgstr "Configuration de Apercite" 
    1411 
    15 #: plugins/apercite/index.php:45 
    1612#, php-format 
    1713msgid "Apercite success save" 
    1814msgstr "Modifications correctement enregistrées." 
    1915 
    20 #: plugins/apercite/index.php:50 
    2116#, php-format 
    2217msgid "Apercite general" 
    2318msgstr "Général" 
    2419 
    25 #: plugins/apercite/index.php:53 
    2620#, php-format 
    2721msgid "Apercite enable" 
    2822msgstr "Activer l'extension Apercite" 
    2923 
    30 #: plugins/apercite/index.php:56 
     24#, php-format 
     25msgid "Apercite local link" 
     26msgstr "Afficher les miniatures des liens qui renvoient sur le blog" 
     27 
    3128#, php-format 
    3229msgid "Apercite javascript enable" 
    3330msgstr "Activer Javascript sur les miniatures" 
    3431 
    35 #: plugins/apercite/index.php:59 
    3632#, php-format 
    3733msgid "Apercite java enable" 
    3834msgstr "Activer Java sur les miniatures" 
    3935 
    40 #: plugins/apercite/index.php:61 
    4136#, php-format 
    4237msgid "Apercite size" 
    4338msgstr "Taille des miniatures" 
    4439 
    45 #: plugins/apercite/index.php:78 
    4640#, php-format 
    4741msgid "Apercite member" 
    4842msgstr "Membre" 
    4943 
    50 #: plugins/apercite/index.php:79 
    5144#, php-format 
    5245msgid "Apercite details member" 
     
    5548Si vous n'avez pas encore d'abonnement rendez-vous à l'adresse suivante : <a href='http://www.apercite.fr/abonnements.html' target='_blank' alt='Abonnements Apercite' title='Abonnements Apercite'>Abonnements Apercite</a>." 
    5649 
    57 #: plugins/apercite/index.php:81 
    5850#, php-format 
    5951msgid "Apercite login" 
    6052msgstr "Identifiant Apercite" 
    6153 
    62 #: plugins/apercite/index.php:85 
    6354#, php-format 
    6455msgid "Apercite api key" 
    6556msgstr "Clé API Apercite" 
    6657 
    67 #: plugins/apercite/index.php:91 
    6858#, php-format 
    6959msgid "Apercite save" 
    7060msgstr "Enregistrer" 
    7161 
    72 #: plugins/apercite/lib.apercite.php:28 
    7362#, php-format 
    7463msgid "Apercite update thumbnails" 
    7564msgstr "Mettre à jour les miniatures" 
    7665 
    77 #: plugins/apercite/lib.apercite.php:33 
    7866#, php-format 
    7967msgid "Apercite disabled" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map