Changeset 1326
- Timestamp:
- 07/13/09 11:58:58 (14 years ago)
- Location:
- plugins/apercite
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/apercite/_define.php
r1321 r1326 15 15 /* Description*/ "Apercite is a module to include a thumbnail of your links in your post.", 16 16 /* Author */ "Francis Besset", 17 /* Version */ '1.0. 1',17 /* Version */ '1.0.2', 18 18 /* Permissions */ 'admin' 19 19 ); -
plugins/apercite/_public.php
r1321 r1326 29 29 echo 30 30 '<style type="text/css">'."\n". 31 "\t".'@import url('.$url.'/css/apercite.css);'."\n".31 '@import url('.$url.'/css/apercite.css);'."\n". 32 32 '</style>'."\n". 33 33 '<script type="text/javascript" src="'.$url.'/js/apercite.js"></script>'."\n". 34 34 '<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". 46 47 '</script>'."\n"; 47 48 } -
plugins/apercite/index.php
r1321 r1326 27 27 } 28 28 29 if ($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 29 36 30 37 if (isset($_POST['xd_check'])) { … … 36 43 $core->blog->settings->put('apercite_enabled',!empty($_POST['apercite_enabled']),'boolean'); 37 44 $core->blog->settings->put('apercite_size',$_POST['apercite_size']); 45 $core->blog->settings->put('apercite_local_link',!empty($_POST['apercite_local_link']),'boolean'); 38 46 $core->blog->settings->put('apercite_javascript',!empty($_POST['apercite_javascript']),'boolean'); 39 47 $core->blog->settings->put('apercite_java',!empty($_POST['apercite_java']),'boolean'); … … 63 71 form::checkbox('apercite_enabled','1',$core->blog->settings->apercite_enabled). 64 72 __('Apercite enable').'</label></p>'. 73 '<p><label class="classic">'. 74 form::checkbox('apercite_local_link','1',$core->blog->settings->apercite_local_link). 75 __('Apercite local link').'</label></p>'. 65 76 '<p><label class="classic">'. 66 77 form::checkbox('apercite_javascript','1',$core->blog->settings->apercite_javascript). -
plugins/apercite/js/apercite-original.js
r1325 r1326 12 12 this.nameDiv = this.options.nameDiv || "apercite-thumbnail"; 13 13 this.baseURL = this.options.baseURL || ""; 14 this.localLink = this.options.localLink || "oui"; 14 15 this.javascript = this.options.javascript || "oui"; 15 16 this.java = this.options.java || "oui"; … … 76 77 77 78 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 } 79 85 } 80 86 -
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,{}))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=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 26 26 27 27 $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'); 29 29 return $o->get($path); 30 30 } … … 67 67 foreach ($match[1] as $k=>$v) { 68 68 if (!empty($v)) { 69 $update = true; 69 70 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 } 71 77 } 72 78 73 if ( !in_array($v, $tab_uri)) {79 if ($update && !in_array($v, $tab_uri)) { 74 80 $tab_uri[] = $v; 75 81 -
plugins/apercite/locales/en/main.po
r1321 r1326 2 2 msgstr "Content-Type: text/plain; charset=UTF-8\n" 3 3 4 #: plugins/apercite/index.php:375 #: plugins/apercite/lib.apercite.php:226 4 #, php-format 7 5 msgid "Apercite" 8 6 msgstr "Apercite" 9 7 10 #: plugins/apercite/index.php:4211 8 #, php-format 12 9 msgid "Apercite configuration" 13 10 msgstr "Apercite configuration" 14 11 15 #: plugins/apercite/index.php:4516 12 #, php-format 17 13 msgid "Apercite success save" 18 14 msgstr "Modifications saved" 19 15 20 #: plugins/apercite/index.php:5021 16 #, php-format 22 17 msgid "Apercite general" 23 18 msgstr "General" 24 19 25 #: plugins/apercite/index.php:5326 20 #, php-format 27 21 msgid "Apercite enable" 28 22 msgstr "Enable plugin Apercite" 29 23 30 #: plugins/apercite/index.php:56 24 #, php-format 25 msgid "Apercite local link" 26 msgstr "Display thumbnails of links who return on the blog" 27 31 28 #, php-format 32 29 msgid "Apercite javascript enable" 33 30 msgstr "Enable Javascript on thumbnails" 34 31 35 #: plugins/apercite/index.php:5936 32 #, php-format 37 33 msgid "Apercite java enable" 38 34 msgstr "Enable Java on thumbnails" 39 35 40 #: plugins/apercite/index.php:6141 36 #, php-format 42 37 msgid "Apercite size" 43 38 msgstr "Size of thumbnails" 44 39 45 #: plugins/apercite/index.php:7846 40 #, php-format 47 41 msgid "Apercite member" 48 42 msgstr "Member" 49 43 50 #: plugins/apercite/index.php:7951 44 #, php-format 52 45 msgid "Apercite details member" … … 55 48 If 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>." 56 49 57 #: plugins/apercite/index.php:8158 50 #, php-format 59 51 msgid "Apercite login" 60 52 msgstr "Login Apercite" 61 53 62 #: plugins/apercite/index.php:8563 54 #, php-format 64 55 msgid "Apercite api key" 65 56 msgstr "API Key Apercite" 66 57 67 #: plugins/apercite/index.php:9168 58 #, php-format 69 59 msgid "Apercite save" 70 60 msgstr "Save" 71 61 72 #: plugins/apercite/lib.apercite.php:2873 62 #, php-format 74 63 msgid "Apercite update thumbnails" 75 64 msgstr "Update thumbnails" 76 65 77 #: plugins/apercite/lib.apercite.php:3378 66 #, php-format 79 67 msgid "Apercite disabled" -
plugins/apercite/locales/fr/main.po
r1321 r1326 2 2 msgstr "Content-Type: text/plain; charset=UTF-8\n" 3 3 4 #: plugins/apercite/index.php:375 #: plugins/apercite/lib.apercite.php:226 4 #, php-format 7 5 msgid "Apercite" 8 6 msgstr "Apercite" 9 7 10 #: plugins/apercite/index.php:4211 8 #, php-format 12 9 msgid "Apercite configuration" 13 10 msgstr "Configuration de Apercite" 14 11 15 #: plugins/apercite/index.php:4516 12 #, php-format 17 13 msgid "Apercite success save" 18 14 msgstr "Modifications correctement enregistrées." 19 15 20 #: plugins/apercite/index.php:5021 16 #, php-format 22 17 msgid "Apercite general" 23 18 msgstr "Général" 24 19 25 #: plugins/apercite/index.php:5326 20 #, php-format 27 21 msgid "Apercite enable" 28 22 msgstr "Activer l'extension Apercite" 29 23 30 #: plugins/apercite/index.php:56 24 #, php-format 25 msgid "Apercite local link" 26 msgstr "Afficher les miniatures des liens qui renvoient sur le blog" 27 31 28 #, php-format 32 29 msgid "Apercite javascript enable" 33 30 msgstr "Activer Javascript sur les miniatures" 34 31 35 #: plugins/apercite/index.php:5936 32 #, php-format 37 33 msgid "Apercite java enable" 38 34 msgstr "Activer Java sur les miniatures" 39 35 40 #: plugins/apercite/index.php:6141 36 #, php-format 42 37 msgid "Apercite size" 43 38 msgstr "Taille des miniatures" 44 39 45 #: plugins/apercite/index.php:7846 40 #, php-format 47 41 msgid "Apercite member" 48 42 msgstr "Membre" 49 43 50 #: plugins/apercite/index.php:7951 44 #, php-format 52 45 msgid "Apercite details member" … … 55 48 Si 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>." 56 49 57 #: plugins/apercite/index.php:8158 50 #, php-format 59 51 msgid "Apercite login" 60 52 msgstr "Identifiant Apercite" 61 53 62 #: plugins/apercite/index.php:8563 54 #, php-format 64 55 msgid "Apercite api key" 65 56 msgstr "Clé API Apercite" 66 57 67 #: plugins/apercite/index.php:9168 58 #, php-format 69 59 msgid "Apercite save" 70 60 msgstr "Enregistrer" 71 61 72 #: plugins/apercite/lib.apercite.php:2873 62 #, php-format 74 63 msgid "Apercite update thumbnails" 75 64 msgstr "Mettre à jour les miniatures" 76 65 77 #: plugins/apercite/lib.apercite.php:3378 66 #, php-format 79 67 msgid "Apercite disabled"
Note: See TracChangeset
for help on using the changeset viewer.