Changeset 3033
- Timestamp:
- 05/14/11 21:27:03 (12 years ago)
- Location:
- plugins/atReply
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/atReply/_admin.php
r2908 r3033 91 91 '<p><strong>'.__('@ Reply:').'</strong> '. 92 92 '<input type="submit" name="add" value="'. 93 __(' reply to this comment').'" /></p>'.93 __('Reply to this comment').'" /></p>'. 94 94 '</form>' 95 95 # /from /dotclear/admin/post.php, modified -
plugins/atReply/_define.php
r2908 r3033 32 32 /* Description*/ 'Easily reply to comments', 33 33 /* Author */ 'Moe (http://gniark.net/) append extension by buns.fr', 34 /* Version */ '1.6. 1',34 /* Version */ '1.6.2', 35 35 /* Permissions */ 'usage,contentadmin' 36 36 ); -
plugins/atReply/_public.php
r2459 r3033 31 31 $core->addBehavior('templateAfterValue',array('AtReplyTpl','templateAfterValue')); 32 32 33 if ($core->blog->settings->atreply_active) 33 $core->blog->settings->addNamespace('atreply'); 34 35 if ($core->blog->settings->atreply->atreply_active) 34 36 { 35 37 $core->addBehavior('publicHeadContent',array('AtReplyTpl','publicHeadContent')); … … 59 61 public static function publicHeadContent($core) 60 62 { 61 $set = $core->blog->settings ;63 $set = $core->blog->settings->atreply; 62 64 63 65 $QmarkURL = $core->blog->getQmarkURL(); … … 67 69 && (file_exists($core->blog->public_path.'/atReply/reply.png'))) 68 70 { 69 $image_url = $set->public_url.'/atReply/reply.png'; 71 $image_url = $core->blog->settings->system->public_url. 72 '/atReply/reply.png'; 70 73 } 71 74 else … … 76 79 77 80 $entry_url = ''; 81 78 82 # simple and effective test on entry, from dcTemplate::SysIf()) 79 83 if (($GLOBALS['_ctx']->posts !== null) … … 84 88 } 85 89 86 $title = (($set->atreply_display_title) ? ' true' : 'false');90 $title = (($set->atreply_display_title) ? '1' : '0'); 87 91 88 92 # Javascript … … 92 96 'var atReplyEntryURL = \''. 93 97 html::escapeHTML($entry_url).'\';'."\n". 94 'var atReplyDisplayTitle = new Boolean('.$title.');'."\n".98 'var atReplyDisplayTitle = '.$title.';'."\n". 95 99 'var atReplyTitle = \''. 96 html::escapeHTML(__('Reply to this comment ')).'\';'."\n".100 html::escapeHTML(__('Reply to this comment by {author}')).'\';'."\n". 97 101 'var atReplyImage = \''.$image_url.'\';'."\n". 98 102 'var atReply_switch_text = \''. -
plugins/atReply/index.php
r2908 r3033 37 37 } 38 38 39 $settings =& $core->blog->settings; 39 $core->blog->settings->addNameSpace('atReply'); 40 41 $settings =& $core->blog->settings->atreply; 40 42 41 43 try … … 47 49 $color = trim($_POST['atreply_color']); 48 50 49 $settings->setNameSpace('atreply');50 51 $settings->put('atreply_active',!empty($_POST['atreply_active']), 51 52 'boolean','Enable @ Reply'); … … 68 69 !empty($_POST['atreply_subscribe_replied_comment']), 69 70 'boolean','Subscribe replied comments to "Subscribe to comments"'); 70 71 # inspired by lightbox/admin.php72 $settings->setNameSpace('system');73 71 74 72 # if there is a color … … 155 153 $image_url = $core->blog->getQmarkURL().'pf=atReply/img/reply.png'; 156 154 155 $system = $core->blog->settings->system; 156 157 157 # personalized image 158 if (strlen($ core->blog->settings->atreply_color) > 1)159 { 160 $personalized_image = $ core->blog->settings->public_url.158 if (strlen($settings->atreply_color) > 1) 159 { 160 $personalized_image = $system->public_url. 161 161 '/atReply/reply.png'; 162 162 163 if (file_exists(path::fullFromRoot($s ettings->public_path,163 if (file_exists(path::fullFromRoot($system->public_path, 164 164 DC_ROOT).'/atReply/reply.png')) 165 165 { 166 166 $image_url = $personalized_image; 167 167 168 if (substr($s ettings->public_url,0,1) == '/')168 if (substr($system->public_url,0,1) == '/') 169 169 { 170 170 # public_path is located at the root of the website 171 171 $image_url = $core->blog->host.'/'.$personalized_image; 172 172 } 173 elseif (substr($s ettings->public_url,0,4) == 'http')173 elseif (substr($system->public_url,0,4) == 'http') 174 174 { 175 175 $image_url = $personalized_image; … … 238 238 <label class="classic" for="atreply_subscribe_replied_comment"> 239 239 <?php printf(__('When clicking on the "%s" button in a comment list of the administration, subscribe to comments the email address of the replied comment with the %s plugin'), 240 __(' reply to this comment'),__('Subscribe to comments')); ?>240 __('Reply to this comment'),__('Subscribe to comments')); ?> 241 241 </label> 242 242 </p> -
plugins/atReply/js/atReply.js
r2277 r3033 15 15 /* duplicate the link to create an element on-the-fly, 16 16 because the element with its event can't be used twice */ 17 18 var commentAuthor = $(this).parent().children('.commentAuthor'); 19 var id = commentAuthor.attr('id').replace('atreply_','c'); 20 var name = commentAuthor.attr('title'); 21 17 22 var link = $(atReplyLink).click( function () { 18 var commentAuthor = $(this).parent().children('.commentAuthor');19 var id = commentAuthor.attr('id').replace('atreply_','c');20 var name = commentAuthor.attr('title');21 23 $('#c_content').val($('#c_content').val()+ 22 24 '@['+name+'|'+atReplyEntryURL+'#'+id+'] : '); … … 32 34 $(this).parent().append(link); 33 35 34 if (atReplyDisplayTitle != true) {return;} 35 /* add an hover effect */ 36 $(this).parent().hover( 37 function () { 38 $(this).find('.at_reply_title').show(); 39 }, 40 function () { 41 $(this).find('.at_reply_title').hide(); 42 }); 36 var titleWithAuthor = 37 $(this).parent().find('a:last').attr('title').replace("{author}",name); 38 39 $(this).parent().find('a').attr('title', titleWithAuthor); 40 $(this).parent().find('img').attr('alt', titleWithAuthor); 41 $(this).parent().find('.at_reply_title').html(titleWithAuthor); 42 43 if (atReplyDisplayTitle) 44 { 45 /* add an hover effect */ 46 $(this).parent().hover( 47 function () { 48 $(this).find('.at_reply_title').show(); 49 }, 50 function () { 51 $(this).find('.at_reply_title').hide(); 52 }); 53 } 43 54 }); 44 55 } -
plugins/atReply/locales/fr/admin.lang.php
r2746 r3033 1 1 <?php 2 2 // Language: Français 3 // Module: atReply - 1.6 4 // Date: 201 0-11-12 00:32:593 // Module: atReply - 1.6.2 4 // Date: 2011-05-14 19:23:45 5 5 // Translated with dcTranslater - 1.5 6 6 7 #_admin.php:6 28 #_admin.php:9 07 #_admin.php:63 8 #_admin.php:91 9 9 $GLOBALS['__l10n']['@ Reply:'] = '@ Reply :'; 10 10 11 #_admin.php:6 411 #_admin.php:65 12 12 $GLOBALS['__l10n']['Please edit and publish it.'] = 'Veuillez l\'éditer et le publier.'; 13 13 14 #index.php:119 14 #_admin.php:93 15 #index.php:240 16 $GLOBALS['__l10n']['Reply to this comment'] = 'Répondre à ce commentaire'; 17 18 #index.php:126 15 19 $GLOBALS['__l10n']['%s is not writable'] = '%s n\'est pas accessible en écriture'; 16 20 17 #index.php:1 4321 #index.php:150 18 22 $GLOBALS['__l10n']['Configuration successfully updated.'] = 'Configuration mise à jour avec succès.'; 19 23 20 #index.php: 19324 #index.php:202 21 25 $GLOBALS['__l10n']['Add arrows to easily reply to comments on the blog'] = 'Ajouter des flèches pour répondre facilement aux commentaires sur le blog'; 22 26 23 #index.php: 19927 #index.php:208 24 28 $GLOBALS['__l10n']['Activating this plugin also enforces wiki syntax in blog comments.'] = 'L\'activation de cette extension force la syntaxe wiki dans les commentaires du blog.'; 25 29 26 #index.php:2 0530 #index.php:214 27 31 $GLOBALS['__l10n']['Display a text when the cursor is hovering the arrow'] = 'Afficher un texte quand le curseur survole la flèche'; 28 32 29 #index.php:2 1230 #index.php:2 2433 #index.php:221 34 #index.php:233 31 35 $GLOBALS['__l10n']['Append replies to appropriate comments'] = 'Attacher les réponses aux commentaires afférents'; 32 36 33 #index.php:2 1937 #index.php:228 34 38 $GLOBALS['__l10n']['Display a switch to toggle threading'] = 'Afficher un bouton pour basculer l\'affichage en fil de commentaires'; 35 39 36 #index.php:2 2340 #index.php:232 37 41 $GLOBALS['__l10n']['Requires %s.'] = 'Nécessite %s.'; 38 42 39 #index.php:23 043 #index.php:239 40 44 $GLOBALS['__l10n']['When clicking on the "%s" button in a comment list of the administration, subscribe to comments the email address of the replied comment with the %s plugin'] = 'Lors du clic sur le bouton "%s" dans une liste de commentaires de l\'administration, abonner aux commentaires l\'adresse email du commentaire répondu avec l\'extension %s'; 41 45 42 #index.php:2 3546 #index.php:244 43 47 $GLOBALS['__l10n']['Requires the %s plugin.'] = 'Ceci nécessite l\'extension %s.'; 44 48 45 #index.php:2 4149 #index.php:250 46 50 $GLOBALS['__l10n']['Create an image with another color'] = 'Créer une image avec une autre couleur'; 47 51 48 #index.php:2 4852 #index.php:257 49 53 $GLOBALS['__l10n']['The default image will be used.'] = 'L\'image par défaut sera utilisée.'; 50 54 51 #index.php:2 5155 #index.php:260 52 56 $GLOBALS['__l10n']['Preview:'] = 'Aperçu :'; 53 57 54 #index.php:2 5558 #index.php:264 55 59 $GLOBALS['__l10n']['Save configuration'] = 'Enregistrer la configuration'; 56 60 -
plugins/atReply/locales/fr/admin.po
r2746 r3033 1 1 # Language: Français 2 # Module: atReply - 1.6 3 # Date: 201 0-11-12 00:32:592 # Module: atReply - 1.6.2 3 # Date: 2011-05-14 19:23:45 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: atReply 1.6 \n"9 "Project-Id-Version: atReply 1.6.2\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 201 0-11-12T00:32:59+00:00\n"11 "PO-Revision-Date: 2011-05-14T19:23:45+00:00\n" 12 12 "Last-Translator: Ubuntu\n" 13 13 "Language-Team: \n" … … 15 15 "Content-Transfer-Encoding: 8bit\n" 16 16 17 #: _admin.php:6 218 #: _admin.php:9 017 #: _admin.php:63 18 #: _admin.php:91 19 19 msgid "@ Reply:" 20 20 msgstr "@ Reply :" 21 21 22 #: _admin.php:6 422 #: _admin.php:65 23 23 msgid "Please edit and publish it." 24 24 msgstr "Veuillez l'éditer et le publier." 25 25 26 #: index.php:119 26 #: _admin.php:93 27 #: index.php:240 28 msgid "Reply to this comment" 29 msgstr "Répondre à ce commentaire" 30 31 #: index.php:126 27 32 msgid "%s is not writable" 28 33 msgstr "%s n'est pas accessible en écriture" 29 34 30 #: index.php:1 4335 #: index.php:150 31 36 msgid "Configuration successfully updated." 32 37 msgstr "Configuration mise à jour avec succès." 33 38 34 #: index.php: 19339 #: index.php:202 35 40 msgid "Add arrows to easily reply to comments on the blog" 36 41 msgstr "Ajouter des flèches pour répondre facilement aux commentaires sur le blog" 37 42 38 #: index.php: 19943 #: index.php:208 39 44 msgid "Activating this plugin also enforces wiki syntax in blog comments." 40 45 msgstr "L'activation de cette extension force la syntaxe wiki dans les commentaires du blog." 41 46 42 #: index.php:2 0547 #: index.php:214 43 48 msgid "Display a text when the cursor is hovering the arrow" 44 49 msgstr "Afficher un texte quand le curseur survole la flèche" 45 50 46 #: index.php:2 1247 #: index.php:2 2451 #: index.php:221 52 #: index.php:233 48 53 msgid "Append replies to appropriate comments" 49 54 msgstr "Attacher les réponses aux commentaires afférents" 50 55 51 #: index.php:2 1956 #: index.php:228 52 57 msgid "Display a switch to toggle threading" 53 58 msgstr "Afficher un bouton pour basculer l'affichage en fil de commentaires" 54 59 55 #: index.php:2 2360 #: index.php:232 56 61 msgid "Requires %s." 57 62 msgstr "Nécessite %s." 58 63 59 #: index.php:23 064 #: index.php:239 60 65 msgid "When clicking on the \"%s\" button in a comment list of the administration, subscribe to comments the email address of the replied comment with the %s plugin" 61 66 msgstr "Lors du clic sur le bouton \"%s\" dans une liste de commentaires de l'administration, abonner aux commentaires l'adresse email du commentaire répondu avec l'extension %s" 62 67 63 #: index.php:2 3568 #: index.php:244 64 69 msgid "Requires the %s plugin." 65 70 msgstr "Ceci nécessite l'extension %s." 66 71 67 #: index.php:2 4172 #: index.php:250 68 73 msgid "Create an image with another color" 69 74 msgstr "Créer une image avec une autre couleur" 70 75 71 #: index.php:2 4876 #: index.php:257 72 77 msgid "The default image will be used." 73 78 msgstr "L'image par défaut sera utilisée." 74 79 75 #: index.php:2 5180 #: index.php:260 76 81 msgid "Preview:" 77 82 msgstr "Aperçu :" 78 83 79 #: index.php:2 5584 #: index.php:264 80 85 msgid "Save configuration" 81 86 msgstr "Enregistrer la configuration" -
plugins/atReply/locales/fr/main.lang.php
r2746 r3033 1 1 <?php 2 2 // Language: Français 3 // Module: atReply - 1.6 4 // Date: 201 0-11-12 00:32:593 // Module: atReply - 1.6.2 4 // Date: 2011-05-14 19:23:45 5 5 // Translated with dcTranslater - 1.5 6 6 7 #_admin.php:4 08 #index.php:1 887 #_admin.php:41 8 #index.php:197 9 9 $GLOBALS['__l10n']['@ Reply'] = '@ Reply'; 10 10 11 #_admin.php:7 411 #_admin.php:75 12 12 $GLOBALS['__l10n']['@%s:'] = '@%s :'; 13 13 14 #_admin.php:92 15 #index.php:231 16 $GLOBALS['__l10n']['reply to this comment'] = 'répondre à ce commentaire'; 14 #_public.php:100 15 $GLOBALS['__l10n']['Reply to this comment by {author}'] = 'Répondre à ce commentaire par {author}'; 17 16 18 #_public.php:96 19 $GLOBALS['__l10n']['Reply to this comment'] = 'Répondre à ce commentaire'; 20 21 #_public.php:99 17 #_public.php:103 22 18 $GLOBALS['__l10n']['Threaded comments'] = 'Fil de discussion'; 23 19 -
plugins/atReply/locales/fr/main.po
r2746 r3033 1 1 # Language: Français 2 # Module: atReply - 1.6 3 # Date: 201 0-11-12 00:32:592 # Module: atReply - 1.6.2 3 # Date: 2011-05-14 19:23:45 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: atReply 1.6 \n"9 "Project-Id-Version: atReply 1.6.2\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 201 0-11-12T00:32:59+00:00\n"11 "PO-Revision-Date: 2011-05-14T19:23:45+00:00\n" 12 12 "Last-Translator: Ubuntu\n" 13 13 "Language-Team: \n" … … 15 15 "Content-Transfer-Encoding: 8bit\n" 16 16 17 #: _admin.php:4 018 #: index.php:1 8817 #: _admin.php:41 18 #: index.php:197 19 19 msgid "@ Reply" 20 20 msgstr "@ Reply" 21 21 22 #: _admin.php:7 422 #: _admin.php:75 23 23 msgid "@%s:" 24 24 msgstr "@%s :" 25 25 26 #: _admin.php:92 27 #: index.php:231 28 msgid "reply to this comment" 29 msgstr "répondre à ce commentaire" 26 #: _public.php:100 27 msgid "Reply to this comment by {author}" 28 msgstr "Répondre à ce commentaire par {author}" 30 29 31 #: _public.php:96 32 msgid "Reply to this comment" 33 msgstr "Répondre à ce commentaire" 34 35 #: _public.php:99 30 #: _public.php:103 36 31 msgid "Threaded comments" 37 32 msgstr "Fil de discussion"
Note: See TracChangeset
for help on using the changeset viewer.