Plugin Directory

Changeset 856720


Ignore:
Timestamp:
02/12/2014 11:00:56 PM (12 years ago)
Author:
ScottSmith
Message:

Updated to 1.1.4

Location:
decode-reply-tool
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • decode-reply-tool/tags/1.1.2/languages/decode-reply-tool-fr_FR.po

    r763359 r856720  
    33"Project-Id-Version: Decode Reply Tool v1.1.2\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: \n"
    6 "PO-Revision-Date: 2013-08-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"
    88"Language-Team: \n"
    99"MIME-Version: 1.0\n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"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"
    1614"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"
    1817"X-Poedit-Basepath: ../\n"
    19 "X-Poedit-Bookmarks: \n"
     18"X-Textdomain-Support: yes\n"
     19"Language: fr_FR\n"
    2020"X-Poedit-SearchPath-0: .\n"
    21 "X-Textdomain-Support: yes"
    2221
     22# @ decode-reply-tool
    2323#: reply-tool-insert.php:3
    24 #@ decode-reply-tool
    2524msgid "With Twitter"
    2625msgstr "Avec Twitter"
    2726
     27# @ decode-reply-tool
    2828#: reply-tool-insert.php:5
    29 #@ decode-reply-tool
    3029msgid "Reply"
    3130msgstr "Répondre"
    3231
     32# @ decode-reply-tool
    3333#: reply-tool-insert.php:7
    34 #@ decode-reply-tool
    3534msgid "With ADN"
    3635msgstr "Avec ADN"
    3736
     37# @ decode-reply-tool
    3838#: reply-tool-loader.php:28
    39 #@ decode-reply-tool
    4039msgid "Decode Reply Tool"
    4140msgstr "Decode Reply Tool"
    4241
     42# @ decode-reply-tool
    4343#: reply-tool-loader.php:41
    44 #@ decode-reply-tool
    4544msgid "Enable/Disable"
    4645msgstr "Activer/Désactiver"
    4746
     47# @ decode-reply-tool
    4848#: reply-tool-loader.php:42
    49 #@ decode-reply-tool
    5049msgid "Display"
    5150msgstr "Position"
    5251
     52# @ decode-reply-tool
    5353#: reply-tool-loader.php:43
    54 #@ decode-reply-tool
    5554msgid "Usernames"
    5655msgstr "Noms d'utilisateurs"
    5756
     57# @ decode-reply-tool
    5858#: reply-tool-loader.php:46
    59 #@ decode-reply-tool
    6059msgid "Enable Reply Tool"
    6160msgstr "Activer Reply Tool"
    6261
     62# @ decode-reply-tool
    6363#: reply-tool-loader.php:47
    64 #@ decode-reply-tool
    6564msgid "Display Above Posts"
    6665msgstr "Placer avant les articles"
    6766
     67# @ decode-reply-tool
    6868#: reply-tool-loader.php:48
    69 #@ decode-reply-tool
    7069msgid "Display Below Posts"
    7170msgstr "Placer après les articles"
    7271
     72# @ decode-reply-tool
    7373#: reply-tool-loader.php:49
    74 #@ decode-reply-tool
    7574msgid "Twitter Username"
    7675msgstr "Nom d'utilisateur Twitter"
    7776
     77# @ decode-reply-tool
    7878#: reply-tool-loader.php:50
    79 #@ decode-reply-tool
    8079msgid "App.net Username"
    8180msgstr "Nom d'utilisateur App.net"
    8281
     82# @ decode-reply-tool
    8383#: reply-tool-loader.php:54
    84 #@ decode-reply-tool
    8584msgid "Do you want to enable or disable the reply tool on your site?"
    8685msgstr "Voulez-vous activer ou désactiver l'outil de réponse sur votre site ?"
    8786
     87# @ decode-reply-tool
    8888#: reply-tool-loader.php:58
    89 #@ decode-reply-tool
    9089msgid "Choose how the reply tool is displayed on your site:"
    9190msgstr "Choisissez où placer l'outil de réponse sur votre site:"
    9291
     92# @ decode-reply-tool
    9393#: reply-tool-loader.php:62
    94 #@ decode-reply-tool
    9594msgid "Enter the usernames you want to be @mentioned to for replies:"
    9695msgstr "Entrez les noms d'utilisateurs qui apparaitront dans les réponses:"
    9796
     97# @ decode-reply-tool
    9898#: reply-tool-loader.php:95
    99 #@ decode-reply-tool
    10099msgid "Decode Reply Tool Options"
    101100msgstr "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);
    611});
  • decode-reply-tool/trunk/decode-reply-tool-style.css

    r761909 r856720  
    4747}
    4848
    49 .decode-reply-tool-plugin .replylink, .decode-reply-tool-plugin .replytrigger {
     49body .decode-reply-tool-plugin a.replylink, .decode-reply-tool-plugin .replytrigger {
    5050    -webkit-transition: color 0.25s ease-out, opacity 0.25s ease-in-out, padding 0.35s ease-out;
    5151    -moz-transition: color 0.25s ease-out, opacity 0.25s ease-in-out, padding 0.35s ease-out;
     
    6868    font-size: 0.5em;
    6969}
     70
     71@media only print {
     72.decode-reply-tool-plugin {
     73    display: none;
     74}
     75}
  • decode-reply-tool/trunk/readme.txt

    r763359 r856720  
    55Requires at least: 2.7
    66Tested up to: 3.6
    7 Stable tag: 1.1.3
    8 License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     7Stable tag: 1.1.4
     8License: GPLv3 or later
     9License URI: http://www.gnu.org/licenses/gpl-3.0-standalone.html
    1010
    1111This plugin allows your readership to reply to your posts via Twitter and App.net using a beautiful, simple reply tool.
     
    4040== Changelog ==
    4141
     42= 1.1.4 =
     43* Reply Tool now doesn't need jQuery
     44* Added German translation
     45
    4246= 1.1.3 =
    4347* Added French translation, thanks to Stéphane Bataillon
  • decode-reply-tool/trunk/reply-tool-loader.php

    r763359 r856720  
    44Plugin URI: http://ScottHSmith.com/projects/decode
    55Description: 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.3
     6Version: 1.1.4
    77Author: Scott Smith
    88Author URI: http://ScottHSmith.com/
     
    2424*/
    2525
    26 add_action( 'admin_menu', 'decode_reply_tool_options' );
    2726function decode_reply_tool_options() {
    2827    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' );
    2928}
     29add_action( 'admin_menu', 'decode_reply_tool_options' );
    3030
    3131
    32 add_action( 'admin_init', 'decode_reply_tool_init' );
    3332function decode_reply_tool_init() {
    3433    register_setting( 'decode-reply-tool-settings-group', 'enable-reply-tool' );
     
    5049    add_settings_field( 'adn-username', __( 'App.net Username', 'decode-reply-tool' ), 'decode_reply_tool_adn_username_callback', 'decode_reply_tool', 'usernames-section' );
    5150}
     51add_action( 'admin_init', 'decode_reply_tool_init' );
    5252
    5353function decode_reply_tool_enable_section_callback() {
     
    103103}
    104104
    105 add_action( 'init', 'decode_reply_tool_setup' );
    106105function decode_reply_tool_setup() {
    107106    load_plugin_textdomain('decode-reply-tool', false, dirname(plugin_basename(__FILE__)) . '/languages/');
    108107}
     108add_action( 'init', 'decode_reply_tool_setup' );
    109109
    110110
     
    112112   
    113113    //Add Reply Tool to post content
    114     add_filter( 'the_content', 'insert_decode_reply_tool' );
    115     remove_filter( 'the_excerpt', 'insert_decode_reply_tool' );
    116114    function insert_decode_reply_tool( $content ) {
    117115
     
    120118        $reply_tool = ob_get_clean();
    121119
    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() ) {
    123121            if( get_option( 'display-above-posts', true ) == true ) {
    124122                $content = $reply_tool . $content;
     
    131129            $content = $content;
    132130        }
    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() ) {
    134132            $content = $content . $reply_tool;
    135133        }
    136134        return $content;
    137135    }
    138     add_filter('get_the_excerpt', 'remove_decode_reply_tool', 5);
     136    add_filter( 'the_content', 'insert_decode_reply_tool' );
    139137
    140138    //Remove Reply Tool text from post excerpts
     
    143141       return $content;
    144142    }
     143    add_filter('get_the_excerpt', 'remove_decode_reply_tool', 5);
    145144
    146145    //Enqueue necessary scripts and styles
    147     add_action( 'wp_enqueue_scripts', 'decode_reply_tool_enqueue_scripts' );
    148146    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 );
    150148            wp_enqueue_style( 'decode-reply-tool-style', plugins_url('decode-reply-tool-style.css', __FILE__), array(), '1.0.2' );
    151149    }
     150    add_action( 'wp_enqueue_scripts', 'decode_reply_tool_enqueue_scripts' );
    152151}
    153152?>
Note: See TracChangeset for help on using the changeset viewer.