Changeset 856720
- Timestamp:
- 02/12/2014 11:00:56 PM (12 years ago)
- Location:
- decode-reply-tool
- Files:
-
- 2 added
- 6 edited
-
tags/1.1.2/languages/decode-reply-tool-de_DE.mo (added)
-
tags/1.1.2/languages/decode-reply-tool-de_DE.po (added)
-
tags/1.1.2/languages/decode-reply-tool-fr_FR.mo (modified) (previous)
-
tags/1.1.2/languages/decode-reply-tool-fr_FR.po (modified) (2 diffs)
-
trunk/decode-reply-tool-script.js (modified) (1 diff)
-
trunk/decode-reply-tool-style.css (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/reply-tool-loader.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
decode-reply-tool/tags/1.1.2/languages/decode-reply-tool-fr_FR.po
r763359 r856720 3 3 "Project-Id-Version: Decode Reply Tool v1.1.2\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: \n"6 "PO-Revision-Date: 2013-0 8-26 10:23:09+0000\n"7 "Last-Translator: Stéphane Bataillon <[email protected]>\n"5 "POT-Creation-Date: 2013-08-24\n" 6 "PO-Revision-Date: 2013-09-01 13:27-0600\n" 7 "Last-Translator: \n" 8 8 "Language-Team: \n" 9 9 "MIME-Version: 1.0\n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=2; plural=n>1;\n" 13 "X-Generator: CSL v1.x\n" 14 "X-Poedit-Language: French\n" 15 "X-Poedit-Country: FRANCE\n" 13 "X-Generator: Poedit 1.5.7\n" 16 14 "X-Poedit-SourceCharset: utf-8\n" 17 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n" 15 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" 16 "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n" 18 17 "X-Poedit-Basepath: ../\n" 19 "X-Poedit-Bookmarks: \n" 18 "X-Textdomain-Support: yes\n" 19 "Language: fr_FR\n" 20 20 "X-Poedit-SearchPath-0: .\n" 21 "X-Textdomain-Support: yes"22 21 22 # @ decode-reply-tool 23 23 #: reply-tool-insert.php:3 24 #@ decode-reply-tool25 24 msgid "With Twitter" 26 25 msgstr "Avec Twitter" 27 26 27 # @ decode-reply-tool 28 28 #: reply-tool-insert.php:5 29 #@ decode-reply-tool30 29 msgid "Reply" 31 30 msgstr "Répondre" 32 31 32 # @ decode-reply-tool 33 33 #: reply-tool-insert.php:7 34 #@ decode-reply-tool35 34 msgid "With ADN" 36 35 msgstr "Avec ADN" 37 36 37 # @ decode-reply-tool 38 38 #: reply-tool-loader.php:28 39 #@ decode-reply-tool40 39 msgid "Decode Reply Tool" 41 40 msgstr "Decode Reply Tool" 42 41 42 # @ decode-reply-tool 43 43 #: reply-tool-loader.php:41 44 #@ decode-reply-tool45 44 msgid "Enable/Disable" 46 45 msgstr "Activer/Désactiver" 47 46 47 # @ decode-reply-tool 48 48 #: reply-tool-loader.php:42 49 #@ decode-reply-tool50 49 msgid "Display" 51 50 msgstr "Position" 52 51 52 # @ decode-reply-tool 53 53 #: reply-tool-loader.php:43 54 #@ decode-reply-tool55 54 msgid "Usernames" 56 55 msgstr "Noms d'utilisateurs" 57 56 57 # @ decode-reply-tool 58 58 #: reply-tool-loader.php:46 59 #@ decode-reply-tool60 59 msgid "Enable Reply Tool" 61 60 msgstr "Activer Reply Tool" 62 61 62 # @ decode-reply-tool 63 63 #: reply-tool-loader.php:47 64 #@ decode-reply-tool65 64 msgid "Display Above Posts" 66 65 msgstr "Placer avant les articles" 67 66 67 # @ decode-reply-tool 68 68 #: reply-tool-loader.php:48 69 #@ decode-reply-tool70 69 msgid "Display Below Posts" 71 70 msgstr "Placer après les articles" 72 71 72 # @ decode-reply-tool 73 73 #: reply-tool-loader.php:49 74 #@ decode-reply-tool75 74 msgid "Twitter Username" 76 75 msgstr "Nom d'utilisateur Twitter" 77 76 77 # @ decode-reply-tool 78 78 #: reply-tool-loader.php:50 79 #@ decode-reply-tool80 79 msgid "App.net Username" 81 80 msgstr "Nom d'utilisateur App.net" 82 81 82 # @ decode-reply-tool 83 83 #: reply-tool-loader.php:54 84 #@ decode-reply-tool85 84 msgid "Do you want to enable or disable the reply tool on your site?" 86 85 msgstr "Voulez-vous activer ou désactiver l'outil de réponse sur votre site ?" 87 86 87 # @ decode-reply-tool 88 88 #: reply-tool-loader.php:58 89 #@ decode-reply-tool90 89 msgid "Choose how the reply tool is displayed on your site:" 91 90 msgstr "Choisissez où placer l'outil de réponse sur votre site:" 92 91 92 # @ decode-reply-tool 93 93 #: reply-tool-loader.php:62 94 #@ decode-reply-tool95 94 msgid "Enter the usernames you want to be @mentioned to for replies:" 96 95 msgstr "Entrez les noms d'utilisateurs qui apparaitront dans les réponses:" 97 96 97 # @ decode-reply-tool 98 98 #: reply-tool-loader.php:95 99 #@ decode-reply-tool100 99 msgid "Decode Reply Tool Options" 101 100 msgstr "Options de Decode Reply Tool" 102 -
decode-reply-tool/trunk/decode-reply-tool-script.js
r746984 r856720 1 jQuery(document).ready(function($){ 2 $('.replytrigger').click(function(){ 3 $('.triggered').removeClass('triggered'); 4 $(this).closest('.decode-reply-tool-plugin').addClass('triggered'); 5 }); 1 [].forEach.call( document.querySelectorAll(".replytrigger"), function(element) { 2 element.addEventListener('click', function() { 3 4 if ( document.querySelector('.triggered') ) { 5 document.querySelector('.triggered').classList.remove('triggered'); 6 } 7 8 element.parentElement.classList.add('triggered'); 9 10 }, false); 6 11 }); -
decode-reply-tool/trunk/decode-reply-tool-style.css
r761909 r856720 47 47 } 48 48 49 .decode-reply-tool-plugin.replylink, .decode-reply-tool-plugin .replytrigger {49 body .decode-reply-tool-plugin a.replylink, .decode-reply-tool-plugin .replytrigger { 50 50 -webkit-transition: color 0.25s ease-out, opacity 0.25s ease-in-out, padding 0.35s ease-out; 51 51 -moz-transition: color 0.25s ease-out, opacity 0.25s ease-in-out, padding 0.35s ease-out; … … 68 68 font-size: 0.5em; 69 69 } 70 71 @media only print { 72 .decode-reply-tool-plugin { 73 display: none; 74 } 75 } -
decode-reply-tool/trunk/readme.txt
r763359 r856720 5 5 Requires at least: 2.7 6 6 Tested up to: 3.6 7 Stable tag: 1.1. 38 License: GPLv 2or later9 License URI: http://www.gnu.org/licenses/gpl- 2.0.html7 Stable tag: 1.1.4 8 License: GPLv3 or later 9 License URI: http://www.gnu.org/licenses/gpl-3.0-standalone.html 10 10 11 11 This plugin allows your readership to reply to your posts via Twitter and App.net using a beautiful, simple reply tool. … … 40 40 == Changelog == 41 41 42 = 1.1.4 = 43 * Reply Tool now doesn't need jQuery 44 * Added German translation 45 42 46 = 1.1.3 = 43 47 * Added French translation, thanks to Stéphane Bataillon -
decode-reply-tool/trunk/reply-tool-loader.php
r763359 r856720 4 4 Plugin URI: http://ScottHSmith.com/projects/decode 5 5 Description: The perfect compliment to the Decode theme, this plugin allows your readership to reply to your posts via Twitter and App.net using a beautiful, simple reply tool placed on above or below your posts. 6 Version: 1.1. 36 Version: 1.1.4 7 7 Author: Scott Smith 8 8 Author URI: http://ScottHSmith.com/ … … 24 24 */ 25 25 26 add_action( 'admin_menu', 'decode_reply_tool_options' );27 26 function decode_reply_tool_options() { 28 27 add_theme_page( __( 'Decode Reply Tool', 'decode-reply-tool' ), __( 'Decode Reply Tool', 'decode-reply-tool' ), 'manage_options', 'decode_reply_tool', 'decode_reply_tool_options_page' ); 29 28 } 29 add_action( 'admin_menu', 'decode_reply_tool_options' ); 30 30 31 31 32 add_action( 'admin_init', 'decode_reply_tool_init' );33 32 function decode_reply_tool_init() { 34 33 register_setting( 'decode-reply-tool-settings-group', 'enable-reply-tool' ); … … 50 49 add_settings_field( 'adn-username', __( 'App.net Username', 'decode-reply-tool' ), 'decode_reply_tool_adn_username_callback', 'decode_reply_tool', 'usernames-section' ); 51 50 } 51 add_action( 'admin_init', 'decode_reply_tool_init' ); 52 52 53 53 function decode_reply_tool_enable_section_callback() { … … 103 103 } 104 104 105 add_action( 'init', 'decode_reply_tool_setup' );106 105 function decode_reply_tool_setup() { 107 106 load_plugin_textdomain('decode-reply-tool', false, dirname(plugin_basename(__FILE__)) . '/languages/'); 108 107 } 108 add_action( 'init', 'decode_reply_tool_setup' ); 109 109 110 110 … … 112 112 113 113 //Add Reply Tool to post content 114 add_filter( 'the_content', 'insert_decode_reply_tool' );115 remove_filter( 'the_excerpt', 'insert_decode_reply_tool' );116 114 function insert_decode_reply_tool( $content ) { 117 115 … … 120 118 $reply_tool = ob_get_clean(); 121 119 122 if( is_home() && is_main_query() && !has_post_format('quote') && !has_post_format('aside') || is_single() && is_main_query() && !has_post_format('quote') && !has_post_format('aside') ) {120 if( is_home() && is_main_query() && !has_post_format('quote') && !has_post_format('aside') && !is_attachment() || is_single() && is_main_query() && !has_post_format('quote') && !has_post_format('aside') && !is_attachment() ) { 123 121 if( get_option( 'display-above-posts', true ) == true ) { 124 122 $content = $reply_tool . $content; … … 131 129 $content = $content; 132 130 } 133 elseif( has_post_format('quote') && is_single() || has_post_format('aside') && is_single() ) {131 elseif( has_post_format('quote') && is_single() || has_post_format('aside') && is_single() || is_attachment() ) { 134 132 $content = $content . $reply_tool; 135 133 } 136 134 return $content; 137 135 } 138 add_filter( 'get_the_excerpt', 'remove_decode_reply_tool', 5);136 add_filter( 'the_content', 'insert_decode_reply_tool' ); 139 137 140 138 //Remove Reply Tool text from post excerpts … … 143 141 return $content; 144 142 } 143 add_filter('get_the_excerpt', 'remove_decode_reply_tool', 5); 145 144 146 145 //Enqueue necessary scripts and styles 147 add_action( 'wp_enqueue_scripts', 'decode_reply_tool_enqueue_scripts' );148 146 function decode_reply_tool_enqueue_scripts() { 149 wp_enqueue_script( 'decode-reply-tool-script', plugins_url('decode-reply-tool-script.js', __FILE__), array( 'jquery'), '1.0.2', true );147 wp_enqueue_script( 'decode-reply-tool-script', plugins_url('decode-reply-tool-script.js', __FILE__), array(), '1.1.4', true ); 150 148 wp_enqueue_style( 'decode-reply-tool-style', plugins_url('decode-reply-tool-style.css', __FILE__), array(), '1.0.2' ); 151 149 } 150 add_action( 'wp_enqueue_scripts', 'decode_reply_tool_enqueue_scripts' ); 152 151 } 153 152 ?>
Note: See TracChangeset
for help on using the changeset viewer.