I Recommend This - Version 2.6.0

Version Description

Download this release

Release Info

Developer hchouhan
Plugin Icon 128x128 I Recommend This
Version 2.6.0
Comparing to
See all releases

Code changes from version 2.5.4 to 2.6.0

dot-irecommendthis.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: I Recommend This
4
  * Plugin URI: http://www.harishchouhan.com/personal-projects/i-recommend-this/
5
  * Description: This plugin allows your visitors to simply recommend or like your posts instead of commment it.
6
- * Version: 2.5.4
7
  * Author: Harish Chouhan
8
  * Author URI: http://www.harishchouhan.com
9
  * Author Email: me@harishchouhan.com
@@ -38,7 +38,7 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
38
 
39
  class DOT_IRecommendThis {
40
 
41
- public $version = '2.5.4';
42
 
43
  /*--------------------------------------------*
44
  * Constructor
@@ -137,7 +137,7 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
137
  wp_enqueue_style( 'dot-irecommendthis', plugins_url( '/css/dot-irecommendthis-heart.css', __FILE__ ) );
138
  }
139
  }
140
- wp_register_script('dot-irecommendthis', plugins_url( '/js/dot_irecommendthis.js', __FILE__ ), 'jquery', '2.5.4', FALSE);
141
 
142
  wp_enqueue_script( 'jquery' );
143
  wp_enqueue_script( 'dot-irecommendthis' );
@@ -847,4 +847,38 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
847
  );
848
  }
849
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850
  ?>
3
  * Plugin Name: I Recommend This
4
  * Plugin URI: http://www.harishchouhan.com/personal-projects/i-recommend-this/
5
  * Description: This plugin allows your visitors to simply recommend or like your posts instead of commment it.
6
+ * Version: 2.6.0
7
  * Author: Harish Chouhan
8
  * Author URI: http://www.harishchouhan.com
9
  * Author Email: me@harishchouhan.com
38
 
39
  class DOT_IRecommendThis {
40
 
41
+ public $version = '2.6.0';
42
 
43
  /*--------------------------------------------*
44
  * Constructor
137
  wp_enqueue_style( 'dot-irecommendthis', plugins_url( '/css/dot-irecommendthis-heart.css', __FILE__ ) );
138
  }
139
  }
140
+ wp_register_script('dot-irecommendthis', plugins_url( '/js/dot_irecommendthis.js', __FILE__ ), 'jquery', '2.6.0', FALSE);
141
 
142
  wp_enqueue_script( 'jquery' );
143
  wp_enqueue_script( 'dot-irecommendthis' );
847
  );
848
  }
849
 
850
+ /*--------------------------------------------*
851
+ * Add Likes Column In Post Manage Page
852
+ *--------------------------------------------*/
853
+
854
+ function dot_columns_head($defaults) {
855
+ $defaults['likes'] = __('Likes', 'dot');
856
+ return $defaults;
857
+ }
858
+
859
+ function dot_column_content($column_name, $post_ID) {
860
+ if ($column_name == 'likes')
861
+ echo get_post_meta($post_ID, '_recommended', true) . ' ' . __('like', 'dot');
862
+ }
863
+
864
+ function dot_column_register_sortable( $columns ) {
865
+ $columns['likes'] = 'likes';
866
+ return $columns;
867
+ }
868
+
869
+ function dot_column_orderby( $vars ) {
870
+ if ( isset( $vars['orderby'] ) && 'likes' == $vars['orderby'] ) {
871
+ $vars = array_merge( $vars, array(
872
+ 'meta_key' => '_recommended',
873
+ 'orderby' => 'meta_value'
874
+ ) );
875
+ }
876
+
877
+ return $vars;
878
+ }
879
+ add_filter('request', 'dot_column_orderby');
880
+ add_filter('manage_edit-post_sortable_columns', 'dot_column_register_sortable');
881
+ add_filter('manage_posts_columns', 'dot_columns_head');
882
+ add_action('manage_posts_custom_column', 'dot_column_content', 10, 2);
883
+
884
  ?>
js/dot_irecommendthis.js CHANGED
@@ -4,16 +4,16 @@ jQuery(document).ready(function($){
4
  function() {
5
  var link = $(this);
6
  if(link.hasClass('active')) return false;
7
-
8
  var id = $(this).attr('id'),
9
  suffix = link.find('.dot-irecommendthis-suffix').text();
10
-
11
  $.post(dot_irecommendthis.ajaxurl, { action:'dot-irecommendthis', recommend_id:id, suffix:suffix }, function(data){
12
  link.html(data).addClass('active').attr('title','You already recommended this');
13
  });
14
-
15
  return false;
16
  });
17
-
18
 
19
  });
4
  function() {
5
  var link = $(this);
6
  if(link.hasClass('active')) return false;
7
+
8
  var id = $(this).attr('id'),
9
  suffix = link.find('.dot-irecommendthis-suffix').text();
10
+
11
  $.post(dot_irecommendthis.ajaxurl, { action:'dot-irecommendthis', recommend_id:id, suffix:suffix }, function(data){
12
  link.html(data).addClass('active').attr('title','You already recommended this');
13
  });
14
+
15
  return false;
16
  });
17
+
18
 
19
  });
languages/dot-fa_IR.mo ADDED
Binary file
languages/dot-fa_IR.po ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: I Recommend This 2.5.3\n"
4
+ "POT-Creation-Date: 2013-10-12 18:58+0330\n"
5
+ "PO-Revision-Date: 2013-10-12 19:11+0330\n"
6
+ "Last-Translator: Hossein Soroor Golshani <HSGolshani@gmail.com>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: dot-irecommendthis.php:156 dot-irecommendthis.php:157
17
+ msgid "I Recommend This"
18
+ msgstr "افزونه لایک"
19
+
20
+ #: dot-irecommendthis.php:176
21
+ msgid "Automatically display on"
22
+ msgstr "نمایش خودکار در "
23
+
24
+ #: dot-irecommendthis.php:178
25
+ msgid "Text after 0 Count"
26
+ msgstr "متن کنار امتیاز صفر"
27
+
28
+ #: dot-irecommendthis.php:180
29
+ msgid "Text after 1 Count"
30
+ msgstr "متن کنار امتیاز یک"
31
+
32
+ #: dot-irecommendthis.php:182
33
+ msgid "Text after more than 1 Count"
34
+ msgstr "متن کنار امتیاز بیشتر از یک"
35
+
36
+ #: dot-irecommendthis.php:184
37
+ msgid "Title for New posts"
38
+ msgstr "تول تیپ مطالب لایک نشده"
39
+
40
+ #: dot-irecommendthis.php:186
41
+ msgid "Title for already voted posts"
42
+ msgstr "تول تیپ مطالب لایک شده"
43
+
44
+ #: dot-irecommendthis.php:188
45
+ msgid "Disable CSS"
46
+ msgstr "غیرفعال کردن استایل"
47
+
48
+ #: dot-irecommendthis.php:190
49
+ msgid "Hide Zero Count"
50
+ msgstr "مخفی کردن امتیاز صفر"
51
+
52
+ #: dot-irecommendthis.php:192
53
+ msgid "Disable IP saving"
54
+ msgstr "غیرفعال کردن ذخیره IP شخص"
55
+
56
+ #: dot-irecommendthis.php:194
57
+ msgid "Choose a style"
58
+ msgstr "نوع دکمه"
59
+
60
+ #: dot-irecommendthis.php:196
61
+ msgid "Shortcode and Template Tag"
62
+ msgstr "کد های کوتاه"
63
+
64
+ #: dot-irecommendthis.php:224
65
+ msgid "Save Changes"
66
+ msgstr "ذخیره تنظیمات"
67
+
68
+ #: dot-irecommendthis.php:238
69
+ msgid ""
70
+ "<a href=\"https://twitter.com/harishchouhan\" class=\"twitter-follow-button"
71
+ "\" data-show-count=\"false\">Follow @harishchouhan</a>\n"
72
+ "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d."
73
+ "getElementById(id)){js=d.createElement(s);js.id=id;js.src=\"//platform."
74
+ "twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,"
75
+ "\"script\",\"twitter-wjs\");</script>"
76
+ msgstr ""
77
+ "<a href=\"https://twitter.com/harishchouhan\" class=\"twitter-follow-button"
78
+ "\" data-show-count=\"false\">صفحه توئیتر طراح افزونه</a>\n"
79
+ "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d."
80
+ "getElementById(id)){js=d.createElement(s);js.id=id;js.src=\"//platform."
81
+ "twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,"
82
+ "\"script\",\"twitter-wjs\");</script>"
83
+
84
+ #: dot-irecommendthis.php:240
85
+ msgid ""
86
+ "or Check out our other themes & plugins at <a href=\"http://www.dreamsonline."
87
+ "net\">Dreams Online Themes</a>."
88
+ msgstr ""
89
+ "<a href=\"http://www.dreamsonline.net\">سایت طراح افزونه</a> | <a href="
90
+ "\"http://www.hossein74.com\">سایت مترجم افزونه</a>"
91
+
92
+ #: dot-irecommendthis.php:241
93
+ msgid ""
94
+ "This plugin allows your visitors to simply recommend or like your posts "
95
+ "instead of commment it."
96
+ msgstr ""
97
+ "این افزونه به بازدید کننده های شما اجازه لایک کردن مطالب مورد علاقه خودشان "
98
+ "را می دهد."
99
+
100
+ #: dot-irecommendthis.php:253
101
+ msgid "Posts"
102
+ msgstr "مطالب"
103
+
104
+ #: dot-irecommendthis.php:256
105
+ msgid "All other pages like Index, Archive, etc."
106
+ msgstr "همه صفحات"
107
+
108
+ #: dot-irecommendthis.php:266
109
+ msgid "Hide count if count is zero"
110
+ msgstr "مخفی کردن تعداد لایک ها اگر عدد آن صفر باشد."
111
+
112
+ #: dot-irecommendthis.php:276
113
+ msgid ""
114
+ "Disable saving of IP Address. Will only save cookies to track user votes."
115
+ msgstr ""
116
+ "غیرفعال کردن ذخیره آیپی شخص باعث می شود که افزونه برای لایک فقط وجود کوکی "
117
+ "خود را چک کند"
118
+
119
+ #: dot-irecommendthis.php:286
120
+ msgid "I want to use my own CSS styles"
121
+ msgstr "استفاده از کد های CSS دلخواه شما."
122
+
123
+ #: dot-irecommendthis.php:295
124
+ msgid ""
125
+ "Text to display after zero count. Leave blank for no text after the count."
126
+ msgstr "این متن کنار دکمه لایک هنگام صفر بود عدد امتیاز نمایش داده می شود."
127
+
128
+ #: dot-irecommendthis.php:303
129
+ msgid ""
130
+ "Text to display after 1 person has recommended. Leave blank for no text "
131
+ "after the count."
132
+ msgstr "این متن کنار دکمه لایک با تنها وجود یک امتیاز نمایش داده می شود."
133
+
134
+ #: dot-irecommendthis.php:312
135
+ msgid ""
136
+ "Text to display after more than 1 person have recommended. Leave blank for "
137
+ "no text after the count."
138
+ msgstr ""
139
+ "این متن کنار دکمه لایک هنگام وجود امتیاز بیشتر از یک نمایش داده می شود."
140
+
141
+ #: dot-irecommendthis.php:321
142
+ msgid "Link Title element for posts not yet voted by a user."
143
+ msgstr ""
144
+ "این متن هنگام قرار گیری نشانگر ماوس روی دکمه لایک در صورتی که مطلب مورد نظر "
145
+ "هیچ لایکی نداشته باشد نمایش داده می شود."
146
+
147
+ #: dot-irecommendthis.php:330
148
+ msgid "Link Title element for posts already voted by a user."
149
+ msgstr ""
150
+ "این متن هنگام قرارگیری نشانگر ماوس روی دکمه لایک در صورتی که مطلب حداقل یک "
151
+ "امتیاز داشته باشد نمایش داده می شود."
152
+
153
+ #: dot-irecommendthis.php:339
154
+ msgid "Default style - Thumb"
155
+ msgstr "شکل دست"
156
+
157
+ #: dot-irecommendthis.php:342
158
+ msgid "Heart"
159
+ msgstr "شکل قلب"
160
+
161
+ #: dot-irecommendthis.php:347
162
+ msgid ""
163
+ "To use I Recomment This in your posts and pages you can use the shortcode:"
164
+ msgstr ""
165
+ "برای استفاده از دکمه لایک در مطالب و برگه ها باید از کد زیر استفاده کنید :"
166
+
167
+ #: dot-irecommendthis.php:349
168
+ msgid ""
169
+ "To use I Recomment This manually in your theme template use the following "
170
+ "PHP code:"
171
+ msgstr ""
172
+ "برای استفاده از دکمه لایک مستقیم در فایل های قالب باید از کد php زیر استفاده "
173
+ "کنید :"
174
+
175
+ #: dot-irecommendthis.php:351
176
+ msgid "To show top recommended post from a particular date use below shortcode"
177
+ msgstr ""
178
+ "برای نمایش بالاترین مطالب لایک شده طبق تاریخ معین از کد زیر استفاده کنید :"
179
+
180
+ #: dot-irecommendthis.php:595 dot-irecommendthis.php:628
181
+ msgid "Recommend this"
182
+ msgstr "لایک"
183
+
184
+ #: dot-irecommendthis.php:610 dot-irecommendthis.php:643
185
+ msgid "You already recommended this"
186
+ msgstr "شما قبلاً این مطلب را لایک کرده اید."
187
+
188
+ #: dot-irecommendthis.php:758 dot-irecommendthis.php:777
189
+ #: dot-irecommendthis.php:784 dot-irecommendthis.php:811
190
+ msgid "Most recommended posts"
191
+ msgstr "بیشترین لایک شده ها"
192
+
193
+ #: dot-irecommendthis.php:759 dot-irecommendthis.php:785
194
+ msgid "5"
195
+ msgstr "5"
196
+
197
+ #: dot-irecommendthis.php:800
198
+ msgid "Title:"
199
+ msgstr "عنوان:"
200
+
201
+ #: dot-irecommendthis.php:803
202
+ msgid "Number of posts to show:"
203
+ msgstr "تعداد مطالب:"
204
+
205
+ #: dot-irecommendthis.php:806
206
+ msgid "Show post count"
207
+ msgstr "نمایش تعداد مطالب"
208
+
209
+ #: dot-irecommendthis.php:844
210
+ msgid "Settings"
211
+ msgstr "تنظیمات"
212
+
213
+ #: dot-irecommendthis.php:855
214
+ msgid "Likes"
215
+ msgstr "لایک‌ها"
216
+
217
+ #: dot-irecommendthis.php:861
218
+ msgid "like"
219
+ msgstr "لایک"
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.dreamsonline.net
4
  Tags: recommend, like, love, post, rate, rating, post rating, heart, dribbble like, tumblr like
5
  Requires at least: 3.3
6
  Tested up to: 3.6.1
7
- Stable tag: 2.5.4
8
- Last Updated: 2013-October-11
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -22,6 +22,7 @@ This plugin allows your visitors to simply like/recommend your posts instead of
22
  * A widget and a function to display the X most liked posts.
23
  * A preference pane with some options.
24
  * Saves Cookie as well as users IP address to disable voting on the same post again
 
25
 
26
 
27
  = Advanced Options =
@@ -37,6 +38,7 @@ This plugin allows your visitors to simply like/recommend your posts instead of
37
 
38
  = Translations =
39
  * Portuguese translation added. Thanks to Darlan ten Caten - http://i9solucoesdigitais.com.br/
 
40
 
41
  This plugin is based exactly on Benoit "LeBen" Burgener's "I Like This" Plugin and has been modified after getting requests for the changes I had made on my website.
42
 
@@ -46,6 +48,7 @@ Please report any bugs you find via http://www.dreamsonline.net/wordpress-plugin
46
 
47
  * [Flat UI Design Gallery](http://flattrendz.com) - Example usage in website Design Gallery
48
  * [Harish's blog](http://www.harishchouhan.com/blog/) -
 
49
 
50
 
51
  = My Links =
@@ -85,7 +88,11 @@ You can also visit the [support center](http://www.dreamsonline.net/wordpress-pl
85
 
86
  == Changelog ==
87
 
88
- = 2.5.4
 
 
 
 
89
  * Fixed PHP error in Widget.
90
  * Converted text strings in widget to be translatable.
91
 
4
  Tags: recommend, like, love, post, rate, rating, post rating, heart, dribbble like, tumblr like
5
  Requires at least: 3.3
6
  Tested up to: 3.6.1
7
+ Stable tag: 2.6.0
8
+ Last Updated: 2013-October-15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
22
  * A widget and a function to display the X most liked posts.
23
  * A preference pane with some options.
24
  * Saves Cookie as well as users IP address to disable voting on the same post again
25
+ * Displays Number of likes on Post Edit page along with sorting option Thanks to [HSG](http://profiles.wordpress.org/HSG/)
26
 
27
 
28
  = Advanced Options =
38
 
39
  = Translations =
40
  * Portuguese translation added. Thanks to Darlan ten Caten - http://i9solucoesdigitais.com.br/
41
+ * Persian translation added. Thanks to Hossein Soroor Golshani - Thanks to [HSG](http://profiles.wordpress.org/HSG/)
42
 
43
  This plugin is based exactly on Benoit "LeBen" Burgener's "I Like This" Plugin and has been modified after getting requests for the changes I had made on my website.
44
 
48
 
49
  * [Flat UI Design Gallery](http://flattrendz.com) - Example usage in website Design Gallery
50
  * [Harish's blog](http://www.harishchouhan.com/blog/) -
51
+ * [OnePageMania.com](http://onepagemania.com/) -
52
 
53
 
54
  = My Links =
88
 
89
  == Changelog ==
90
 
91
+ = 2.6.0
92
+ * Added Persian translation - Thanks to [HSG](http://profiles.wordpress.org/HSG/)
93
+ * Now you can see number of likes on Post Edit page along with sorting option. Thanks to [HSG](http://profiles.wordpress.org/HSG/)
94
+
95
+ = 2.5.3
96
  * Fixed PHP error in Widget.
97
  * Converted text strings in widget to be translatable.
98