Dotclear

Changeset 3371


Ignore:
Timestamp:
03/06/15 18:32:09 (8 years ago)
Author:
brol
Message:

voir changelog

Location:
plugins/xiti
Files:
8 added
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/xiti/_admin.php

    r2053 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    76#  
    87# Licensed under the GPL version 2.0 license. 
     
    1413require dirname(__FILE__).'/_widgets.php'; 
    1514 
    16 $_menu['Plugins']->addItem( 
     15$_menu['Blog']->addItem( 
    1716     __('XITI'), 
    1817     'plugin.php?p=xiti','index.php?pf=xiti/icon.png', 
     
    2019     $core->auth->check('admin',$core->blog->id) 
    2120); 
    22 ?> 
  • plugins/xiti/_define.php

    r2583 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    76#  
    87# Licensed under the GPL version 2.0 license. 
     
    1514     /* Name */               "xiti", 
    1615     /* 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          ) 
    2026); 
    21      /* date */          #20100828 
    22 ?> 
  • plugins/xiti/_install.php

    r2309 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    76#  
    87# Licensed under the GPL version 2.0 license. 
     
    3837} 
    3938return false; 
    40 ?> 
  • plugins/xiti/_public.php

    r2583 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    76#  
    87# Licensed under the GPL version 2.0 license. 
     
    4039           || '' == $core->blog->settings->xiti->xiti_serial) return; 
    4140 
    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); 
    4749     } 
    4850 
     
    6567          return  
    6668          "<p>\n". 
     69          "<a href=\"http://www.xiti.com/xiti.asp?s=".$s."\" title=\"WebAnalytics\" target=\"_top\"> \n". 
    6770          "<script type=\"text/javascript\"> \n". 
    6871          "<!-- \n". 
     
    7780          "if(parseFloat(navigator.appVersion)>=4) \n". 
    7881          "{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". 
    8083          "//--> \n". 
    8184          "</script> \n". 
    8285          "<noscript>\n". 
    83           "<img width=\"".$combo_image[$i]['w']."\" height=\"".$combo_image[$i]['h']."\" src=\"http://logv10.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."&amp;p=\" alt=\"WebAnalytics\" />\n". 
    8487          "</noscript></a>". 
    8588          "</p>\n"; 
    8689     } 
    8790} 
    88 ?> 
  • plugins/xiti/_uninstall.php

    r2053 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    76#  
    87# Licensed under the GPL version 2.0 license. 
     
    5453     /* description */ sprintf(__('delete %s version number'),'xiti') 
    5554); 
    56 ?> 
  • plugins/xiti/_widgets.php

    r2053 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    66# jcdenis@gdwd.com 
    77#  
     
    1818     public static function xitiAdmin($w) 
    1919     { 
    20           $w->create('xiti',__('XITI'),array('xitiPublic','xitiWidget')); 
     20          $w->create('xiti',__('XITI'),array('xitiPublic','xitiWidget'), 
     21               null, 
     22               __('Adds the button Xiti Service')); 
    2123          $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'); 
    2227     } 
    2328} 
    24 ?> 
  • plugins/xiti/index.php

    r2309 r3371  
    33# This file is part of xiti, a plugin for Dotclear 2. 
    44#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     5# Copyright (c) 2009-2015 JC Denis and contributors 
    76#  
    87# Licensed under the GPL version 2.0 license. 
     
    1211 
    1312if (!defined('DC_CONTEXT_ADMIN')){return;} 
     13 
     14$page_title = __('XITI'); 
    1415 
    1516dcPage::check('amdin'); 
     
    5354 
    5455echo ' 
    55 <html><head><title>'.__('XITI').'</title></head> 
    56 <body> 
    57 <h2>'.html::escapeHTML($core->blog->name).' &rsaquo; '.__('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>'; 
     58echo dcPage::breadcrumb( 
     59          array( 
     60               html::escapeHTML($core->blog->name) => '', 
     61               '<span class="page-title">'.$page_title.'</span>' => '' 
     62          )); 
     63if (!empty($_REQUEST['done'])) { 
     64  dcPage::success(__('Configuration successfully updated')); 
     65}; 
     66 
     67echo '<form method="post" action="plugin.php"> 
     68<div class="fieldset"><h4>'.__('Settings').'</h4> 
    6169<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> 
    6472<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> 
    6675</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> 
    7676<br class="clear"/> 
    7777<p class="right"> 
    7878xiti - '.$core->plugins->moduleInfo('xiti','version').'&nbsp; 
    7979<img alt="'.__('XITI').'" src="index.php?pf=xiti/icon.png" /> 
    80 </p></body></html>'; 
    81 ?> 
     80</p>'; 
     81echo dcPage::helpBlock('xiti'); 
     82echo '</body></html>'; 
  • plugins/xiti/locales/fr/main.po

    r2309 r3371  
    1 # Language: Français 
    2 # Module: xiti - 0.3 
    3 # Date: 2010-06-05 10:24:56 
    4 # Translated with translater 1.4 
    5  
    61msgid "" 
    72msgstr "" 
    83"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: xiti 0.3\n" 
     4"Project-Id-Version: xiti 0.5\n" 
    105"POT-Creation-Date: \n" 
    116"PO-Revision-Date: 2010-06-05T10:24:56+00:00\n" 
     
    149"MIME-Version: 1.0\n" 
    1510"Content-Transfer-Encoding: 8bit\n" 
     11 
     12msgid "Add XITI on your blog" 
     13msgstr "Ajouter XITI à votre blog" 
     14 
     15msgid "Adds the button Xiti Service" 
     16msgstr "Ajoute le bouton du service Xiti" 
    1617 
    1718#: index.php:19 
     
    6667msgid "Add to theme footer" 
    6768msgstr "Ajouter au pied de page" 
    68  
    69 #: index.php:70 
    70 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:71 
    74 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:72 
    78 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:73 
    82 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.

Sites map