Dotclear

Changeset 3368


Ignore:
Timestamp:
03/04/15 00:39:31 (9 years ago)
Author:
brol
Message:

voir changelog

Location:
plugins/arlequin
Files:
8 added
3 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/arlequin/CHANGELOG

    r2981 r3368  
    1 2011-02-22  Alex Pirine  <alex pirine.fr> 
     1v1.1 - 03-03-2015 - Pierre Van Glabeke 
     2* compatibilité dc2.7 
     3* localisation 
     4* aide intégrée 
     5* version effectuée depuis la v1.0.1 présente sur DA 
    26 
    3  * Dotclear 2.2.2 compatibility. thx <gaetan bistroduweb.com> 
    4  
     72010-07-15  Gaetan Guillard  <gaetan@bistroduweb.com> 
     8* v1.0.1 - Corrections for compatibility with Dotclear 2.2 
    59 
    6102008-10-18  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
    7  
    8  * v2008.10 - Removed theme parameter from URL 
     11* v2008.10 - Removed theme parameter from URL 
    912 
    1013 
    11142008-08-21  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
    12  
    13  * Excluded themes can not be selected by user. 
     15* Excluded themes can not be selected by user. 
    1416 
    1517 
    16182008-04-21  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
    17  
    18  * Dotclear r1790 compatibility, see 
     19* Dotclear r1790 compatibility, see 
    1920   http://dev.dotclear.net/2.0/changeset/1790 
  • plugins/arlequin/_admin.php

    r2992 r3368  
    1 <?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of Arlequin, a plugin for Dotclear. 
    4 #  
    5 # Copyright (c) 2007,2008,2011 Alex Pirine <alex pirine.fr> 
    6 #  
    7 # Licensed under the GPL version 2.0 license. 
    8 # A copy is available in LICENSE file or at 
    9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # -- END LICENSE BLOCK ------------------------------------ 
    11  
     1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
     2/***************************************************************\ 
     3 *  This is 'Arlequin', a plugin for Dotclear 2                * 
     4 *                                                             * 
     5 *  Copyright (c) 2007,2015                                    * 
     6 *  Oleksandr Syenchuk and contributors.                       * 
     7 *                                                             * 
     8 *  This is an open source software, distributed under the GNU * 
     9 *  General Public License (version 2) terms and  conditions.  * 
     10 *                                                             * 
     11 *  You should have received a copy of the GNU General Public  * 
     12 *  License along with 'Arlequin' (see COPYING.txt);           * 
     13 *  if not, write to the Free Software Foundation, Inc.,       * 
     14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     15\***************************************************************/ 
    1216if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1317 
    14 require dirname(__FILE__).'/_widgets.php'; 
    15  
    16 $_menu['Plugins']->addItem(__('Theme switcher'),'plugin.php?p=arlequin', 
     18$_menu['Blog']->addItem(__('Theme switcher'),'plugin.php?p=arlequin', 
    1719     'index.php?pf=arlequin/icon.png', 
    1820     preg_match('/plugin.php\?p=arlequin(&.*)?$/',$_SERVER['REQUEST_URI']), 
    1921     $core->auth->check('contentadmin',$core->blog->id)); 
    2022 
    21 class adminArlequin 
     23require dirname(__FILE__).'/_widgets.php'; 
     24 
     25$core->addBehavior('adminDashboardFavorites','arlequinDashboardFavorites'); 
     26 
     27function arlequinDashboardFavorites($core,$favs) 
    2228{ 
    23      public static function getDefaults() 
    24      { 
    25           return array( 
    26                'e_html'=>'<li><a href="%1$s%2$s%3$s">%4$s</a></li>', 
    27                'a_html'=>'<li><strong>%4$s</strong></li>', 
    28                's_html'=>'<ul>%2$s</ul>', 
    29                'homeonly'=>false); 
    30      } 
    31       
    32      public static function loadSettings(&$settings,&$initialized) 
    33      { 
    34           global $core; 
    35            
    36           $initialized = false; 
    37           $config = @unserialize($settings->config); 
    38           $exclude = $settings->get('exclude'); 
    39       
    40           // Paramètres corrompus ou inexistants 
    41           if ($config === false || 
    42                $exclude === null || 
    43                !(isset($config['e_html']) && 
    44                isset($config['a_html']) && 
    45                isset($config['s_html']) && 
    46                isset($config['homeonly']))) 
    47           { 
    48                $config = adminArlequin::getDefaults(); 
    49                $settings->put('config',serialize($config),'string','Arlequin configuration'); 
    50                $settings->put('exclude','customCSS','string','Excluded themes'); 
    51                $initialized = true; 
    52                $core->blog->triggerBlog(); 
    53           } 
    54            
    55           return array($config,$exclude); 
    56      } 
     29     $favs->register('arlequin', array( 
     30          'title' => __('Arlequin'), 
     31          'url' => 'plugin.php?p=arlequin', 
     32          'small-icon' => 'index.php?pf=arlequin/icon.png', 
     33          'large-icon' => 'index.php?pf=arlequin/icon-big.png', 
     34          'permissions' => 'usage,contentadmin' 
     35     )); 
    5736} 
    58 ?> 
  • plugins/arlequin/_define.php

    r2992 r3368  
    1 <?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of Arlequin, a plugin for Dotclear. 
    4 #  
    5 # Copyright (c) 2007,2008,2011 Alex Pirine <alex pirine.fr> 
    6 #  
    7 # Licensed under the GPL version 2.0 license. 
    8 # A copy is available in LICENSE file or at 
    9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # -- END LICENSE BLOCK ------------------------------------ 
    11  
     1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
     2/***************************************************************\ 
     3 *  This is 'Arlequin', a plugin for Dotclear 2                * 
     4 *                                                             * 
     5 *  Copyright (c) 2007,2015                                    * 
     6 *  Oleksandr Syenchuk and contributors.                       * 
     7 *                                                             * 
     8 *  This is an open source software, distributed under the GNU * 
     9 *  General Public License (version 2) terms and  conditions.  * 
     10 *                                                             * 
     11 *  You should have received a copy of the GNU General Public  * 
     12 *  License along with 'Arlequin' (see COPYING.txt);           * 
     13 *  if not, write to the Free Software Foundation, Inc.,       * 
     14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     15\***************************************************************/ 
    1216if (!defined('DC_RC_PATH')) { return; } 
    1317 
     
    1519     /* Name */          'Arlequin', 
    1620     /* Description*/    'Allows visitors choose a theme', 
    17      /* Author */        'Alex Pirine', 
    18      /* Version */       '2011.02', 
    19      /* Permissions */   'contentadmin' 
     21     /* Author */        'Oleksandr Syenchuk, Pierre Van Glabeke', 
     22     /* Version */       '1.1', 
     23     /* Properties */ 
     24     array( 
     25          'permissions' => 'contentadmin', 
     26          'type' => 'plugin', 
     27          'dc_min' => '2.7', 
     28          'support' => 'http://forum.dotclear.org/viewtopic.php?id=48345', 
     29          'details' => 'http://plugins.dotaddict.org/dc2/details/arlequin' 
     30          ) 
    2031); 
    21 ?> 
  • plugins/arlequin/_public.php

    r2992 r3368  
    1 <?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of Arlequin, a plugin for Dotclear. 
    4 #  
    5 # Copyright (c) 2007,2008,2011 Alex Pirine <alex pirine.fr> 
    6 #  
    7 # Licensed under the GPL version 2.0 license. 
    8 # A copy is available in LICENSE file or at 
    9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # -- END LICENSE BLOCK ------------------------------------ 
    11  
     1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
     2/***************************************************************\ 
     3 *  This is 'Arlequin', a plugin for Dotclear 2                * 
     4 *                                                             * 
     5 *  Copyright (c) 2007,2015                                    * 
     6 *  Oleksandr Syenchuk and contributors.                       * 
     7 *                                                             * 
     8 *  This is an open source software, distributed under the GNU * 
     9 *  General Public License (version 2) terms and  conditions.  * 
     10 *                                                             * 
     11 *  You should have received a copy of the GNU General Public  * 
     12 *  License along with 'Arlequin' (see COPYING.txt);           * 
     13 *  if not, write to the Free Software Foundation, Inc.,       * 
     14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     15\***************************************************************/ 
    1216if (!defined('DC_RC_PATH')) { return; } 
    1317 
    1418require dirname(__FILE__).'/_widgets.php'; 
    1519 
    16 /*** 
    17  * Arlequin public interface 
     20/** @doc 
     21     Arlequin public interface 
    1822*/ 
    1923 
     
    2731     public static $cookie_upddt; 
    2832      
    29      public static function trigger(&$blog) 
     33     public static function trigger($blog) 
    3034     { 
    3135          $cname = base_convert($blog->uid,16,36); 
     
    5256     } 
    5357      
    54      public static function adjustCache(&$core) 
     58     public static function adjustCache($core) 
    5559     { 
    5660          if (!empty($_COOKIE[self::$cookie_upddt])) { 
     
    5963     } 
    6064      
    61      public static function switchTheme(&$blog,$theme) 
     65     public static function switchTheme($blog,$theme) 
    6266     { 
    63           if ($blog->settings->arlequin->exclude) { 
    64                if (in_array($theme,explode('/',$blog->settings->arlequin->exclude))) { 
     67          if ($blog->settings->multitheme->mt_exclude) { 
     68               if (in_array($theme,explode('/',$blog->settings->multitheme->mt_exclude))) { 
    6569                    return; 
    6670               } 
     
    7377class publicArlequinInterface 
    7478{ 
    75      public static function widget($w) 
     79     public static function arlequinWidget($w) 
    7680     { 
    7781          return self::getHTML($w); 
     
    8690     { 
    8791          global $core; 
     92 
     93          if ($w->offline) 
     94               return; 
    8895           
    89           $cfg = @unserialize($core->blog->settings->arlequin->config); 
     96          $cfg = @unserialize($core->blog->settings->multitheme->get('mt_cfg')); 
     97 
     98          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     99               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     100               return; 
     101          } 
    90102           
    91103          if ($cfg === false || 
    92                ($cfg['homeonly'] && $core->url->type != 'default') || 
    93104               ($names = self::getNames()) === false) { 
    94105               return; 
     
    147158           
    148159          if ($w) { 
    149                $res = '<div id="arlequin">'. 
    150                     ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    151                     "\n".$res."</div>\n"; 
     160 
     161          $res = 
     162          ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 
     163          $res; 
     164 
     165          return $w->renderDiv($w->content_only,'arlequin '.$w->class,'',$res); 
    152166          } 
    153167           
     
    159173          global $core; 
    160174           
    161           $exclude = $core->blog->settings->arlequin->exclude; 
    162           $exclude = $exclude ? array_flip(explode('/',$exclude)) : array(); 
     175          $mt_exclude = $core->blog->settings->multitheme->mt_exclude; 
     176          $exclude = array(); 
     177          if (!empty($mt_exclude)) { 
     178               $exclude = array_flip(explode('/',$core->blog->settings->multitheme->mt_exclude)); 
     179          } 
    163180           
    164181          $names = array_diff_key($core->themes->getModules(),$exclude); 
     
    167184     } 
    168185} 
    169 ?> 
  • plugins/arlequin/_widgets.php

    r2992 r3368  
    1 <?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of Arlequin, a plugin for Dotclear. 
    4 #  
    5 # Copyright (c) 2007,2008,2011 Alex Pirine <alex pirine.fr> 
    6 #  
    7 # Licensed under the GPL version 2.0 license. 
    8 # A copy is available in LICENSE file or at 
    9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # -- END LICENSE BLOCK ------------------------------------ 
    11  
     1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
     2/***************************************************************\ 
     3 *  This is 'Arlequin', a plugin for Dotclear 2                * 
     4 *                                                             * 
     5 *  Copyright (c) 2007-2015                                    * 
     6 *  Oleksandr Syenchuk and contributors.                       * 
     7 *                                                             * 
     8 *  This is an open source software, distributed under the GNU * 
     9 *  General Public License (version 2) terms and  conditions.  * 
     10 *                                                             * 
     11 *  You should have received a copy of the GNU General Public  * 
     12 *  License along with 'Arlequin' (see COPYING.txt);           * 
     13 *  if not, write to the Free Software Foundation, Inc.,       * 
     14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     15\***************************************************************/ 
    1216if (!defined('DC_RC_PATH')) { return; } 
    1317 
    14 $core->addBehavior('initWidgets',array('widgetsArlequin','widget')); 
     18$core->addBehavior('initWidgets',array('adminArlequin','initWidgets')); 
    1519 
    16 class widgetsArlequin 
     20class adminArlequin 
    1721{ 
    18      public static function widget(&$w) 
     22     public static function initWidgets($w) 
    1923     { 
    20           $w->create('arlequin',__('Theme switcher'), 
    21                array('publicArlequinInterface','widget')); 
    22           $w->arlequin->setting('title',__('Title:'), 
    23                __('Choose a theme')); 
     24          $w->create('arlequin',__('Arlequin'),array('publicArlequinInterface','arlequinWidget'), 
     25               null, 
     26               __('Theme switcher')); 
     27          $w->arlequin->setting('title',__('Title:'),__('Choose a theme')); 
     28          $w->arlequin->setting('homeonly',__('Display on:'),0,'combo', 
     29               array( 
     30                    __('All pages') => 0, 
     31                    __('Home page only') => 1, 
     32                    __('Except on home page') => 2 
     33                    ) 
     34          ); 
     35    $w->arlequin->setting('content_only',__('Content only'),0,'check'); 
     36    $w->arlequin->setting('class',__('CSS class:'),''); 
     37          $w->arlequin->setting('offline',__('Offline'),0,'check'); 
     38     } 
     39      
     40     public static function getDefaults() 
     41     { 
     42          return array( 
     43               'e_html'=>'<li><a href="%1$s%2$s%3$s">%4$s</a></li>', 
     44               'a_html'=>'<li><strong>%4$s</strong></li>', 
     45               's_html'=>'<ul>%2$s</ul>'); 
     46     } 
     47      
     48     public static function loadSettings($settings,&$initialized) 
     49     { 
     50          global $core; 
     51           
     52          $initialized = false; 
     53          $mt_cfg = @unserialize($settings->multitheme->get('mt_cfg')); 
     54          $mt_exclude = $settings->multitheme->get('mt_exclude'); 
     55      
     56          // Paramètres corrompus ou inexistants 
     57          if ($mt_cfg === false || 
     58               $mt_exclude === null || 
     59               !(isset($mt_cfg['e_html']) && 
     60               isset($mt_cfg['a_html']) && 
     61               isset($mt_cfg['s_html']))) 
     62          { 
     63               $mt_cfg = adminArlequin::getDefaults(); 
     64               $settings->addNameSpace('multitheme'); 
     65               $settings->multitheme->put('mt_cfg',serialize($mt_cfg),'string','Arlequin configuration'); 
     66               $settings->multitheme->put('mt_exclude','customCSS','string','Excluded themes'); 
     67               $initialized = true; 
     68               $core->blog->triggerBlog(); 
     69          } 
     70           
     71          return array($mt_cfg,$mt_exclude); 
    2472     } 
    2573} 
    26 ?> 
  • plugins/arlequin/index.php

    r2992 r3368  
    1 <?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of Arlequin, a plugin for Dotclear. 
    4 #  
    5 # Copyright (c) 2007,2008,2011 Alex Pirine <alex pirine.fr> 
    6 #  
    7 # Licensed under the GPL version 2.0 license. 
    8 # A copy is available in LICENSE file or at 
    9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # -- END LICENSE BLOCK ------------------------------------ 
     1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
     2/***************************************************************\ 
     3 *  This is 'Arlequin', a plugin for Dotclear 2                * 
     4 *                                                             * 
     5 *  Copyright (c) 2007,2015                                    * 
     6 *  Oleksandr Syenchuk and contributors.                       * 
     7 *                                                             * 
     8 *  This is an open source software, distributed under the GNU * 
     9 *  General Public License (version 2) terms and  conditions.  * 
     10 *                                                             * 
     11 *  You should have received a copy of the GNU General Public  * 
     12 *  License along with 'Arlequin' (see COPYING.txt);           * 
     13 *  if not, write to the Free Software Foundation, Inc.,       * 
     14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     15\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1117 
    12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     18$page_title = __('Arlequin'); 
    1319 
    1420try 
     
    1723 
    1824     $messages = array(); 
    19      $default_tab = empty($_GET['tab']) ? 'mt_config' : html::escapeHTML($_GET['tab']); 
    2025      
    2126     /* Initialisation 
    2227     --------------------------------------------------- */ 
    2328      
    24      $s = &$core->blog->settings->arlequin; 
    25       
    26      list($config,$exclude) = adminArlequin::loadSettings($s,$initialized); 
     29     $core->blog->settings->addNameSpace('multitheme'); 
     30     list($mt_cfg,$mt_exclude) = 
     31          adminArlequin::loadSettings ($core->blog->settings,$initialized); 
    2732      
    2833     /* Enregistrement des données depuis les formulaires 
     
    3136     if (isset($_POST['mt_action_config'])) 
    3237     { 
    33           $config['e_html'] = $_POST['e_html']; 
    34           $config['a_html'] = $_POST['a_html']; 
    35           $config['s_html'] = $_POST['s_html']; 
    36           $config['homeonly'] = (bool) $_POST['mt_homeonly']; 
    37           $exclude = $_POST['mt_exclude']; 
     38          $mt_cfg['e_html'] = $_POST['e_html']; 
     39          $mt_cfg['a_html'] = $_POST['a_html']; 
     40          $mt_cfg['s_html'] = $_POST['s_html']; 
     41          $mt_exclude = $_POST['mt_exclude']; 
    3842     } 
    3943      
     
    4347     if (isset($_POST['mt_action_config'])) 
    4448     { 
    45           $s->put('config',serialize($config)); 
    46           $s->put('exclude',$exclude); 
     49          $core->blog->settings->multitheme->put('mt_cfg',serialize($mt_cfg)); 
     50          $core->blog->settings->multitheme->put('mt_exclude',$mt_exclude); 
    4751          $messages[] = __('Settings have been successfully updated.'); 
    4852          $core->blog->triggerBlog(); 
     53          http::redirect($p_url.'&config=1'); 
    4954     } 
    5055     if (isset($_POST['mt_action_restore'])) 
    5156     { 
    52           $s->drop('config'); 
    53           $s->drop('exclude'); 
     57          $core->blog->settings->multitheme->drop('mt_cfg'); 
     58          $core->blog->settings->multitheme->drop('mt_exclude'); 
    5459          $core->blog->triggerBlog(); 
    55           http::redirect($p_url); 
     60          http::redirect($p_url.'&restore=1'); 
    5661     } 
    5762} 
     
    8489echo ' 
    8590<html><head> 
    86 <title>'.__('Arlequin - theme switcher configuration').'</title>'. 
    87 dcPage::jsToolMan().($default_tab ? dcPage::jsPageTabs($default_tab) : ''). 
     91<title>'.$page_title.'</title>'. 
    8892dcPage::jsLoad('index.php?pf=arlequin/js/models.js').' 
    8993<script type="text/javascript"> 
     
    98102//]]> 
    99103</script> 
    100 </head><body> 
    101 <h2 style="padding:8px 0 8px 34px;background:url(index.php?pf=arlequin/icon_32.png) no-repeat;">'. 
    102      __('Arlequin configuration').'</h2>'; 
     104</head><body>'. 
     105dcPage::breadcrumb( 
     106          array( 
     107               html::escapeHTML($core->blog->name) => '', 
     108               '<span class="page-title">'.$page_title.'</span>' => '' 
     109          )); 
    103110 
    104111// Messages 
    105 if (!empty($messages)) 
    106 { 
    107      if (count($messages) < 2) 
    108      { 
    109           echo '    <p class="message">'.end($messages)."</p>\n"; 
    110      } 
    111      else 
    112      { 
    113           echo '<ul class="message">'; 
    114           foreach ($messages as $message) 
    115           { 
    116                echo '    <li>'.$message."</li>\n"; 
    117           } 
    118           echo "</ul>\n"; 
    119      } 
     112if (!empty($_GET['config'])) { 
     113  dcPage::success(__('Settings have been successfully updated.')); 
     114} 
     115if (!empty($_GET['restore'])) { 
     116  dcPage::success(__('Settings have been reinitialized.')); 
    120117} 
    121118 
    122 include dirname(__FILE__).'/forms.php'; 
     119echo 
     120     '<div class="fieldset"><form action="'.$p_url.'" method="post"> 
     121<div class="two-cols"><h4>'.__('Switcher display format').'</h4> 
     122<div id="models"></div> 
     123<p class="col"><label for="s_html">'.__('Switcher HTML code:').'</label> '. 
     124     form::textArea('s_html',50,10,html::escapeHTML($mt_cfg['s_html'])).'</p> 
     125<div class="col"> 
     126<p><label>'.__('Item HTML code:').' '. 
     127     form::field('e_html',35,'',html::escapeHTML($mt_cfg['e_html'])).'</label></p> 
     128<p><label>'.__('Active item HTML code:').' '. 
     129     form::field('a_html',35,'',html::escapeHTML($mt_cfg['a_html'])).'</label></p> 
     130</div><br class="clear" /> 
    123131 
    124 echo 
    125      '<div class="multi-part" id="mt_config" title="'.__('Configuration').'">'. 
    126      $mt_forms['admin_cfg']. 
    127      "</div>\n\n". 
    128      '<div class="multi-part" id="mt_help" title="'.__('Help').'">'. 
    129      $mt_forms['admin_help']. 
    130      "</div>\n\n"; 
    131 ?> 
     132<p><label>'.__('Excluded themes (separated by slashs \'/\'):').' '. 
     133     form::field(array('mt_exclude'),40,'',html::escapeHTML($mt_exclude)).'</label></p> 
     134</div> 
     135<p><input type="submit" name="mt_action_config" value="'.__('Update').'" /> 
     136     <input type="submit" name="mt_action_restore" value="'.__('Restore defaults').'" />'. 
     137     (is_callable(array($core,'formNonce')) ? $core->formNonce() : '').'</p> 
     138</form></div>'; 
     139 
     140dcPage::helpBlock('arlequin'); ?> 
    132141</body></html> 
  • plugins/arlequin/js/models.js

    r2768 r3368  
    33 *  This is 'Arlequin', a plugin for Dotclear 2                * 
    44 *                                                             * 
    5  *  Copyright (c) 2007                                         * 
     5 *  Copyright (c) 2007,2015                                    * 
    66 *  Oleksandr Syenchuk and contributors.                       * 
    77 *                                                             * 
  • plugins/arlequin/locales/fr/main.po

    r2992 r3368  
    1 # French translation of Arlequin 
    2 # Copyright (C) 2007 
    3 # Oleksandr Syenchuk <sacha@xn--phnix-csa.net>, 2007 
    41msgid "" 
    52msgstr "" 
    6 "Project-Id-Version: Dotclear 2 Arlequin 2008.08 module\n" 
    7 "Report-Msgid-Bugs-To: \n" 
    8 "POT-Creation-Date: 2011-02-24 22:23+0100\n" 
    9 "PO-Revision-Date: 2011-02-24 22:23+0100\n" 
    10 "Last-Translator: Alex Pirine <alex pirine.fr>\n" 
     3"Content-Type: text/plain; charset=UTF-8\n" 
     4"Project-Id-Version: Dotclear 2 Arlequin v1.1 module\n" 
     5"POT-Creation-Date: \n" 
     6"PO-Revision-Date: 2009-10-20 21:01+0100\n" 
     7"Last-Translator: brol <contact@brol.info>\n" 
    118"Language-Team: \n" 
    129"MIME-Version: 1.0\n" 
    13 "Content-Type: text/plain; charset=UTF-8\n" 
    1410"Content-Transfer-Encoding: 8bit\n" 
    1511"X-Poedit-Language: French\n" 
     
    1814"X-Poedit-SearchPath-0: .\n" 
    1915 
    20 #: _admin.php:16 
    21 #: _widgets.php:20 
     16#: models.php:32 
     17msgid "Bullets list" 
     18msgstr "Liste à puces" 
     19 
     20#: models.php:39 
     21msgid "Scrolled list" 
     22msgstr "Liste déroulante" 
     23 
     24#: models.php:48 
     25msgid "active theme" 
     26msgstr "thème actif" 
     27 
     28#: forms.php:22 
     29msgid "Switcher display format" 
     30msgstr "Format d'affichage du sélecteur" 
     31 
     32#: forms.php:24 
     33msgid "Switcher HTML code:" 
     34msgstr "Code HTML du sélecteur :" 
     35 
     36#: forms.php:27 
     37msgid "Item HTML code:" 
     38msgstr "Code HTML d'un item :" 
     39 
     40#: forms.php:29 
     41msgid "Active item HTML code:" 
     42msgstr "Code HTML d'un item actif :" 
     43 
     44#: forms.php:35 
     45msgid "Excluded themes (separated by slashs '/'):" 
     46msgstr "Thèmes exclus (séparés par des slashs \"/\") :" 
     47 
     48#: forms.php:38 
     49msgid "Update" 
     50msgstr "Mettre à jour" 
     51 
     52#: forms.php:39 
     53msgid "Restore defaults" 
     54msgstr "Réinitialiser les paramètres" 
     55 
     56#: _admin.php:18 
     57#: _admin.php:29 
    2258msgid "Theme switcher" 
    2359msgstr "Sélecteur de thème" 
    2460 
    25 #: index.php:47 
     61#: _admin.php:32 
     62msgid "Choose a theme" 
     63msgstr "Choisissez un thème" 
     64 
     65#: index.php:51 
    2666msgid "Settings have been successfully updated." 
    2767msgstr "Les paramètres ont été mis à jour avec succès." 
    2868 
    29 #: index.php:67 
     69#: index.php:71 
    3070msgid "Settings have been reinitialized." 
    3171msgstr "Les paramètres ont été réinitialisés." 
    3272 
    33 #: index.php:86 
     73#: index.php:18 
    3474msgid "Arlequin - theme switcher configuration" 
    3575msgstr "Arlequin - configuration du sélecteur de thème" 
    3676 
    37 #: index.php:91 
     77#: index.php:95 
    3878msgid "Predefined models" 
    3979msgstr "Modèles prédéfinis" 
    4080 
    41 #: index.php:92 
     81#: index.php:96 
    4282msgid "Select a model" 
    4383msgstr "Sélectionnez un modèle" 
    4484 
    45 #: index.php:93 
     85#: index.php:97 
    4686msgid "User defined" 
    4787msgstr "Défini par l'utilisateur" 
    4888 
    49 #: index.php:102 
    50 msgid "Arlequin configuration" 
    51 msgstr "Configuration d'Arlequin" 
     89msgid "Allows visitors choose a theme" 
     90msgstr "Permettre aux visiteurs de choisir un thème" 
    5291 
    53 #: index.php:125 
    54 msgid "Configuration" 
    55 msgstr "Configuration" 
    56  
    57 #: index.php:128 
    58 msgid "Help" 
    59 msgstr "Aide" 
    60  
    61 #: _widgets.php:22 
    62 msgid "Title:" 
    63 msgstr "Titre :" 
    64  
    65 #: _widgets.php:23 
    66 msgid "Choose a theme" 
    67 msgstr "Choisissez un thème" 
    68  
    69 #: models.php:27 
    70 msgid "Bullets list" 
    71 msgstr "Liste à puces" 
    72  
    73 #: models.php:34 
    74 msgid "Scrolled list" 
    75 msgstr "Liste déroulante" 
    76  
    77 #: models.php:40 
    78 msgid "ok" 
    79 msgstr "ok" 
    80  
    81 #: models.php:43 
    82 msgid "active theme" 
    83 msgstr "thème actif" 
    84  
    85 #: forms.php:18 
    86 msgid "Switcher display format" 
    87 msgstr "Format d'affichage du sélecteur" 
    88  
    89 #: forms.php:20 
    90 msgid "Switcher HTML code:" 
    91 msgstr "Code HTML du sélecteur :" 
    92  
    93 #: forms.php:23 
    94 msgid "Item HTML code:" 
    95 msgstr "Code HTML d'un item :" 
    96  
    97 #: forms.php:25 
    98 msgid "Active item HTML code:" 
    99 msgstr "Code HTML d'un item actif :" 
    100  
    101 #: forms.php:30 
    102 msgid "Home page only" 
    103 msgstr "Uniquement sur la page d'accueil" 
    104  
    105 #: forms.php:31 
    106 msgid "Excluded themes (separated by slashs '/'):" 
    107 msgstr "Thèmes exclus (séparés par des slashs \"/\") :" 
    108  
    109 #: forms.php:34 
    110 msgid "Update" 
    111 msgstr "Mettre à jour" 
    112  
    113 #: forms.php:35 
    114 msgid "Restore defaults" 
    115 msgstr "Réinitialiser les paramètres" 
    116  
    117 #: forms.php:49 
    118 msgid "In switcher HTML code" 
    119 msgstr "Dans le code HTML du sélecteur" 
    120  
    121 #: forms.php:51 
    122 #: forms.php:60 
    123 msgid "Variable" 
    124 msgstr "Variable" 
    125  
    126 #: forms.php:51 
    127 #: forms.php:60 
    128 msgid "Meaning" 
    129 msgstr "Signification" 
    130  
    131 #: forms.php:53 
    132 #: forms.php:62 
    133 #, php-format 
    134 msgid "Current page %sURL%s" 
    135 msgstr "L'adresse %sURL%s de la page courante" 
    136  
    137 #: forms.php:54 
    138 #: forms.php:63 
    139 #: forms.php:67 
    140 msgid "Uniform Ressource Locator" 
    141 msgstr "Localisateur Uniforme de Ressource" 
    142  
    143 #: forms.php:56 
    144 msgid "Items HTML code" 
    145 msgstr "Le code HTML des items" 
    146  
    147 #: forms.php:58 
    148 msgid "In items HTML code" 
    149 msgstr "Dans le code HTML des items" 
    150  
    151 #: forms.php:66 
    152 #, php-format 
    153 msgid "A suffix to send theme setting through %sURL%s, e.g. '%3$s'" 
    154 msgstr "Un suffixe pour envoyer le paramètre du thème à travers l'%sURL%s, p.ex. \"%3$s\"" 
    155  
    156 #: forms.php:69 
    157 #: forms.php:72 
    158 msgid "Theme identifier" 
    159 msgstr "L'identifiant du thème" 
    160  
    161 #: forms.php:70 
    162 msgid "Theme name" 
    163 msgstr "Le nom du thème" 
    164  
    165 #: forms.php:71 
    166 msgid "Theme description" 
    167 msgstr "La description du thème" 
    168  
  • plugins/arlequin/models.php

    r2992 r3368  
    1 <?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of Arlequin, a plugin for Dotclear. 
    4 #  
    5 # Copyright (c) 2007,2008,2011 Alex Pirine <alex pirine.fr> 
    6 #  
    7 # Licensed under the GPL version 2.0 license. 
    8 # A copy is available in LICENSE file or at 
    9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # -- END LICENSE BLOCK ------------------------------------ 
     1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ 
     2/***************************************************************\ 
     3 *  This is 'Arlequin', a plugin for Dotclear 2                * 
     4 *                                                             * 
     5 *  Copyright (c) 2007,2015                                    * 
     6 *  Oleksandr Syenchuk and contributors.                       * 
     7 *                                                             * 
     8 *  This is an open source software, distributed under the GNU * 
     9 *  General Public License (version 2) terms and  conditions.  * 
     10 *                                                             * 
     11 *  You should have received a copy of the GNU General Public  * 
     12 *  License along with 'Arlequin' (see COPYING.txt);           * 
     13 *  if not, write to the Free Software Foundation, Inc.,       * 
     14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
     15\***************************************************************/ 
    1116 
    1217$mt_models = array(); 
     
    4348     'a_html'=>'<option value="%3$s" selected="selected" disabled="disabled">%4$s ('.__('active theme').')</option>' 
    4449); 
    45 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map