Plugin Directory

Changeset 1397762


Ignore:
Timestamp:
04/17/2016 01:21:54 PM (10 years ago)
Author:
bykaVBS
Message:

Version 1.0.2

  • Add Russan languages
  • Add Metabox to page
Location:
cs-likes-counter/trunk
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • cs-likes-counter/trunk/cs-likes-counter.php

    r1397725 r1397762  
    44  Plugin URI: http://codesweet.ru/cs-likes-counter/
    55  Description: Likes Dislikes post counter
    6   Version: 1.0.1
     6  Version: 1.0.2
    77  Author: EdCreater
    88  Author URI: http://codesweet.ru
    99  Text Domain: cslikes
    10   Domain Path: /lang
     10  Domain Path: /languages
    1111  License: GPLv2 or later
    1212 */
     
    3838        add_action( 'wp_enqueue_scripts', array($this, 'enqueue_scripts') );
    3939
     40        // Language Support
     41        add_action( 'init', array($this, 'cs_likes_localise'));
     42
    4043    }
    4144
     
    4548    function uninstall(){
    4649
     50    }
     51
     52    function cs_likes_localise(){ # Подрубаем переводы
     53        load_plugin_textdomain( 'cslikes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    4754    }
    4855
     
    7380            __( 'CS Likes/Dislikes', 'cslikes' ),
    7481            array($this,'show_cs_likes_box'),
    75             'post',
     82            array('post', 'page'),
    7683            'side',
    7784            'high'
     
    9299        $dislikes = get_post_meta($post->ID, 'cs_post_dislikes', true);
    93100
    94         echo '<p><label for="post_likes" style="display: inline-block; width: 50px;">'.__('Likes','cslikes').'</label>';
    95         echo '<input type="text" id="post_likes" name="post_likes" value="'.$likes.'"/></p>';
    96 
    97         echo '<p><label for="post_dislikes" style="display: inline-block; width: 50px;">'.__('Dislikes','cslikes').'</label>';
    98         echo '<input type="text" id="post_dislikes" name="post_dislikes" value="'.$dislikes.'"/></p>';
     101
     102        echo '<p><label for="post_likes" style="display: inline-block; width: 30%;">'.__('Likes','cslikes').'</label>';
     103        echo '<input type="text" id="post_likes" name="post_likes" value="'.$likes.'" style="width: 65%;" /></p>';
     104
     105        echo '<p><label for="post_dislikes" style="display: inline-block; width: 30%;">'.__('Dislikes','cslikes').'</label>';
     106        echo '<input type="text" id="post_dislikes" name="post_dislikes" value="'.$dislikes.'" style="width: 65%;" /></p>';
    99107
    100108    }
     
    188196                'html' => $post_likes,
    189197                'post_id' => $post_id,
    190                 'success_message' => __('Like counted!')
     198                'success_message' => __('Like counted!', 'cslikes')
    191199            );
    192200            wp_send_json_success( $response );
     
    259267                'html' => $post_dislikes,
    260268                'post_id' => $post_id,
    261                 'success_message' => __('Dislike counted!')
     269                'success_message' => __('Dislike counted!', 'cslikes')
    262270            );
    263271            wp_send_json_success( $response );
  • cs-likes-counter/trunk/readme.txt

    r1397710 r1397762  
    55Requires at least: 3.9
    66Tested up to: 4.4.2
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2
    99
     
    5151= I\'m having issues getting the plugin to work what should I do? =
    5252
    53 See the [FAQs](http://codesweet.dev/nashi-razrabotki/cs-likes-counter) page for a detailed rundown of common issues
     53See the [FAQs](http://codesweet.ru/cs-likes-counter) page for a detailed rundown of common issues
    5454
    5555
     
    5959
    6060* First stable release.
     61
     62= 1.0.2 =
     63
     64* Add Russian Language support
     65* Add likes metabox to page
Note: See TracChangeset for help on using the changeset viewer.