Changeset 2968
- Timestamp:
- 02/21/11 03:12:00 (12 years ago)
- Location:
- plugins/joliprint
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/joliprint/_define.php
r2930 r2968 17 17 /* Description*/ "Add button to turn articles into pdf", 18 18 /* Author */ "JC Denis", 19 /* Version */ '0. 3.1',19 /* Version */ '0.4', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #20110 13022 /* date */ #20110220 23 23 ?> -
plugins/joliprint/inc/lib.social.sharer.srv.joliprint.php
r2930 r2968 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # This file is part of joliprint, a plugin for Dotclear 2. 4 # 5 # Copyright (c) 2009-2011 JC Denis and contributors 6 # jcdenis@gdwd.com 7 # 8 # Licensed under the GPL version 2.0 license. 9 # A copy of this license is available in LICENSE file or at 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 # -- END LICENSE BLOCK ------------------------------------ 12 2 13 if (!defined('DC_RC_PATH')){return;} 3 14 4 15 class joliprintSoCialMeSharerService extends soCialMeService 5 16 { 17 protected $part = 'sharer'; 18 protected $available = true; 6 19 protected $define = array( 7 20 'id' => 'joliprint', … … 15 28 'playBigContent' => true 16 29 ); 17 protected $available = true;18 protected $part = 'sharer';19 30 20 public function playIconContent($ record)31 public function playIconContent($post) 21 32 { 22 return $this->parseHTML('joliprint-icon.png',$ record);33 return $this->parseHTML('joliprint-icon.png',$post); 23 34 } 24 35 25 public function playBigContent($ record)36 public function playBigContent($post) 26 37 { 27 return $this->parseHTML('joliprint-share-style.png',$ record);38 return $this->parseHTML('joliprint-share-style.png',$post); 28 39 } 29 40 30 public function playSmallContent($ record)41 public function playSmallContent($post) 31 42 { 32 return $this->parseHTML('joliprint-share-button.png',$ record);43 return $this->parseHTML('joliprint-share-button.png',$post); 33 44 } 34 45 35 private function parseHTML($type,$ record)46 private function parseHTML($type,$post) 36 47 { 37 if (!$ record || empty($record['url'])) return;48 if (!$post || empty($post['url'])) return; 38 49 39 return soCialMeUtils::preloadBox(joliprint::toHTML(array('url'=>$record['url'],'button'=>$type))); 50 $record[0] = array( 51 'service' => $this->id, 52 'source_name' => $this->name, 53 'source_url' => $this->home, 54 'source_icon' => $this->icon, 55 'content' => joliprint::toHTML(array('url'=>$post['url'],'button'=>$type)) 56 ); 57 return $record; 40 58 } 41 59 } -
plugins/joliprint/locales/fr/main.lang.php
r2825 r2968 1 1 <?php 2 2 // Language: Français 3 // Module: joliprint - 0. 24 // Date: 2011-0 1-03 14:55:213 // Module: joliprint - 0.4 4 // Date: 2011-02-20 18:50:41 5 5 // Translated with dcTranslater - 1.5 6 6 7 7 #_widgets.php:28 8 #index.php:1 348 #index.php:143 9 9 $GLOBALS['__l10n']['Picture:'] = 'Image :'; 10 10 11 11 #_widgets.php:34 12 #index.php:1 4912 #index.php:158 13 13 $GLOBALS['__l10n']['Country:'] = 'Province :'; 14 14 … … 17 17 18 18 #inc/class.joliprint.php:27 19 #index.php:1 3319 #index.php:142 20 20 $GLOBALS['__l10n']['Button'] = 'Bouton'; 21 21 … … 84 84 $GLOBALS['__l10n']['Enable extension'] = 'Activer l\'extension'; 85 85 86 #index.php:148 86 #index.php:136 87 $GLOBALS['__l10n']['Go to soCialMe admin page'] = 'Aller à la page d\'administration de soCialMe'; 88 89 #index.php:137 90 $GLOBALS['__l10n']['You can also add joliprint buttons from the plugin soCialMe'] = 'Vous pouvez également ajouter les boutons joliprint depuis le plugin soCialMe'; 91 92 #index.php:157 87 93 $GLOBALS['__l10n']['This text is placed after icon only and on mouseover.'] = 'Ce text est placé après l\'icône seulement et au survole.'; 88 94 89 #index.php:1 5695 #index.php:165 90 96 $GLOBALS['__l10n']['Show on posts from:'] = 'Afficher sur les billets de :'; 91 97 92 #index.php:1 6698 #index.php:175 93 99 $GLOBALS['__l10n']['Place:'] = 'Emplacement :'; 94 100 95 #index.php:17 0101 #index.php:179 96 102 $GLOBALS['__l10n']['Additionnal style sheet:'] = 'Feuille de style additionnelle :'; 97 103 98 #index.php:1 73104 #index.php:182 99 105 $GLOBALS['__l10n']['This button is placed in HTML tag "div" of class "postjoliprint".'] = 'Ce bouton est placé dans une balise HTML "div" de classe "postjoliprint"'; 100 106 101 #index.php:1 74107 #index.php:183 102 108 $GLOBALS['__l10n']['Compatibility:'] = 'Compatibilité :'; 103 109 104 #index.php:1 77110 #index.php:186 105 111 $GLOBALS['__l10n']['Enable usage of a clean version of post'] = 'Utiliser la version allégée d\'un billet'; 106 112 107 #index.php:1 78113 #index.php:187 108 114 $GLOBALS['__l10n']['This can help if some extensions are not correctly transcribed in PDF.'] = 'Ceci peut aider si des extensions ne sont pas correctement transcrites en PDF.'; 109 115 -
plugins/joliprint/locales/fr/main.po
r2825 r2968 1 1 # Language: Français 2 # Module: joliprint - 0. 23 # Date: 2011-0 1-03 14:55:212 # Module: joliprint - 0.4 3 # Date: 2011-02-20 18:50:41 4 4 # Translated with translater 1.5 5 5 … … 7 7 msgstr "" 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: joliprint 0. 2\n"9 "Project-Id-Version: joliprint 0.4\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 2011-0 1-03T14:55:21+00:00\n"11 "PO-Revision-Date: 2011-02-20T18:50:41+00:00\n" 12 12 "Last-Translator: JC Denis\n" 13 13 "Language-Team: \n" … … 16 16 17 17 #: _widgets.php:28 18 #: index.php:1 3418 #: index.php:143 19 19 msgid "Picture:" 20 20 msgstr "Image :" 21 21 22 22 #: _widgets.php:34 23 #: index.php:1 4923 #: index.php:158 24 24 msgid "Country:" 25 25 msgstr "Province :" … … 30 30 31 31 #: inc/class.joliprint.php:27 32 #: index.php:1 3332 #: index.php:142 33 33 msgid "Button" 34 34 msgstr "Bouton" … … 119 119 msgstr "Activer l'extension" 120 120 121 #: index.php:148 121 #: index.php:136 122 msgid "Go to soCialMe admin page" 123 msgstr "Aller à la page d'administration de soCialMe" 124 125 #: index.php:137 126 msgid "You can also add joliprint buttons from the plugin soCialMe" 127 msgstr "Vous pouvez également ajouter les boutons joliprint depuis le plugin soCialMe" 128 129 #: index.php:157 122 130 msgid "This text is placed after icon only and on mouseover." 123 131 msgstr "Ce text est placé après l'icône seulement et au survole." 124 132 125 #: index.php:1 56133 #: index.php:165 126 134 msgid "Show on posts from:" 127 135 msgstr "Afficher sur les billets de :" 128 136 129 #: index.php:1 66137 #: index.php:175 130 138 msgid "Place:" 131 139 msgstr "Emplacement :" 132 140 133 #: index.php:17 0141 #: index.php:179 134 142 msgid "Additionnal style sheet:" 135 143 msgstr "Feuille de style additionnelle :" 136 144 137 #: index.php:1 73145 #: index.php:182 138 146 msgid "This button is placed in HTML tag \"div\" of class \"postjoliprint\"." 139 147 msgstr "Ce bouton est placé dans une balise HTML \"div\" de classe \"postjoliprint\"" 140 148 141 #: index.php:1 74149 #: index.php:183 142 150 msgid "Compatibility:" 143 151 msgstr "Compatibilité :" 144 152 145 #: index.php:1 77153 #: index.php:186 146 154 msgid "Enable usage of a clean version of post" 147 155 msgstr "Utiliser la version allégée d'un billet" 148 156 149 #: index.php:1 78157 #: index.php:187 150 158 msgid "This can help if some extensions are not correctly transcribed in PDF." 151 159 msgstr "Ceci peut aider si des extensions ne sont pas correctement transcrites en PDF." -
plugins/joliprint/release.txt
r2912 r2968 1 0.4 20110220 2 * Followed soCialMe new system 3 1 4 0.3 20110130 2 5 * Added joliprint to plugin soCialMe (sharer)
Note: See TracChangeset
for help on using the changeset viewer.