Changeset 3368
- Timestamp:
- 03/04/15 00:39:31 (9 years ago)
- 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> 1 v1.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 2 6 3 * Dotclear 2.2.2 compatibility. thx <gaetanbistroduweb.com>4 7 2010-07-15 Gaetan Guillard <gaetan@bistroduweb.com> 8 * v1.0.1 - Corrections for compatibility with Dotclear 2.2 5 9 6 10 2008-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 9 12 10 13 11 14 2008-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. 14 16 15 17 16 18 2008-04-21 Oleksandr Syenchuk <sacha@xn--phnix-csa.net> 17 18 * Dotclear r1790 compatibility, see 19 * Dotclear r1790 compatibility, see 19 20 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 \***************************************************************/ 12 16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 17 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', 17 19 'index.php?pf=arlequin/icon.png', 18 20 preg_match('/plugin.php\?p=arlequin(&.*)?$/',$_SERVER['REQUEST_URI']), 19 21 $core->auth->check('contentadmin',$core->blog->id)); 20 22 21 class adminArlequin 23 require dirname(__FILE__).'/_widgets.php'; 24 25 $core->addBehavior('adminDashboardFavorites','arlequinDashboardFavorites'); 26 27 function arlequinDashboardFavorites($core,$favs) 22 28 { 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 )); 57 36 } 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 \***************************************************************/ 12 16 if (!defined('DC_RC_PATH')) { return; } 13 17 … … 15 19 /* Name */ 'Arlequin', 16 20 /* 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 ) 20 31 ); 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 \***************************************************************/ 12 16 if (!defined('DC_RC_PATH')) { return; } 13 17 14 18 require dirname(__FILE__).'/_widgets.php'; 15 19 16 /** *17 *Arlequin public interface20 /** @doc 21 Arlequin public interface 18 22 */ 19 23 … … 27 31 public static $cookie_upddt; 28 32 29 public static function trigger( &$blog)33 public static function trigger($blog) 30 34 { 31 35 $cname = base_convert($blog->uid,16,36); … … 52 56 } 53 57 54 public static function adjustCache( &$core)58 public static function adjustCache($core) 55 59 { 56 60 if (!empty($_COOKIE[self::$cookie_upddt])) { … … 59 63 } 60 64 61 public static function switchTheme( &$blog,$theme)65 public static function switchTheme($blog,$theme) 62 66 { 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))) { 65 69 return; 66 70 } … … 73 77 class publicArlequinInterface 74 78 { 75 public static function widget($w)79 public static function arlequinWidget($w) 76 80 { 77 81 return self::getHTML($w); … … 86 90 { 87 91 global $core; 92 93 if ($w->offline) 94 return; 88 95 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 } 90 102 91 103 if ($cfg === false || 92 ($cfg['homeonly'] && $core->url->type != 'default') ||93 104 ($names = self::getNames()) === false) { 94 105 return; … … 147 158 148 159 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); 152 166 } 153 167 … … 159 173 global $core; 160 174 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 } 163 180 164 181 $names = array_diff_key($core->themes->getModules(),$exclude); … … 167 184 } 168 185 } 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 \***************************************************************/ 12 16 if (!defined('DC_RC_PATH')) { return; } 13 17 14 $core->addBehavior('initWidgets',array(' widgetsArlequin','widget'));18 $core->addBehavior('initWidgets',array('adminArlequin','initWidgets')); 15 19 16 class widgetsArlequin20 class adminArlequin 17 21 { 18 public static function widget(&$w)22 public static function initWidgets($w) 19 23 { 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); 24 72 } 25 73 } 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 \***************************************************************/ 16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 11 17 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 18 $page_title = __('Arlequin'); 13 19 14 20 try … … 17 23 18 24 $messages = array(); 19 $default_tab = empty($_GET['tab']) ? 'mt_config' : html::escapeHTML($_GET['tab']);20 25 21 26 /* Initialisation 22 27 --------------------------------------------------- */ 23 28 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); 27 32 28 33 /* Enregistrement des données depuis les formulaires … … 31 36 if (isset($_POST['mt_action_config'])) 32 37 { 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']; 38 42 } 39 43 … … 43 47 if (isset($_POST['mt_action_config'])) 44 48 { 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); 47 51 $messages[] = __('Settings have been successfully updated.'); 48 52 $core->blog->triggerBlog(); 53 http::redirect($p_url.'&config=1'); 49 54 } 50 55 if (isset($_POST['mt_action_restore'])) 51 56 { 52 $ s->drop('config');53 $ s->drop('exclude');57 $core->blog->settings->multitheme->drop('mt_cfg'); 58 $core->blog->settings->multitheme->drop('mt_exclude'); 54 59 $core->blog->triggerBlog(); 55 http::redirect($p_url );60 http::redirect($p_url.'&restore=1'); 56 61 } 57 62 } … … 84 89 echo ' 85 90 <html><head> 86 <title>'.__('Arlequin - theme switcher configuration').'</title>'. 87 dcPage::jsToolMan().($default_tab ? dcPage::jsPageTabs($default_tab) : ''). 91 <title>'.$page_title.'</title>'. 88 92 dcPage::jsLoad('index.php?pf=arlequin/js/models.js').' 89 93 <script type="text/javascript"> … … 98 102 //]]> 99 103 </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>'. 105 dcPage::breadcrumb( 106 array( 107 html::escapeHTML($core->blog->name) => '', 108 '<span class="page-title">'.$page_title.'</span>' => '' 109 )); 103 110 104 111 // 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 } 112 if (!empty($_GET['config'])) { 113 dcPage::success(__('Settings have been successfully updated.')); 114 } 115 if (!empty($_GET['restore'])) { 116 dcPage::success(__('Settings have been reinitialized.')); 120 117 } 121 118 122 include dirname(__FILE__).'/forms.php'; 119 echo 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" /> 123 131 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 140 dcPage::helpBlock('arlequin'); ?> 132 141 </body></html> -
plugins/arlequin/js/models.js
r2768 r3368 3 3 * This is 'Arlequin', a plugin for Dotclear 2 * 4 4 * * 5 * Copyright (c) 2007 5 * Copyright (c) 2007,2015 * 6 6 * Oleksandr Syenchuk and contributors. * 7 7 * * -
plugins/arlequin/locales/fr/main.po
r2992 r3368 1 # French translation of Arlequin2 # Copyright (C) 20073 # Oleksandr Syenchuk <sacha@xn--phnix-csa.net>, 20074 1 msgid "" 5 2 msgstr "" 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: 20 11-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" 11 8 "Language-Team: \n" 12 9 "MIME-Version: 1.0\n" 13 "Content-Type: text/plain; charset=UTF-8\n"14 10 "Content-Transfer-Encoding: 8bit\n" 15 11 "X-Poedit-Language: French\n" … … 18 14 "X-Poedit-SearchPath-0: .\n" 19 15 20 #: _admin.php:16 21 #: _widgets.php:20 16 #: models.php:32 17 msgid "Bullets list" 18 msgstr "Liste à puces" 19 20 #: models.php:39 21 msgid "Scrolled list" 22 msgstr "Liste déroulante" 23 24 #: models.php:48 25 msgid "active theme" 26 msgstr "thème actif" 27 28 #: forms.php:22 29 msgid "Switcher display format" 30 msgstr "Format d'affichage du sélecteur" 31 32 #: forms.php:24 33 msgid "Switcher HTML code:" 34 msgstr "Code HTML du sélecteur :" 35 36 #: forms.php:27 37 msgid "Item HTML code:" 38 msgstr "Code HTML d'un item :" 39 40 #: forms.php:29 41 msgid "Active item HTML code:" 42 msgstr "Code HTML d'un item actif :" 43 44 #: forms.php:35 45 msgid "Excluded themes (separated by slashs '/'):" 46 msgstr "Thèmes exclus (séparés par des slashs \"/\") :" 47 48 #: forms.php:38 49 msgid "Update" 50 msgstr "Mettre à jour" 51 52 #: forms.php:39 53 msgid "Restore defaults" 54 msgstr "Réinitialiser les paramètres" 55 56 #: _admin.php:18 57 #: _admin.php:29 22 58 msgid "Theme switcher" 23 59 msgstr "Sélecteur de thème" 24 60 25 #: index.php:47 61 #: _admin.php:32 62 msgid "Choose a theme" 63 msgstr "Choisissez un thème" 64 65 #: index.php:51 26 66 msgid "Settings have been successfully updated." 27 67 msgstr "Les paramètres ont été mis à jour avec succès." 28 68 29 #: index.php: 6769 #: index.php:71 30 70 msgid "Settings have been reinitialized." 31 71 msgstr "Les paramètres ont été réinitialisés." 32 72 33 #: index.php: 8673 #: index.php:18 34 74 msgid "Arlequin - theme switcher configuration" 35 75 msgstr "Arlequin - configuration du sélecteur de thème" 36 76 37 #: index.php:9 177 #: index.php:95 38 78 msgid "Predefined models" 39 79 msgstr "Modèles prédéfinis" 40 80 41 #: index.php:9 281 #: index.php:96 42 82 msgid "Select a model" 43 83 msgstr "Sélectionnez un modèle" 44 84 45 #: index.php:9 385 #: index.php:97 46 86 msgid "User defined" 47 87 msgstr "Défini par l'utilisateur" 48 88 49 #: index.php:102 50 msgid "Arlequin configuration" 51 msgstr "Configuration d'Arlequin" 89 msgid "Allows visitors choose a theme" 90 msgstr "Permettre aux visiteurs de choisir un thème" 52 91 53 #: index.php:12554 msgid "Configuration"55 msgstr "Configuration"56 57 #: index.php:12858 msgid "Help"59 msgstr "Aide"60 61 #: _widgets.php:2262 msgid "Title:"63 msgstr "Titre :"64 65 #: _widgets.php:2366 msgid "Choose a theme"67 msgstr "Choisissez un thème"68 69 #: models.php:2770 msgid "Bullets list"71 msgstr "Liste à puces"72 73 #: models.php:3474 msgid "Scrolled list"75 msgstr "Liste déroulante"76 77 #: models.php:4078 msgid "ok"79 msgstr "ok"80 81 #: models.php:4382 msgid "active theme"83 msgstr "thème actif"84 85 #: forms.php:1886 msgid "Switcher display format"87 msgstr "Format d'affichage du sélecteur"88 89 #: forms.php:2090 msgid "Switcher HTML code:"91 msgstr "Code HTML du sélecteur :"92 93 #: forms.php:2394 msgid "Item HTML code:"95 msgstr "Code HTML d'un item :"96 97 #: forms.php:2598 msgid "Active item HTML code:"99 msgstr "Code HTML d'un item actif :"100 101 #: forms.php:30102 msgid "Home page only"103 msgstr "Uniquement sur la page d'accueil"104 105 #: forms.php:31106 msgid "Excluded themes (separated by slashs '/'):"107 msgstr "Thèmes exclus (séparés par des slashs \"/\") :"108 109 #: forms.php:34110 msgid "Update"111 msgstr "Mettre à jour"112 113 #: forms.php:35114 msgid "Restore defaults"115 msgstr "Réinitialiser les paramètres"116 117 #: forms.php:49118 msgid "In switcher HTML code"119 msgstr "Dans le code HTML du sélecteur"120 121 #: forms.php:51122 #: forms.php:60123 msgid "Variable"124 msgstr "Variable"125 126 #: forms.php:51127 #: forms.php:60128 msgid "Meaning"129 msgstr "Signification"130 131 #: forms.php:53132 #: forms.php:62133 #, php-format134 msgid "Current page %sURL%s"135 msgstr "L'adresse %sURL%s de la page courante"136 137 #: forms.php:54138 #: forms.php:63139 #: forms.php:67140 msgid "Uniform Ressource Locator"141 msgstr "Localisateur Uniforme de Ressource"142 143 #: forms.php:56144 msgid "Items HTML code"145 msgstr "Le code HTML des items"146 147 #: forms.php:58148 msgid "In items HTML code"149 msgstr "Dans le code HTML des items"150 151 #: forms.php:66152 #, php-format153 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:69157 #: forms.php:72158 msgid "Theme identifier"159 msgstr "L'identifiant du thème"160 161 #: forms.php:70162 msgid "Theme name"163 msgstr "Le nom du thème"164 165 #: forms.php:71166 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 \***************************************************************/ 11 16 12 17 $mt_models = array(); … … 43 48 'a_html'=>'<option value="%3$s" selected="selected" disabled="disabled">%4$s ('.__('active theme').')</option>' 44 49 ); 45 ?>
Note: See TracChangeset
for help on using the changeset viewer.