Dotclear

Changeset 2153


Ignore:
Timestamp:
04/01/10 07:57:02 (13 years ago)
Author:
Osku
Message:

Plugin smiliesEditor - O2: add an option to download smilies dir (backup).

Location:
plugins/smiliesEditor
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • plugins/smiliesEditor/_admin.php

    r1769 r2153  
    44# This file is part of smiliesEditor, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2009 Osku and contributors 
     6# Copyright (c) 2009-2010 Osku and contributors 
    77# 
    88# Licensed under the GPL version 2.0 license. 
  • plugins/smiliesEditor/_define.php

    r1913 r2153  
    44# This file is part of smiliesEditor, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2009 Osku and contributors 
     6# Copyright (c) 2009-2010 Osku and contributors 
    77# 
    88# Licensed under the GPL version 2.0 license. 
     
    1717     /* Description*/         "Smilies Editor", 
    1818     /* Author */             "Osku and contributors", 
    19      /* Version */            '0.1.4', 
     19     /* Version */            '0.2', 
    2020     /* Permissions */        null 
    2121); 
  • plugins/smiliesEditor/_prepend.php

    r1769 r2153  
    44# This file is part of smiliesEditor, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2009 Osku and contributors 
     6# Copyright (c) 2009-2010 Osku and contributors 
    77# 
    88# Licensed under the GPL version 2.0 license. 
  • plugins/smiliesEditor/_public.php

    r1836 r2153  
    44# This file is part of smiliesEditor, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2009 Osku and contributors 
     6# Copyright (c) 2009-2010 Osku and contributors 
    77# 
    88# Licensed under the GPL version 2.0 license. 
     
    3535          } 
    3636           
    37               $js = html::stripHostURL($core->blog->getQmarkURL().'pf=smiliesEditor/js/smile.js'); 
     37          $js = html::stripHostURL($core->blog->getQmarkURL().'pf=smiliesEditor/js/smile.js'); 
    3838      
    3939          echo "\n".'<script type="text/javascript" src="'.$js.'"></script>'."\n"; 
  • plugins/smiliesEditor/inc/class.smilies.editor.php

    r1796 r2153  
    44# This file is part of smiliesEditor, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2009 Osku and contributors 
     6# Copyright (c) 2009, 2010 Osku and contributors 
    77# 
    88# Licensed under the GPL version 2.0 license. 
  • plugins/smiliesEditor/index.php

    r1836 r2153  
    44# This file is part of smiliesEditor, a plugin for Dotclear 2. 
    55#  
    6 # Copyright (c) 2009 Osku and contributors 
     6# Copyright (c) 2009-2010 Osku and contributors 
    77# 
    88# Licensed under the GPL version 2.0 license. 
     
    1313 
    1414if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    15  
    16  
    1715 
    1816// Init  
     
    2826__('hide in smilies bar') => 'hide', 
    2927); 
    30  
    31 if (is_null($core->blog->settings->smilies_bar_flag)) { 
    32      try { 
    33           $core->blog->settings->setNameSpace('smilieseditor'); 
    34  
    35           // Smilies bar is not displayed by default 
    36           $core->blog->settings->put('smilies_bar_flag',false,'boolean','Show smilies toolbar'); 
    37           $core->blog->settings->put('smilies_preview_flag',false,'boolean','Show smilies on preview'); 
    38           $core->blog->settings->put('smilies_toolbar','','string','Smilies displayed in toolbar'); 
    39            
    40           $core->blog->settings->setNameSpace('system'); 
    41            
    42           $core->blog->triggerBlog(); 
    43      } 
    44      catch (Exception $e) { 
    45           $core->error->add($e->getMessage()); 
    46      } 
    47 } 
    4828 
    4929$smilies_bar_flag = (boolean)$core->blog->settings->smilies_bar_flag; 
     
    294274     } 
    295275} 
     276 
     277# Zip download 
     278if (!empty($_GET['zipdl'])) 
     279{ 
     280     try 
     281     { 
     282          @set_time_limit(300); 
     283          $fp = fopen('php://output','wb'); 
     284          $zip = new fileZip($fp); 
     285          //$zip->addExclusion('#(^|/).(.*?)_(m|s|sq|t).jpg$#'); 
     286//  $this->core->themes->moduleInfo($core->blog->settings->theme,'root').'/smilies' 
     287          $zip->addDirectory($core->themes->moduleInfo($core->blog->settings->theme,'root').'/smilies','',true); 
     288          header('Content-Disposition: attachment;filename=smilies-'.$core->blog->settings->theme.'.zip'); 
     289          header('Content-Type: application/x-zip'); 
     290          $zip->write(); 
     291          unset($zip); 
     292          exit; 
     293     } 
     294     catch (Exception $e) 
     295     { 
     296          $core->error->add($e->getMessage()); 
     297     } 
     298} 
    296299?> 
    297300<html> 
     
    392395{ 
    393396     echo 
     397          '<p class="zip-dl"><a href="'.html::escapeURL($p_url).'&amp;zipdl=1">'. 
     398          __('Download the smilies directory as a zip file').'</a></p>'. 
    394399          '<h3>'.__('Smilies set').'</h3>'. 
    395400          '<form action="'.$p_url.'" method="post" id="links-form">'. 
  • plugins/smiliesEditor/locales/fr/main.po

    r1836 r2153  
    11# Language: français 
    2 # Module: smiliesEditor - 0.1.3 
    3 # Date: 2009-11-01 22:16:50 
     2# Module: smiliesEditor - 0.2 
     3# Date: 2010-03-31 23:00:59 
    44# Translated with translater 1.3 
    55 
     
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: smiliesEditor 0.1.3\n" 
     9"Project-Id-Version: smiliesEditor 0.2\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2009-11-01T22:16:50+00:00\n" 
     11"PO-Revision-Date: 2010-03-31T23:00:59+00:00\n" 
    1212"Last-Translator: Osku\n" 
    1313"Language-Team: \n" 
     
    1616 
    1717#: _admin.php:24 
    18 #: index.php:299 
    19 #: index.php:382 
     18#: index.php:302 
     19#: index.php:385 
    2020msgid "Smilies Editor" 
    2121msgstr "Éditeur d'émoticônes" 
     
    4545msgstr "Impossible de créer le sous-répertoire %s dans votre thème. Veuillez vérifier les permissions du répertoire." 
    4646 
    47 #: index.php:20 
     47#: index.php:18 
    4848msgid "Definition" 
    4949msgstr "Définition" 
    5050 
    51 #: index.php:21 
     51#: index.php:19 
    5252msgid "update smilies set" 
    5353msgstr "mettre à jour les émoticônes" 
    5454 
    55 #: index.php:22 
     55#: index.php:20 
    5656msgid "save smilies order" 
    5757msgstr "enregistrer l'ordre des émoticônes" 
    5858 
    59 #: index.php:23 
     59#: index.php:21 
    6060msgid "delete smilies definition" 
    6161msgstr "effacer la définition des émoticônes" 
    6262 
    63 #: index.php:26 
     63#: index.php:24 
    6464msgid "Toolbar" 
    6565msgstr "Barre d'outils" 
    6666 
    67 #: index.php:27 
     67#: index.php:25 
    6868msgid "display in smilies bar" 
    6969msgstr "afficher dans la barre des émoticônes" 
    7070 
    71 #: index.php:28 
     71#: index.php:26 
    7272msgid "hide in smilies bar" 
    7373msgstr "cacher dans la barre des émoticônes" 
    7474 
    75 #: index.php:305 
     75#: index.php:308 
    7676msgid "Are you sure you want to remove these %s ?" 
    7777msgstr "Êtes-vous certain que vous voulez supprimer ces %s ?" 
    7878 
    79 #: index.php:326 
     79#: index.php:329 
    8080msgid "You can't edit default theme." 
    8181msgstr "Vous ne pouvez pas modifier le thème par défaut." 
    8282 
    83 #: index.php:342 
     83#: index.php:345 
    8484msgid "Configuration successfully updated." 
    8585msgstr "Configuration mise à jour avec succès." 
    8686 
    87 #: index.php:346 
     87#: index.php:349 
    8888msgid "The subfolder has been successfully created" 
    8989msgstr "Le sous-répertoire a été créé avec succès." 
    9090 
    91 #: index.php:350 
     91#: index.php:353 
    9292msgid "Unused images have been successfully removed." 
    9393msgstr "Les images non utilisées ont été supprimées avec succès." 
    9494 
    95 #: index.php:354 
     95#: index.php:357 
    9696msgid "The image <em>%s</em> has been successfully uploaded." 
    9797msgstr "L'image <em>%s</em> a été envoyée avec succès." 
    9898 
    99 #: index.php:358 
     99#: index.php:361 
    100100msgid "Smilies has been successfully removed." 
    101101msgstr "Les émoticônes ont été supprimés avec succès." 
    102102 
    103 #: index.php:362 
     103#: index.php:365 
    104104msgid "Smilies has been successfully updated." 
    105105msgstr "Les émoticônes ont été mis à jour avec succès." 
    106106 
    107 #: index.php:366 
     107#: index.php:369 
    108108msgid "Order of smilies has been successfully changed." 
    109109msgstr "L'ordre des émoticônes a été mis à jour avec succès." 
    110110 
    111 #: index.php:370 
     111#: index.php:373 
    112112msgid "These selected smilies are now hidden on toolbar." 
    113113msgstr "Ces émoticônes sont désormais cachés dans la barre d'outils." 
    114114 
    115 #: index.php:374 
     115#: index.php:377 
    116116msgid "These selected smilies are now displayed on toolbar" 
    117117msgstr "Ces émoticônes sont désormais visibles dans la barre d'outils." 
    118118 
    119 #: index.php:378 
     119#: index.php:381 
    120120msgid "A new smiley has been successfully created" 
    121121msgstr "Un nouvel émoticône a été créé avec succès." 
    122122 
    123 #: index.php:382 
     123#: index.php:385 
    124124msgid "Blog aspect" 
    125125msgstr "Apparence du blog" 
    126126 
    127 #: index.php:385 
     127#: index.php:388 
    128128msgid "Your current theme on this blog is \"%s\"." 
    129129msgstr "Le thème utilisé actuellement sur votre blog est \"%s\"." 
    130130 
    131 #: index.php:389 
     131#: index.php:392 
    132132msgid "No defined smiley" 
    133133msgstr "Aucun émoticône défini" 
    134134 
    135 #: index.php:394 
     135#: index.php:398 
     136msgid "Download the smilies directory as a zip file" 
     137msgstr "Télécharger le répertoire des émoticônes dans un fichier zip" 
     138 
     139#: index.php:399 
    136140msgid "Smilies set" 
    137141msgstr "Jeu d'émoticônes" 
    138142 
    139 #: index.php:399 
     143#: index.php:404 
    140144msgid "Code" 
    141145msgstr "Code" 
    142146 
    143 #: index.php:400 
     147#: index.php:405 
    144148msgid "Filename" 
    145149msgstr "Nom du fichier" 
    146150 
    147 #: index.php:401 
     151#: index.php:406 
    148152msgid "Image" 
    149153msgstr "Image" 
    150154 
    151 #: index.php:402 
     155#: index.php:407 
    152156msgid "Displayed in toolbar" 
    153157msgstr "Visible dans la barre d'outils" 
    154158 
    155 #: index.php:411 
    156 #: index.php:411 
     159#: index.php:416 
     160#: index.php:416 
    157161msgid "displayed" 
    158162msgstr "visible" 
    159163 
    160 #: index.php:416 
    161 #: index.php:416 
     164#: index.php:421 
     165#: index.php:421 
    162166msgid "undisplayed" 
    163167msgstr "caché" 
    164168 
    165 #: index.php:436 
     169#: index.php:441 
    166170msgid "Selected smilies action:" 
    167171msgstr "Action pour les émoticônes sélectionnés :" 
    168172 
    169 #: index.php:441 
     173#: index.php:446 
    170174msgid "ok" 
    171175msgstr "ok" 
    172176 
    173 #: index.php:449 
     177#: index.php:454 
    174178msgid "No smiley available" 
    175179msgstr "Aucun émoticône disponible" 
    176180 
    177 #: index.php:455 
     181#: index.php:460 
    178182msgid "create smilies directory" 
    179183msgstr "Créer le répertoire smilies" 
    180184 
    181 #: index.php:465 
     185#: index.php:470 
    182186msgid "Create a smiley" 
    183187msgstr "Créer un émoticône" 
    184188 
    185 #: index.php:466 
    186 #: index.php:469 
     189#: index.php:471 
     190#: index.php:474 
    187191msgid "Required field" 
    188192msgstr "Champ obligatoire" 
    189193 
    190 #: index.php:466 
     194#: index.php:471 
    191195msgid "Code:" 
    192196msgstr "Code :" 
    193197 
    194 #: index.php:469 
     198#: index.php:474 
    195199msgid "Image:" 
    196200msgstr "Image :" 
    197201 
    198 #: index.php:474 
     202#: index.php:479 
    199203msgid "Create" 
    200204msgstr "Créer" 
    201205 
    202 #: index.php:481 
     206#: index.php:486 
    203207msgid "Unset Smilies" 
    204208msgstr "Images non utilisées" 
    205209 
    206 #: index.php:482 
     210#: index.php:487 
    207211msgid "Here you have displayed the unset smilies. Pass your mouse over the image to get the filename." 
    208212msgstr "Trouvez ci-après les images non utilisées. Déplacez votre souris au-dessus des images pour obtenir le nom du fichier." 
    209213 
    210 #: index.php:495 
     214#: index.php:500 
    211215msgid "Delete all unused images" 
    212216msgstr "Effacer les images non utilisées." 
    213217 
    214 #: index.php:509 
     218#: index.php:514 
    215219msgid "Add files" 
    216220msgstr "Ajouter des fichiers" 
    217221 
    218 #: index.php:512 
     222#: index.php:517 
    219223msgid "Choose a file:" 
    220224msgstr "Choisissez un fichier :" 
    221225 
    222 #: index.php:513 
     226#: index.php:518 
    223227msgid "Maximum size %s" 
    224228msgstr "Taille maximale %s" 
    225229 
    226 #: index.php:516 
     230#: index.php:521 
    227231msgid "send" 
    228232msgstr "envoyer" 
    229233 
    230 #: index.php:518 
     234#: index.php:523 
    231235msgid "Please take care to publish media that you own and that are not protected by copyright." 
    232236msgstr "Veuillez prendre garde à ne publier que des médias que vous possédez ou qui ne sont pas protégés contre la copie." 
    233237 
    234 #: index.php:535 
     238#: index.php:540 
    235239msgid "Smilies configuration" 
    236240msgstr "Configuration des émoticônes" 
    237241 
    238 #: index.php:539 
     242#: index.php:544 
    239243msgid "Show toolbar smilies" 
    240244msgstr "Afficher la barre des émoticônes" 
    241245 
    242 #: index.php:543 
     246#: index.php:548 
    243247msgid "Show smilies on preview" 
    244248msgstr "Afficher les émoticônes en prévisualisation" 
    245249 
    246 #: index.php:546 
     250#: index.php:551 
    247251msgid "Don't forget to <a href=\"%s\">display smilies</a> on your blog configuration." 
    248252msgstr "N'oubliez pas d'<a href=\"%s\">afficher les émoticônes</a> dans la configuration de votre blog." 
    249253 
    250 #: index.php:551 
     254#: index.php:556 
    251255msgid "Save configuration" 
    252256msgstr "Enregistrer la configuration" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map