Changeset 1397762
- Timestamp:
- 04/17/2016 01:21:54 PM (10 years ago)
- Location:
- cs-likes-counter/trunk
- Files:
-
- 3 added
- 2 edited
-
cs-likes-counter.php (modified) (7 diffs)
-
languages (added)
-
languages/cslikes-ru_RU.mo (added)
-
languages/cslikes-ru_RU.po (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cs-likes-counter/trunk/cs-likes-counter.php
r1397725 r1397762 4 4 Plugin URI: http://codesweet.ru/cs-likes-counter/ 5 5 Description: Likes Dislikes post counter 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: EdCreater 8 8 Author URI: http://codesweet.ru 9 9 Text Domain: cslikes 10 Domain Path: /lang 10 Domain Path: /languages 11 11 License: GPLv2 or later 12 12 */ … … 38 38 add_action( 'wp_enqueue_scripts', array($this, 'enqueue_scripts') ); 39 39 40 // Language Support 41 add_action( 'init', array($this, 'cs_likes_localise')); 42 40 43 } 41 44 … … 45 48 function uninstall(){ 46 49 50 } 51 52 function cs_likes_localise(){ # Подрубаем переводы 53 load_plugin_textdomain( 'cslikes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 47 54 } 48 55 … … 73 80 __( 'CS Likes/Dislikes', 'cslikes' ), 74 81 array($this,'show_cs_likes_box'), 75 'post',82 array('post', 'page'), 76 83 'side', 77 84 'high' … … 92 99 $dislikes = get_post_meta($post->ID, 'cs_post_dislikes', true); 93 100 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>'; 99 107 100 108 } … … 188 196 'html' => $post_likes, 189 197 'post_id' => $post_id, 190 'success_message' => __('Like counted!' )198 'success_message' => __('Like counted!', 'cslikes') 191 199 ); 192 200 wp_send_json_success( $response ); … … 259 267 'html' => $post_dislikes, 260 268 'post_id' => $post_id, 261 'success_message' => __('Dislike counted!' )269 'success_message' => __('Dislike counted!', 'cslikes') 262 270 ); 263 271 wp_send_json_success( $response ); -
cs-likes-counter/trunk/readme.txt
r1397710 r1397762 5 5 Requires at least: 3.9 6 6 Tested up to: 4.4.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 9 9 … … 51 51 = I\'m having issues getting the plugin to work what should I do? = 52 52 53 See the [FAQs](http://codesweet. dev/nashi-razrabotki/cs-likes-counter) page for a detailed rundown of common issues53 See the [FAQs](http://codesweet.ru/cs-likes-counter) page for a detailed rundown of common issues 54 54 55 55 … … 59 59 60 60 * 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.