Changeset 2914
- Timestamp:
- 01/30/11 14:49:58 (12 years ago)
- Location:
- plugins/optionsForComment
- Files:
-
- 1 added
- 2 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/optionsForComment/_admin.php
r2676 r2914 3 3 # This file is part of optionsForComment, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/optionsForComment/_define.php
r2676 r2914 3 3 # This file is part of optionsForComment, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 17 17 /* Description*/ "Add some options on comments", 18 18 /* Author */ "JC Denis", 19 /* Version */ '0. 1',19 /* Version */ '0.2', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #20110130 22 23 ?> -
plugins/optionsForComment/_prepend.php
r2676 r2914 3 3 # This file is part of optionsForComment, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 18 18 $__autoload['optionsForComment'] = dirname(__FILE__).'/inc/class.optionsforcomment.php'; 19 19 20 # Twitter login 21 $__autoload['ofcTwitterLogin'] = dirname(__FILE__).'/inc/lib.ofc.twitterlogin.php'; 22 $__autoload['libOfcTwitterLogin'] = dirname(__FILE__).'/inc/lib.ofc.twitterlogin.php'; 23 $__autoload['urlOfcTwitterLogin'] = dirname(__FILE__).'/inc/lib.ofc.twitterlogin.php'; 24 $core->url->register('ofcTwitterLogin','ofctl','^ofctl$',array('urlOfcTwitterLogin','login')); 25 $core->addBehavior('optionsForCommentAdminPrepend',array('ofcTwitterLogin','optionsForCommentAdminPrepend')); 26 $core->addBehavior('optionsForCommentAdminHeader',array('ofcTwitterLogin','optionsForCommentAdminHeader')); 27 $core->addBehavior('optionsForCommentPublicPrepend',array('ofcTwitterLogin','optionsForCommentPublicPrepend')); 28 $core->addBehavior('optionsForCommentPublicCreate',array('ofcTwitterLogin','optionsForCommentPublicCreate')); 29 $core->addBehavior('optionsForCommentPublicHead',array('ofcTwitterLogin','optionsForCommentPublicHead')); 30 $core->addBehavior('optionsForCommentAdminForm',array('ofcTwitterLogin','optionsForCommentAdminForm')); 31 $core->addBehavior('optionsForCommentPublicForm',array('ofcTwitterLogin','optionsForCommentPublicForm')); 32 $core->addBehavior('noodlesNoodleImageInfo',array('libOfcTwitterLogin','noodlesNoodleImageInfo')); 20 # Button Twitter login 21 // see plugin dcLibTwitter 33 22 34 23 # Email optionnel -
plugins/optionsForComment/_public.php
r2676 r2914 3 3 # This file is part of optionsForComment, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # … … 26 26 # Au debut du formulaire publique 27 27 $core->addBehavior('publicCommentFormBeforeContent',array('optionsForComment','publicCommentFormBeforeContent')); 28 # Dans l'entete de la page publique 29 $core->addBehavior('publicFooterContent',array('optionsForComment','publicFooterContent')); 28 30 } 29 31 ?> -
plugins/optionsForComment/inc/class.optionsforcomment.php
r2676 r2914 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # This file is part of optionsForComment, 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 13 if (!defined('DC_RC_PATH')){return;} 2 14 3 15 class optionsForComment … … 38 50 '<style type="text/css">'."\n".$p."</style>\n"; 39 51 } 52 40 53 # JS class 41 54 echo … … 45 58 $js_vars = new ArrayObject(); 46 59 47 $ core->callBehavior('optionsForCommentPublicHead',$core,$_ctx,$js_vars);60 $res = $core->callBehavior('optionsForCommentPublicHead',$core,$_ctx,$js_vars); 48 61 49 62 echo … … 57 70 echo 58 71 "//]]>\n". 59 "</script>\n"; 72 "</script>\n". 73 $res; 60 74 } 61 75 -
plugins/optionsForComment/inc/lib.ofc.anonymouscomment.php
r2676 r2914 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # This file is part of optionsForComment, 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 13 if (!defined('DC_RC_PATH')){return;} 2 14 3 15 class ofcAnonymousComment extends optionsForComment … … 5 17 public static function optionsForCommentAdminPrepend($core,$action) 6 18 { 7 if ( $action != 'savesettings') {19 if (!defined('DC_CONTEXT_ADMIN') || $action != 'savesettings') { 8 20 return; 9 21 } … … 14 26 public static function optionsForCommentAdminFormMode($core) 15 27 { 28 if (!defined('DC_CONTEXT_ADMIN')){return;} 29 16 30 $p = (boolean) $core->blog->settings->optionsForComment->anonymouscomment; 17 31 -
plugins/optionsForComment/inc/lib.ofc.emailoptionnel.php
r2676 r2914 1 1 <?php 2 # -- BEGIN LICENSE BLOCK ---------------------------------- 3 # This file is part of optionsForComment, 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 13 if (!defined('DC_RC_PATH')){return;} 2 14 3 15 class ofcEmailOptionnel extends optionsForComment … … 5 17 public static function optionsForCommentAdminFormMode($core) 6 18 { 19 if (!defined('DC_CONTEXT_ADMIN')){return;} 20 7 21 $p = $core->blog->settings->optionsForComment->mode == 'emailoptionnel'; 8 22 … … 15 29 public static function optionsForCommentPublicPrepend($core,$rs) 16 30 { 31 if (!defined('DC_CONTEXT_ADMIN')){return;} 32 17 33 if ($core->blog->settings->optionsForComment->mode != 'emailoptionnel' 18 34 || $rs['c_content'] === null -
plugins/optionsForComment/index.php
r2676 r2914 3 3 # This file is part of optionsForComment, a plugin for Dotclear 2. 4 4 # 5 # Copyright (c) 2009-201 0JC Denis and contributors5 # Copyright (c) 2009-2011 JC Denis and contributors 6 6 # jcdenis@gdwd.com 7 7 # -
plugins/optionsForComment/js/ofc.anonymouscomment.js
r2676 r2914 1 /* -- BEGIN LICENSE BLOCK ---------------------------------- 2 * This file is part of optionsForComment, a plugin for Dotclear 2. 3 * 4 * Copyright (c) 2009-2011 JC Denis and contributors 5 * jcdenis@gdwd.com 6 * 7 * Licensed under the GPL version 2.0 license. 8 * A copy of this license 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 12 $(document).ready(ofcAnonymousCommentInit); 2 13 -
plugins/optionsForComment/js/ofc.emailoptionnel.js
r2676 r2914 1 /* -- BEGIN LICENSE BLOCK ---------------------------------- 2 * This file is part of optionsForComment, a plugin for Dotclear 2. 3 * 4 * Copyright (c) 2009-2011 JC Denis and contributors 5 * jcdenis@gdwd.com 6 * 7 * Licensed under the GPL version 2.0 license. 8 * A copy of this license 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 12 $(document).ready(ofcEmailOptionnel); 2 13 -
plugins/optionsForComment/js/optionsforcomment.js
r2676 r2914 1 /* -- BEGIN LICENSE BLOCK ---------------------------------- 2 * This file is part of optionsForComment, a plugin for Dotclear 2. 3 * 4 * Copyright (c) 2009-2011 JC Denis and contributors 5 * jcdenis@gdwd.com 6 * 7 * Licensed under the GPL version 2.0 license. 8 * A copy of this license 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 12 $(document).ready(ofcInit); 2 13 -
plugins/optionsForComment/locales/fr/main.lang.php
r2676 r2914 1 1 <?php 2 2 // Language: Français 3 // Module: optionsForComment - 0. 1-alpha14 // Date: 201 0-09-25 13:30:193 // Module: optionsForComment - 0.2 4 // Date: 2011-01-29 23:18:33 5 5 // Translated with dcTranslater - 1.5 6 6 7 #inc/lib.ofc.anonymouscomment.php: 217 #inc/lib.ofc.anonymouscomment.php:35 8 8 $GLOBALS['__l10n']['Allow anonnymous comments'] = 'Autoriser les commentaires anonymes'; 9 9 10 #inc/lib.ofc.anonymouscomment.php: 5010 #inc/lib.ofc.anonymouscomment.php:64 11 11 $GLOBALS['__l10n']['Somebody'] = 'Quelqu\'un'; 12 12 13 #inc/lib.ofc.anonymouscomment.php: 8413 #inc/lib.ofc.anonymouscomment.php:98 14 14 $GLOBALS['__l10n']['Anonymous comment'] = 'Commentaire anonyme'; 15 15 16 #inc/lib.ofc.emailoptionnel.php: 1216 #inc/lib.ofc.emailoptionnel.php:26 17 17 $GLOBALS['__l10n']['Optional email address'] = 'Adresse Email facultative'; 18 19 #inc/lib.ofc.twitterlogin.php:3220 $GLOBALS['__l10n']['Failed to register plugin'] = 'Impossible d\'enregistrer le plugin';21 22 #inc/lib.ofc.twitterlogin.php:7223 $GLOBALS['__l10n']['To use this option you must install plugin called "TaC".'] = 'Pour utiliser cette option vous devez installer l\'extnesion nommé "TaC".';24 25 #inc/lib.ofc.twitterlogin.php:7626 $GLOBALS['__l10n']['To use this option you must register it into the plugin "TaC".'] = 'Pour utiliser cette option vous devez enregistrer cette extension dans l\'extension "TaC".';27 28 #inc/lib.ofc.twitterlogin.php:7729 $GLOBALS['__l10n']['Register extension'] = 'Enregistrer l\'extension';30 31 #inc/lib.ofc.twitterlogin.php:8132 $GLOBALS['__l10n']['Extension registered into the plugin "TaC".'] = 'Extension enregistrée dans le plugin "TaC".';33 34 #inc/lib.ofc.twitterlogin.php:8435 $GLOBALS['__l10n']['Enable Twitter login on comments'] = 'Autoriser l\'identification depuis Twitter sur les commentaires';36 37 #inc/lib.ofc.twitterlogin.php:17638 $GLOBALS['__l10n']['Logged in as %s'] = 'Connecté en tant que %s';39 40 #inc/lib.ofc.twitterlogin.php:17841 $GLOBALS['__l10n']['Disconnect'] = 'Se déconnecter';42 18 43 19 #index.php:64 … … 60 36 61 37 #index.php:90 62 $GLOBALS['__l10n']['Additionnal style sheet:'] = 'Feuille de style additionnelle ';38 $GLOBALS['__l10n']['Additionnal style sheet:'] = 'Feuille de style additionnelle :'; 63 39 64 40 ?> -
plugins/optionsForComment/locales/fr/main.po
r2676 r2914 1 1 # Language: Français 2 # Module: optionsForComment - 0. 1-alpha13 # Date: 201 0-09-25 13:30:192 # Module: optionsForComment - 0.2 3 # Date: 2011-01-29 23:18:33 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: optionsForComment 0. 1-alpha1\n"9 "Project-Id-Version: optionsForComment 0.2\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 201 0-09-25T13:30:19+00:00\n"11 "PO-Revision-Date: 2011-01-29T23:18:33+00:00\n" 12 12 "Last-Translator: JC Denis\n" 13 13 "Language-Team: \n" … … 15 15 "Content-Transfer-Encoding: 8bit\n" 16 16 17 #: inc/lib.ofc.anonymouscomment.php: 2117 #: inc/lib.ofc.anonymouscomment.php:35 18 18 msgid "Allow anonnymous comments" 19 19 msgstr "Autoriser les commentaires anonymes" 20 20 21 #: inc/lib.ofc.anonymouscomment.php: 5021 #: inc/lib.ofc.anonymouscomment.php:64 22 22 msgid "Somebody" 23 23 msgstr "Quelqu'un" 24 24 25 #: inc/lib.ofc.anonymouscomment.php: 8425 #: inc/lib.ofc.anonymouscomment.php:98 26 26 msgid "Anonymous comment" 27 27 msgstr "Commentaire anonyme" 28 28 29 #: inc/lib.ofc.emailoptionnel.php: 1229 #: inc/lib.ofc.emailoptionnel.php:26 30 30 msgid "Optional email address" 31 31 msgstr "Adresse Email facultative" 32 33 #: inc/lib.ofc.twitterlogin.php:3234 msgid "Failed to register plugin"35 msgstr "Impossible d'enregistrer le plugin"36 37 #: inc/lib.ofc.twitterlogin.php:7238 msgid "To use this option you must install plugin called \"TaC\"."39 msgstr "Pour utiliser cette option vous devez installer l'extnesion nommé \"TaC\"."40 41 #: inc/lib.ofc.twitterlogin.php:7642 msgid "To use this option you must register it into the plugin \"TaC\"."43 msgstr "Pour utiliser cette option vous devez enregistrer cette extension dans l'extension \"TaC\"."44 45 #: inc/lib.ofc.twitterlogin.php:7746 msgid "Register extension"47 msgstr "Enregistrer l'extension"48 49 #: inc/lib.ofc.twitterlogin.php:8150 msgid "Extension registered into the plugin \"TaC\"."51 msgstr "Extension enregistrée dans le plugin \"TaC\"."52 53 #: inc/lib.ofc.twitterlogin.php:8454 msgid "Enable Twitter login on comments"55 msgstr "Autoriser l'identification depuis Twitter sur les commentaires"56 57 #: inc/lib.ofc.twitterlogin.php:17658 msgid "Logged in as %s"59 msgstr "Connecté en tant que %s"60 61 #: inc/lib.ofc.twitterlogin.php:17862 msgid "Disconnect"63 msgstr "Se déconnecter"64 32 65 33 #: index.php:64 … … 89 57 #: index.php:90 90 58 msgid "Additionnal style sheet:" 91 msgstr "Feuille de style additionnelle "59 msgstr "Feuille de style additionnelle :" 92 60 -
plugins/optionsForComment/release.txt
r2676 r2914 1 0.2 20110130 2 * Removed Twitter feature (this this to another plugin to do that) 3 * Added behaviors to open plugins (see exemple in plugin dcLibTwitter) 4 1 5 0.1 20100927 2 6 * First lab release
Note: See TracChangeset
for help on using the changeset viewer.