Dotclear

Changeset 2968


Ignore:
Timestamp:
02/21/11 03:12:00 (12 years ago)
Author:
JcDenis
Message:

joliprint 0.4

Location:
plugins/joliprint
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/joliprint/_define.php

    r2930 r2968  
    1717     /* Description*/         "Add button to turn articles into pdf", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.3.1', 
     19     /* Version */            '0.4', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20110130 
     22     /* date */          #20110220 
    2323?> 
  • plugins/joliprint/inc/lib.social.sharer.srv.joliprint.php

    r2930 r2968  
    11<?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 
    213if (!defined('DC_RC_PATH')){return;} 
    314 
    415class joliprintSoCialMeSharerService extends soCialMeService 
    516{ 
     17     protected $part = 'sharer'; 
     18     protected $available = true; 
    619     protected $define = array( 
    720          'id' => 'joliprint', 
     
    1528          'playBigContent' => true 
    1629     ); 
    17      protected $available = true; 
    18      protected $part = 'sharer'; 
    1930      
    20      public function playIconContent($record) 
     31     public function playIconContent($post) 
    2132     { 
    22           return $this->parseHTML('joliprint-icon.png',$record); 
     33          return $this->parseHTML('joliprint-icon.png',$post); 
    2334     } 
    2435      
    25      public function playBigContent($record) 
     36     public function playBigContent($post) 
    2637     { 
    27           return $this->parseHTML('joliprint-share-style.png',$record); 
     38          return $this->parseHTML('joliprint-share-style.png',$post); 
    2839     } 
    2940      
    30      public function playSmallContent($record) 
     41     public function playSmallContent($post) 
    3142     { 
    32           return $this->parseHTML('joliprint-share-button.png',$record); 
     43          return $this->parseHTML('joliprint-share-button.png',$post); 
    3344     } 
    3445      
    35      private function parseHTML($type,$record) 
     46     private function parseHTML($type,$post) 
    3647     { 
    37           if (!$record || empty($record['url'])) return; 
     48          if (!$post || empty($post['url'])) return; 
    3849           
    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; 
    4058     } 
    4159} 
  • plugins/joliprint/locales/fr/main.lang.php

    r2825 r2968  
    11<?php 
    22// Language: Français  
    3 // Module: joliprint - 0.2 
    4 // Date: 2011-01-03 14:55:21  
     3// Module: joliprint - 0.4 
     4// Date: 2011-02-20 18:50:41  
    55// Translated with dcTranslater - 1.5  
    66 
    77#_widgets.php:28 
    8 #index.php:134 
     8#index.php:143 
    99$GLOBALS['__l10n']['Picture:'] = 'Image :'; 
    1010 
    1111#_widgets.php:34 
    12 #index.php:149 
     12#index.php:158 
    1313$GLOBALS['__l10n']['Country:'] = 'Province :'; 
    1414 
     
    1717 
    1818#inc/class.joliprint.php:27 
    19 #index.php:133 
     19#index.php:142 
    2020$GLOBALS['__l10n']['Button'] = 'Bouton'; 
    2121 
     
    8484$GLOBALS['__l10n']['Enable extension'] = 'Activer l\'extension'; 
    8585 
    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 
    8793$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.'; 
    8894 
    89 #index.php:156 
     95#index.php:165 
    9096$GLOBALS['__l10n']['Show on posts from:'] = 'Afficher sur les billets de :'; 
    9197 
    92 #index.php:166 
     98#index.php:175 
    9399$GLOBALS['__l10n']['Place:'] = 'Emplacement :'; 
    94100 
    95 #index.php:170 
     101#index.php:179 
    96102$GLOBALS['__l10n']['Additionnal style sheet:'] = 'Feuille de style additionnelle :'; 
    97103 
    98 #index.php:173 
     104#index.php:182 
    99105$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"'; 
    100106 
    101 #index.php:174 
     107#index.php:183 
    102108$GLOBALS['__l10n']['Compatibility:'] = 'Compatibilité :'; 
    103109 
    104 #index.php:177 
     110#index.php:186 
    105111$GLOBALS['__l10n']['Enable usage of a clean version of post'] = 'Utiliser la version allégée d\'un billet'; 
    106112 
    107 #index.php:178 
     113#index.php:187 
    108114$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.'; 
    109115 
  • plugins/joliprint/locales/fr/main.po

    r2825 r2968  
    11# Language: Français 
    2 # Module: joliprint - 0.2 
    3 # Date: 2011-01-03 14:55:21 
     2# Module: joliprint - 0.4 
     3# Date: 2011-02-20 18:50:41 
    44# Translated with translater 1.5 
    55 
     
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: joliprint 0.2\n" 
     9"Project-Id-Version: joliprint 0.4\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2011-01-03T14:55:21+00:00\n" 
     11"PO-Revision-Date: 2011-02-20T18:50:41+00:00\n" 
    1212"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
     
    1616 
    1717#: _widgets.php:28 
    18 #: index.php:134 
     18#: index.php:143 
    1919msgid "Picture:" 
    2020msgstr "Image :" 
    2121 
    2222#: _widgets.php:34 
    23 #: index.php:149 
     23#: index.php:158 
    2424msgid "Country:" 
    2525msgstr "Province :" 
     
    3030 
    3131#: inc/class.joliprint.php:27 
    32 #: index.php:133 
     32#: index.php:142 
    3333msgid "Button" 
    3434msgstr "Bouton" 
     
    119119msgstr "Activer l'extension" 
    120120 
    121 #: index.php:148 
     121#: index.php:136 
     122msgid "Go to soCialMe admin page" 
     123msgstr "Aller à la page d'administration de soCialMe" 
     124 
     125#: index.php:137 
     126msgid "You can also add joliprint buttons from the plugin soCialMe" 
     127msgstr "Vous pouvez également ajouter les boutons joliprint depuis le plugin soCialMe" 
     128 
     129#: index.php:157 
    122130msgid "This text is placed after icon only and on mouseover." 
    123131msgstr "Ce text est placé après l'icône seulement et au survole." 
    124132 
    125 #: index.php:156 
     133#: index.php:165 
    126134msgid "Show on posts from:" 
    127135msgstr "Afficher sur les billets de :" 
    128136 
    129 #: index.php:166 
     137#: index.php:175 
    130138msgid "Place:" 
    131139msgstr "Emplacement :" 
    132140 
    133 #: index.php:170 
     141#: index.php:179 
    134142msgid "Additionnal style sheet:" 
    135143msgstr "Feuille de style additionnelle :" 
    136144 
    137 #: index.php:173 
     145#: index.php:182 
    138146msgid "This button is placed in HTML tag \"div\" of class \"postjoliprint\"." 
    139147msgstr "Ce bouton est placé dans une balise HTML \"div\" de classe \"postjoliprint\"" 
    140148 
    141 #: index.php:174 
     149#: index.php:183 
    142150msgid "Compatibility:" 
    143151msgstr "Compatibilité :" 
    144152 
    145 #: index.php:177 
     153#: index.php:186 
    146154msgid "Enable usage of a clean version of post" 
    147155msgstr "Utiliser la version allégée d'un billet" 
    148156 
    149 #: index.php:178 
     157#: index.php:187 
    150158msgid "This can help if some extensions are not correctly transcribed in PDF." 
    151159msgstr "Ceci peut aider si des extensions ne sont pas correctement transcrites en PDF." 
  • plugins/joliprint/release.txt

    r2912 r2968  
     10.4 20110220 
     2 * Followed soCialMe new system 
     3 
    140.3 20110130 
    25 * Added joliprint to plugin soCialMe (sharer) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map