Changeset 3371
- Timestamp:
- 03/06/15 18:32:09 (8 years ago)
- Location:
- plugins/xiti
- Files:
-
- 8 added
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/xiti/_admin.php
r2053 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-2010 JC Denis and contributors 6 # jcdenis@gdwd.com 5 # Copyright (c) 2009-2015 JC Denis and contributors 7 6 # 8 7 # Licensed under the GPL version 2.0 license. … … 14 13 require dirname(__FILE__).'/_widgets.php'; 15 14 16 $_menu[' Plugins']->addItem(15 $_menu['Blog']->addItem( 17 16 __('XITI'), 18 17 'plugin.php?p=xiti','index.php?pf=xiti/icon.png', … … 20 19 $core->auth->check('admin',$core->blog->id) 21 20 ); 22 ?> -
plugins/xiti/_define.php
r2583 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-2010 JC Denis and contributors 6 # jcdenis@gdwd.com 5 # Copyright (c) 2009-2015 JC Denis and contributors 7 6 # 8 7 # Licensed under the GPL version 2.0 license. … … 15 14 /* Name */ "xiti", 16 15 /* Description*/ "Add XITI on your blog", 17 /* Author */ "JC Denis", 18 /* Version */ '0.4', 19 /* Permissions */ 'admin' 16 /* Author */ "JC Denis, Pierre Van Glabeke", 17 /* Version */ '0.5', 18 /* Properties */ 19 array( 20 'permissions' => 'admin', 21 'type' => 'plugin', 22 'dc_min' => '2.7', 23 'support' => 'http://lab.dotclear.org/wiki/plugin/xiti', 24 'details' => 'http://plugins.dotaddict.org/dc2/details/xiti' 25 ) 20 26 ); 21 /* date */ #2010082822 ?> -
plugins/xiti/_install.php
r2309 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-2010 JC Denis and contributors 6 # jcdenis@gdwd.com 5 # Copyright (c) 2009-2015 JC Denis and contributors 7 6 # 8 7 # Licensed under the GPL version 2.0 license. … … 38 37 } 39 38 return false; 40 ?> -
plugins/xiti/_public.php
r2583 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-2010 JC Denis and contributors 6 # jcdenis@gdwd.com 5 # Copyright (c) 2009-2015 JC Denis and contributors 7 6 # 8 7 # Licensed under the GPL version 2.0 license. … … 40 39 || '' == $core->blog->settings->xiti->xiti_serial) return; 41 40 42 return 43 '<div class="xiti-widget">'. 44 (strlen($w->title) > 0 ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 45 self::xitiLink($core). 46 '</div>'; 41 if ($w->offline) 42 return; 43 44 $res = 45 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 46 self::xitiLink($core); 47 48 return $w->renderDiv($w->content_only,'xiti-widget '.$w->class,'',$res); 47 49 } 48 50 … … 65 67 return 66 68 "<p>\n". 69 "<a href=\"http://www.xiti.com/xiti.asp?s=".$s."\" title=\"WebAnalytics\" target=\"_top\"> \n". 67 70 "<script type=\"text/javascript\"> \n". 68 71 "<!-- \n". … … 77 80 "if(parseFloat(navigator.appVersion)>=4) \n". 78 81 "{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;} \n". 79 "document.write(Xt_i+'&ref='+Xt_r.replace(/[<>\"]/g, '').replace(/&/g, '$')+'\" ></a>'); \n".82 "document.write(Xt_i+'&ref='+Xt_r.replace(/[<>\"]/g, '').replace(/&/g, '$')+'\" title=\"Internet Audience\"></a>'); \n". 80 83 "//--> \n". 81 84 "</script> \n". 82 85 "<noscript>\n". 83 "<img width=\"".$combo_image[$i]['w']."\" height=\"".$combo_image[$i]['h']."\" src=\"http://logv1 0.xiti.com/".$combo_image[$i]['n'].".xiti?s=".$s."&p=\" alt=\"WebAnalytics\" />\n".86 "<img width=\"".$combo_image[$i]['w']."\" height=\"".$combo_image[$i]['h']."\" src=\"http://logv143.xiti.com/".$combo_image[$i]['n'].".xiti?s=".$s."&p=\" alt=\"WebAnalytics\" />\n". 84 87 "</noscript></a>". 85 88 "</p>\n"; 86 89 } 87 90 } 88 ?> -
plugins/xiti/_uninstall.php
r2053 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-2010 JC Denis and contributors 6 # jcdenis@gdwd.com 5 # Copyright (c) 2009-2015 JC Denis and contributors 7 6 # 8 7 # Licensed under the GPL version 2.0 license. … … 54 53 /* description */ sprintf(__('delete %s version number'),'xiti') 55 54 ); 56 ?> -
plugins/xiti/_widgets.php
r2053 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2015 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 18 18 public static function xitiAdmin($w) 19 19 { 20 $w->create('xiti',__('XITI'),array('xitiPublic','xitiWidget')); 20 $w->create('xiti',__('XITI'),array('xitiPublic','xitiWidget'), 21 null, 22 __('Adds the button Xiti Service')); 21 23 $w->xiti->setting('title',__('Title:'),__('XITI'),'text'); 24 $w->xiti->setting('content_only',__('Content only'),0,'check'); 25 $w->xiti->setting('class',__('CSS class:'),''); 26 $w->xiti->setting('offline',__('Offline'),0,'check'); 22 27 } 23 28 } 24 ?> -
plugins/xiti/index.php
r2309 r3371 3 3 # This file is part of xiti, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-2010 JC Denis and contributors 6 # jcdenis@gdwd.com 5 # Copyright (c) 2009-2015 JC Denis and contributors 7 6 # 8 7 # Licensed under the GPL version 2.0 license. … … 12 11 13 12 if (!defined('DC_CONTEXT_ADMIN')){return;} 13 14 $page_title = __('XITI'); 14 15 15 16 dcPage::check('amdin'); … … 53 54 54 55 echo ' 55 <html><head><title>'.__('XITI').'</title></head> 56 <body> 57 <h2>'.html::escapeHTML($core->blog->name).' › '.__('XITI').'</h2>'. 58 (!empty($_REQUEST['done']) ? '<p class="message">'.__('Configuration successfully updated').'</p>' : '').' 59 <fieldset><legend>'.__('Settings').'</legend> 60 <form method="post" action="plugin.php"> 56 <html><head><title>'.$page_title.'</title></head> 57 <body>'; 58 echo dcPage::breadcrumb( 59 array( 60 html::escapeHTML($core->blog->name) => '', 61 '<span class="page-title">'.$page_title.'</span>' => '' 62 )); 63 if (!empty($_REQUEST['done'])) { 64 dcPage::success(__('Configuration successfully updated')); 65 }; 66 67 echo '<form method="post" action="plugin.php"> 68 <div class="fieldset"><h4>'.__('Settings').'</h4> 61 69 <p><label class="classic">'.form::checkbox('xiti_active','1',$xiti_active).__('Enable XITI').'</label></p> 62 <p><label>'.__('Your XITI account number:'). form::field('xiti_serial',30,255,html::escapeHTML($xiti_serial)).'</label></p>63 <p><label>'.__('Image style:'). form::combo('xiti_image',$combo_image,$xiti_image).'</label></p>70 <p><label>'.__('Your XITI account number:').' '.form::field('xiti_serial',30,255,html::escapeHTML($xiti_serial)).'</label></p> 71 <p><label>'.__('Image style:').' '.form::combo('xiti_image',$combo_image,$xiti_image).'</label></p> 64 72 <p><label class="classic">'.form::checkbox('xiti_footer','1',$xiti_footer).__('Add to theme footer').'</label></p> 65 <p><input type="submit" name="xiti_save" value="'.__('save').'" />'.$core->formNonce().form::hidden(array('p'),'xiti').'</p> 73 </div> 74 <p><input type="submit" name="xiti_save" value="'.__('Save').'" />'.$core->formNonce().form::hidden(array('p'),'xiti').'</p> 66 75 </form> 67 </fieldset>68 <fieldset><legend>'.__('Help').'</legend>69 <ul>70 <li>'.__('In order to add XITI to your theme footer, theme must have sysBehavoir "publicAfterContent", commonly in template file "_footer.html"').'</li>71 <li>'.__('You can use instead the XITI widget but this plugin must be enabled and well configured here.').'</li>72 <li>'.__('In footer template, XITI is encapsuled in a "div" tag of class "xiti-footer".').'</li>73 <li>'.__('In widget, XITI is encapsuled in a "div" tag of class "xiti-widget".').'</li>74 </ul>75 </fieldset>76 76 <br class="clear"/> 77 77 <p class="right"> 78 78 xiti - '.$core->plugins->moduleInfo('xiti','version').' 79 79 <img alt="'.__('XITI').'" src="index.php?pf=xiti/icon.png" /> 80 </p></body></html>'; 81 ?> 80 </p>'; 81 echo dcPage::helpBlock('xiti'); 82 echo '</body></html>'; -
plugins/xiti/locales/fr/main.po
r2309 r3371 1 # Language: Français2 # Module: xiti - 0.33 # Date: 2010-06-05 10:24:564 # Translated with translater 1.45 6 1 msgid "" 7 2 msgstr "" 8 3 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: xiti 0. 3\n"4 "Project-Id-Version: xiti 0.5\n" 10 5 "POT-Creation-Date: \n" 11 6 "PO-Revision-Date: 2010-06-05T10:24:56+00:00\n" … … 14 9 "MIME-Version: 1.0\n" 15 10 "Content-Transfer-Encoding: 8bit\n" 11 12 msgid "Add XITI on your blog" 13 msgstr "Ajouter XITI à votre blog" 14 15 msgid "Adds the button Xiti Service" 16 msgstr "Ajoute le bouton du service Xiti" 16 17 17 18 #: index.php:19 … … 66 67 msgid "Add to theme footer" 67 68 msgstr "Ajouter au pied de page" 68 69 #: index.php:7070 msgid "In order to add XITI to your theme footer, theme must have sysBehavoir \"publicAfterContent\", commonly in template file \"_footer.html\""71 msgstr "Afin d'ajouter XITI au pied de page de votre thème, le thème doit avoir le sysBehavior \"publicAfterContent\", généralement dans le fichier de thème \"_footer.html\"."72 73 #: index.php:7174 msgid "You can use instead the XITI widget but this plugin must be enabled and well configured here."75 msgstr "Vous pouvez utiliser à la place le widget XITI mais cette extension doit être activée et bien configurée ici."76 77 #: index.php:7278 msgid "In footer template, XITI is encapsuled in a \"div\" tag of class \"xiti-footer\"."79 msgstr "Dans le pied de page du template, XITI est entouré d'une balise \"div\" de classe \"xiti-footer\"."80 81 #: index.php:7382 msgid "In widget, XITI is encapsuled in a \"div\" tag of class \"xiti-widget\"."83 msgstr "Dans le widget, XITI est entouré d'une balise \"div\" de classe \"xiti-widget\"."84
Note: See TracChangeset
for help on using the changeset viewer.