Changeset 827
- Timestamp:
- 02/26/09 23:41:12 (15 years ago)
- Location:
- plugins/atReply
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/atReply/_define.php
r658 r827 30 30 /* Description*/ 'Easily reply to comments', 31 31 /* Author */ 'Moe (http://gniark.net/)', 32 /* Version */ '1. 2',32 /* Version */ '1.3', 33 33 /* Permissions */ 'admin' 34 34 ); -
plugins/atReply/_public.php
r658 r827 77 77 } 78 78 79 $title = (($settings->atreply_display_title) ? 'true' : 'false'); 80 79 81 # Javascript variables 80 82 echo( 81 83 '<script type="text/javascript">'. 82 84 '//<![CDATA['."\n". 85 'var atReplyDisplayTitle = new Boolean('.$title.');'."\n". 83 86 'var atReplyTitle = \''. 84 87 html::escapeHTML(__('Reply to this comment')).'\';'. 85 88 'var atReplyImage = \''.$image_url.'\';'."\n". 89 'var atReplyLink = \' <a href="#" title="\'+atReplyTitle+\'">\'+'. 90 '\'<img src="\'+atReplyImage+\'" alt="\'+atReplyTitle+\'" /> \'+'. 91 '\'<span class="at_reply_title" style="display:none;">\'+'. 92 'atReplyTitle+\'</span></a>\';'."\n". 86 93 '//]]>'. 87 94 '</script>'. -
plugins/atReply/atReply.js
r658 r827 1 1 /* Inspired by http://iyus.info/at-reply-petit-plugin-wordpress-inspire-par-twitter/ */ 2 2 $(function() { 3 /* create link */ 4 var atReplyLink = ' <a href="#" title="'+atReplyTitle+'">'+ 5 '<img src="'+atReplyImage+'" alt="'+atReplyTitle+'" /> '+ 6 '<span class="at_reply_title" style="display:none;">'+ 7 atReplyTitle+'</span></a>'; 3 /*$('#comments dd').each(function() { 4 var pattern = new RegExp('^(@\b)$',"g"); 5 if (pattern.test($(this).text())) { 6 $(this).css('background-color','Red'); 7 } 8 });*/ 8 9 9 10 $('span.commentAuthor').each(function() { … … 22 23 return false; 23 24 }); 24 /* add the link and an hover event*/ 25 $(this).parent().append(link).hover( 25 26 /* add the link */ 27 $(this).parent().append(link); 28 29 if (atReplyDisplayTitle != true) {return;} 30 /* add an hover effect */ 31 $(this).parent().hover( 26 32 function () { 27 33 $(this).find('.at_reply_title').show(); -
plugins/atReply/index.php
r658 r827 39 39 $settings->put('atreply_active',!empty($_POST['atreply_active']), 40 40 'boolean','Enable @ Reply'); 41 $settings->put('atreply_display_title',!empty($_POST['atreply_display_title']), 42 'boolean','Display a text when the cursor is hovering the arrow'); 41 43 $settings->put('atreply_color',$color, 42 44 'string','@ Reply arrow\'s color'); … … 138 140 '/atReply/reply.png'; 139 141 if (file_exists(path::fullFromRoot($settings->public_path, 140 142 DC_ROOT).'/atReply/reply.png')) 141 143 { 142 144 $image_url = $personalized_image; 145 146 if (substr($settings->public_url,0,1) == '/') 147 { 148 # public_path is located at the root of the website 149 $parsed_url = @parse_url($core->blog->url); 150 151 $image_url = $parsed_url['scheme'].'://'.$parsed_url['host']. 152 $personalized_image; 153 154 unset($parsed_url); 155 } else { 156 $image_url = $core->blog->url.$personalized_image; 157 } 143 158 } 144 159 } … … 163 178 <p><?php echo(form::checkbox('atreply_active',1, 164 179 $settings->atreply_active)); ?> 165 <label class="classic" for="atreply_active">166 <?php printf(__('Enable %s'),__('@ Reply')); ?>167 </label>180 <label class="classic" for="atreply_active"> 181 <?php echo(__('Add arrows to easily reply to comments on the blog')); ?> 182 </label> 168 183 </p> 169 184 <p class="form-note"> 170 <?php printf(__('%s add arrows to easily reply to comments on the blog.'), 171 __('@ Reply')); 185 <?php 172 186 # from commentsWikibar/index.php 173 187 echo(' '.__('Activating this plugin also enforces wiki syntax in blog comments.')); ?> 174 188 </p> 189 190 <p><?php echo(form::checkbox('atreply_display_title',1, 191 $settings->atreply_display_title)); ?> 192 <label class="classic" for="atreply_display_title"> 193 <?php echo(__('Display a text when the cursor is hovering the arrow')); ?> 194 </label> 195 </p> 175 196 176 197 <p> 177 <label class="classic" for="atreply_color">178 <?php echo(__('Create an image with another color')); ?>179 </label>198 <label class="classic" for="atreply_color"> 199 <?php echo(__('Create an image with another color')); ?> 200 </label> 180 201 <?php echo(form::field('atreply_color',7,7, 181 202 $settings->atreply_color,'colorpicker')); ?> -
plugins/atReply/locales/fr/main.po
r658 r827 3 3 "Project-Id-Version: @ Reply\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009-0 1-05 23:58+0100\n"6 "PO-Revision-Date: 2009-0 1-05 23:59+0100\n"5 "POT-Creation-Date: 2009-02-26 23:35+0100\n" 6 "PO-Revision-Date: 2009-02-26 23:35+0100\n" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: _public.php:8 419 #: _public.php:87 20 20 msgid "Reply to this comment" 21 21 msgstr "Répondre à ce commentaire" … … 23 23 #: _admin.php:33 24 24 #: _admin.php:67 25 #: index.php:161 26 #: index.php:166 27 #: index.php:171 25 #: index.php:176 28 26 msgid "@ Reply" 29 27 msgstr "@ Reply" … … 33 31 msgstr "répondre à ce commentaire" 34 32 35 #: index.php:10 533 #: index.php:107 36 34 #, php-format 37 35 msgid "%s is not writable" 38 36 msgstr "%s n'est pas accessible en écriture" 39 37 40 #: index.php:1 2938 #: index.php:131 41 39 msgid "Configuration successfully updated." 42 40 msgstr "Configuration mise à jour avec succès." 43 41 44 #: index.php:166 45 #, php-format 46 msgid "Enable %s" 47 msgstr "Activer %s" 48 49 #: index.php:170 50 #, php-format 51 msgid "%s add arrows to easily reply to comments on the blog." 52 msgstr "%s ajoute des flèches pour répondre facilement aux commentaires sur le blog." 42 #: index.php:181 43 msgid "Add arrows to easily reply to comments on the blog" 44 msgstr "Ajouter des flèches pour répondre facilement aux commentaires sur le blog" 53 45 54 46 # from commentsWikibar plugin 55 #: index.php:1 7347 #: index.php:187 56 48 msgid "Activating this plugin also enforces wiki syntax in blog comments." 57 49 msgstr "L'activation de cette extension force la syntaxe wiki dans les commentaires du blog." 58 50 59 #: index.php:178 51 #: index.php:193 52 msgid "Display a text when the cursor is hovering the arrow" 53 msgstr "Afficher un texte quand le curseur survole la flèche" 54 55 #: index.php:199 60 56 msgid "Create an image with another color" 61 57 msgstr "Créer une image avec une autre couleur" 62 58 63 #: index.php: 18459 #: index.php:205 64 60 msgid "Leave empty to cancel this feature." 65 61 msgstr "" 66 62 67 #: index.php: 18563 #: index.php:206 68 64 msgid "The default image will be used." 69 65 msgstr "L'image par défaut sera utilisée." 70 66 71 #: index.php: 18867 #: index.php:209 72 68 msgid "Preview :" 73 69 msgstr "Aperçu :" 74 70 75 #: index.php: 19271 #: index.php:213 76 72 msgid "Save configuration" 77 73 msgstr "Enregistrer la configuration" 78 74 75 #~ msgid "Enable %s" 76 #~ msgstr "Activer %s" 77
Note: See TracChangeset
for help on using the changeset viewer.