Version Description
Download this release
Release Info
Developer | hchouhan |
Plugin | I Recommend This |
Version | 2.3.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.3.0
- dot-irecommendthis.php +143 -26
- languages/dot-irecommendthis-en.mo +0 -0
- languages/dot-irecommendthis-en.po +35 -23
- readme.txt +15 -2
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.
|
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.
|
42 |
|
43 |
/*--------------------------------------------*
|
44 |
* Constructor
|
@@ -154,6 +154,10 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
154 |
|
155 |
add_settings_field( 'disable_css', __( 'Disable CSS', 'dot' ), array(&$this, 'setting_disable_css'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
156 |
|
|
|
|
|
|
|
|
|
157 |
add_settings_field( 'recommend_style', __( 'Choose a style', 'dot' ), array(&$this, 'setting_recommend_style'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
158 |
|
159 |
add_settings_field( 'instructions', __( 'Shortcode and Template Tag', 'dot' ), array(&$this, 'setting_instructions'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
@@ -218,6 +222,26 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
218 |
'. __('All other pages like Index, Archive, etc.', 'dot') .'</label><br />';
|
219 |
}
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
function setting_disable_css()
|
222 |
{
|
223 |
$options = get_option( 'dot_irecommendthis_settings' );
|
@@ -423,25 +447,69 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
423 |
elseif( $recommended == 1 ) { $suffix = $text_one_suffix; }
|
424 |
else { $suffix = $text_more_suffix; }
|
425 |
|
426 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
break;
|
428 |
|
|
|
429 |
case 'update':
|
430 |
|
431 |
$recommended = get_post_meta($post_id, '_recommended', true);
|
432 |
|
433 |
-
|
434 |
-
$
|
435 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
|
437 |
-
if ( isset($_COOKIE['dot_irecommendthis_'. $post_id]) && $voteStatusByIp != 0 ) {
|
438 |
-
return $recommended;
|
439 |
}
|
440 |
|
441 |
-
|
442 |
-
|
443 |
-
setcookie('dot_irecommendthis_'. $post_id, time(), time()+3600*24*365, '/');
|
444 |
-
$wpdb->query("INSERT INTO ".$wpdb->prefix."irecommendthis_votes VALUES ('', NOW(), '$post_id', '$ip')");
|
445 |
|
446 |
if( $recommended == 0 ) { $suffix = $text_zero_suffix; }
|
447 |
elseif( $recommended == 1 ) { $suffix = $text_one_suffix; }
|
@@ -468,12 +536,24 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
468 |
|
469 |
function dot_recommend($id=null)
|
470 |
{
|
|
|
|
|
471 |
global $wpdb;
|
472 |
$ip = $_SERVER['REMOTE_ADDR'];
|
473 |
$post_ID = $id ? $id : get_the_ID();
|
474 |
-
$voteStatusByIp = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."irecommendthis_votes WHERE post_id = '$post_ID' AND ip = '$ip'");
|
475 |
global $post;
|
476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
|
478 |
|
479 |
$options = get_option( 'dot_irecommendthis_settings' );
|
@@ -487,34 +567,71 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
487 |
|
488 |
//if ( isset($_COOKIE['dot_irecommendthis_'. $post_id]) && $voteStatusByIp != 0 ) {
|
489 |
|
490 |
-
if
|
491 |
-
|
|
|
|
|
|
|
492 |
|
|
|
493 |
|
494 |
-
|
495 |
|
496 |
-
|
497 |
|
498 |
-
|
499 |
|
500 |
-
|
501 |
|
502 |
}
|
|
|
503 |
|
504 |
-
|
505 |
-
|
|
|
|
|
|
|
506 |
|
507 |
-
|
508 |
|
509 |
-
|
510 |
|
511 |
-
|
|
|
|
|
|
|
512 |
|
513 |
-
|
|
|
514 |
|
515 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
|
517 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
}
|
519 |
|
520 |
return '<a href="#" class="'. $class .'" id="dot-irecommendthis-'. $post_ID .'" title="'. $title .'">'. $output .'</a>';
|
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.3.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.3.0';
|
42 |
|
43 |
/*--------------------------------------------*
|
44 |
* Constructor
|
154 |
|
155 |
add_settings_field( 'disable_css', __( 'Disable CSS', 'dot' ), array(&$this, 'setting_disable_css'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
156 |
|
157 |
+
add_settings_field( 'hide_zero', __( 'Hide Zero Count', 'dot' ), array(&$this, 'setting_hide_zero'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
158 |
+
|
159 |
+
add_settings_field( 'disable_unique_ip', __( 'Disable IP saving', 'dot' ), array(&$this, 'setting_disable_unique_ip'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
160 |
+
|
161 |
add_settings_field( 'recommend_style', __( 'Choose a style', 'dot' ), array(&$this, 'setting_recommend_style'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
162 |
|
163 |
add_settings_field( 'instructions', __( 'Shortcode and Template Tag', 'dot' ), array(&$this, 'setting_instructions'), 'dot-irecommendthis', 'dot-irecommendthis' );
|
222 |
'. __('All other pages like Index, Archive, etc.', 'dot') .'</label><br />';
|
223 |
}
|
224 |
|
225 |
+
function setting_hide_zero()
|
226 |
+
{
|
227 |
+
$options = get_option( 'dot_irecommendthis_settings' );
|
228 |
+
if( !isset($options['hide_zero']) ) $options['hide_zero'] = '0';
|
229 |
+
|
230 |
+
echo '<input type="hidden" name="dot_irecommendthis_settings[hide_zero]" value="0" />
|
231 |
+
<label><input type="checkbox" name="dot_irecommendthis_settings[hide_zero]" value="1"'. (($options['hide_zero']) ? ' checked="checked"' : '') .' />
|
232 |
+
Hide count if count is zero</label>';
|
233 |
+
}
|
234 |
+
|
235 |
+
function setting_disable_unique_ip()
|
236 |
+
{
|
237 |
+
$options = get_option( 'dot_irecommendthis_settings' );
|
238 |
+
if( !isset($options['disable_unique_ip']) ) $options['disable_unique_ip'] = '0';
|
239 |
+
|
240 |
+
echo '<input type="hidden" name="dot_irecommendthis_settings[disable_unique_ip]" value="0" />
|
241 |
+
<label><input type="checkbox" name="dot_irecommendthis_settings[disable_unique_ip]" value="1"'. (($options['disable_unique_ip']) ? ' checked="checked"' : '') .' />
|
242 |
+
Disable saving of IP Address. Will only save cookies to track user votes.</label>';
|
243 |
+
}
|
244 |
+
|
245 |
function setting_disable_css()
|
246 |
{
|
247 |
$options = get_option( 'dot_irecommendthis_settings' );
|
447 |
elseif( $recommended == 1 ) { $suffix = $text_one_suffix; }
|
448 |
else { $suffix = $text_more_suffix; }
|
449 |
|
450 |
+
|
451 |
+
/*
|
452 |
+
|
453 |
+
Hides the count is the count is zero.
|
454 |
+
|
455 |
+
*/
|
456 |
+
$options = get_option( 'dot_irecommendthis_settings' );
|
457 |
+
if( !isset($options['hide_zero']) ) $options['hide_zero'] = '0';
|
458 |
+
|
459 |
+
|
460 |
+
if( ($recommended == 0) && $options['hide_zero'] == 1 ) {
|
461 |
+
return '<span class="dot-irecommendthis-count"> </span> <span class="dot-irecommendthis-suffix">'. $suffix .'</span>';
|
462 |
+
|
463 |
+
} else {
|
464 |
+
return '<span class="dot-irecommendthis-count">'. $recommended .'</span> <span class="dot-irecommendthis-suffix">'. $suffix .'</span>';
|
465 |
+
|
466 |
+
}
|
467 |
+
|
468 |
break;
|
469 |
|
470 |
+
|
471 |
case 'update':
|
472 |
|
473 |
$recommended = get_post_meta($post_id, '_recommended', true);
|
474 |
|
475 |
+
$options = get_option( 'dot_irecommendthis_settings' );
|
476 |
+
if( !isset($options['disable_unique_ip']) ) $options['disable_unique_ip'] = '0';
|
477 |
+
|
478 |
+
/*
|
479 |
+
|
480 |
+
Check if Unique IP saving is required or disabled
|
481 |
+
|
482 |
+
*/
|
483 |
+
if( $options['disable_unique_ip'] == 0 ) {
|
484 |
+
|
485 |
+
global $wpdb;
|
486 |
+
$ip = $_SERVER['REMOTE_ADDR'];
|
487 |
+
$voteStatusByIp = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."irecommendthis_votes WHERE post_id = '$post_id' AND ip = '$ip'");
|
488 |
+
|
489 |
+
if ( isset($_COOKIE['dot_irecommendthis_'. $post_id]) && $voteStatusByIp != 0 ) {
|
490 |
+
return $recommended;
|
491 |
+
}
|
492 |
+
|
493 |
+
$recommended++;
|
494 |
+
update_post_meta($post_id, '_recommended', $recommended);
|
495 |
+
setcookie('dot_irecommendthis_'. $post_id, time(), time()+3600*24*365, '/');
|
496 |
+
$wpdb->query("INSERT INTO ".$wpdb->prefix."irecommendthis_votes VALUES ('', NOW(), '$post_id', '$ip')");
|
497 |
+
|
498 |
+
|
499 |
+
} else {
|
500 |
+
|
501 |
+
if ( isset($_COOKIE['dot_irecommendthis_'. $post_id]) ) {
|
502 |
+
return $recommended;
|
503 |
+
}
|
504 |
+
|
505 |
+
$recommended++;
|
506 |
+
update_post_meta($post_id, '_recommended', $recommended);
|
507 |
+
setcookie('dot_irecommendthis_'. $post_id, time(), time()+3600*24*365, '/');
|
508 |
|
|
|
|
|
509 |
}
|
510 |
|
511 |
+
|
512 |
+
|
|
|
|
|
513 |
|
514 |
if( $recommended == 0 ) { $suffix = $text_zero_suffix; }
|
515 |
elseif( $recommended == 1 ) { $suffix = $text_one_suffix; }
|
536 |
|
537 |
function dot_recommend($id=null)
|
538 |
{
|
539 |
+
|
540 |
+
|
541 |
global $wpdb;
|
542 |
$ip = $_SERVER['REMOTE_ADDR'];
|
543 |
$post_ID = $id ? $id : get_the_ID();
|
|
|
544 |
global $post;
|
545 |
|
546 |
+
/*
|
547 |
+
|
548 |
+
Check if Unique IP saving is required or disabled
|
549 |
+
|
550 |
+
*/
|
551 |
+
if( !isset($options['disable_unique_ip']) ) $options['disable_unique_ip'] = '0';
|
552 |
+
|
553 |
+
if( $options['disable_unique_ip'] = '0' ) {
|
554 |
+
|
555 |
+
$voteStatusByIp = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."irecommendthis_votes WHERE post_id = '$post_ID' AND ip = '$ip'");
|
556 |
+
}
|
557 |
|
558 |
|
559 |
$options = get_option( 'dot_irecommendthis_settings' );
|
567 |
|
568 |
//if ( isset($_COOKIE['dot_irecommendthis_'. $post_id]) && $voteStatusByIp != 0 ) {
|
569 |
|
570 |
+
if( $options['disable_unique_ip'] = '0' ) {
|
571 |
+
|
572 |
+
if (!isset($_COOKIE['dot_irecommendthis_'.$post_ID]) && $voteStatusByIp == 0) {
|
573 |
+
$class = 'dot-irecommendthis';
|
574 |
+
|
575 |
|
576 |
+
if( $options['link_title_new'] == '' ) {
|
577 |
|
578 |
+
$title = __('Recommend this', 'dot');
|
579 |
|
580 |
+
} else {
|
581 |
|
582 |
+
$title = $options['link_title_new'];
|
583 |
|
584 |
+
}
|
585 |
|
586 |
}
|
587 |
+
else {
|
588 |
|
589 |
+
$class = 'dot-irecommendthis active';
|
590 |
+
|
591 |
+
if( $options['link_title_active'] == '' ) {
|
592 |
+
|
593 |
+
$title = __('You already recommended this', 'dot');
|
594 |
|
595 |
+
} else {
|
596 |
|
597 |
+
$title = $options['link_title_active'];
|
598 |
|
599 |
+
}
|
600 |
+
}
|
601 |
+
|
602 |
+
} else {
|
603 |
|
604 |
+
if (!isset($_COOKIE['dot_irecommendthis_'.$post_ID])) {
|
605 |
+
$class = 'dot-irecommendthis';
|
606 |
|
607 |
+
|
608 |
+
if( $options['link_title_new'] == '' ) {
|
609 |
+
|
610 |
+
$title = __('Recommend this', 'dot');
|
611 |
+
|
612 |
+
} else {
|
613 |
+
|
614 |
+
$title = $options['link_title_new'];
|
615 |
+
|
616 |
+
}
|
617 |
|
618 |
}
|
619 |
+
else {
|
620 |
+
|
621 |
+
$class = 'dot-irecommendthis active';
|
622 |
+
|
623 |
+
if( $options['link_title_active'] == '' ) {
|
624 |
+
|
625 |
+
$title = __('You already recommended this', 'dot');
|
626 |
+
|
627 |
+
} else {
|
628 |
+
|
629 |
+
$title = $options['link_title_active'];
|
630 |
+
|
631 |
+
}
|
632 |
+
}
|
633 |
+
|
634 |
+
|
635 |
}
|
636 |
|
637 |
return '<a href="#" class="'. $class .'" id="dot-irecommendthis-'. $post_ID .'" title="'. $title .'">'. $output .'</a>';
|
languages/dot-irecommendthis-en.mo
CHANGED
Binary file
|
languages/dot-irecommendthis-en.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: I Recommend This 2.2.0\n"
|
4 |
-
"POT-Creation-Date: 2013-
|
5 |
-
"PO-Revision-Date: 2013-
|
6 |
"Last-Translator: DOT <hello@dreamsmedia.in>\n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
@@ -58,21 +58,31 @@ msgstr ""
|
|
58 |
|
59 |
#: D:\Projects\Plugin
|
60 |
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:157
|
61 |
-
msgid "
|
62 |
msgstr ""
|
63 |
|
64 |
#: D:\Projects\Plugin
|
65 |
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:159
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
msgid "Shortcode and Template Tag"
|
67 |
msgstr ""
|
68 |
|
69 |
#: D:\Projects\Plugin
|
70 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
71 |
msgid "Save Changes"
|
72 |
msgstr ""
|
73 |
|
74 |
#: D:\Projects\Plugin
|
75 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
76 |
msgid ""
|
77 |
"<a href=\"https://twitter.com/harishchouhan\" class=\"twitter-follow-button"
|
78 |
"\" data-show-count=\"false\">Follow @harishchouhan</a>\n"
|
@@ -84,101 +94,103 @@ msgid ""
|
|
84 |
msgstr ""
|
85 |
|
86 |
#: D:\Projects\Plugin
|
87 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
88 |
msgid ""
|
89 |
"This plugin allows your visitors to simply recommend or like your posts "
|
90 |
"instead of commment it."
|
91 |
msgstr ""
|
92 |
|
93 |
#: D:\Projects\Plugin
|
94 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
95 |
msgid "Posts"
|
96 |
msgstr ""
|
97 |
|
98 |
#: D:\Projects\Plugin
|
99 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
100 |
msgid "All other pages like Index, Archive, etc."
|
101 |
msgstr ""
|
102 |
|
103 |
#: D:\Projects\Plugin
|
104 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
105 |
msgid ""
|
106 |
"Text to display after zero count. Leave blank for no text after the count."
|
107 |
msgstr ""
|
108 |
|
109 |
#: D:\Projects\Plugin
|
110 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
111 |
msgid ""
|
112 |
"Text to display after 1 person has recommended. Leave blank for no text "
|
113 |
"after the count."
|
114 |
msgstr ""
|
115 |
|
116 |
#: D:\Projects\Plugin
|
117 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
118 |
msgid ""
|
119 |
"Text to display after more than 1 person have recommended. Leave blank for "
|
120 |
"no text after the count."
|
121 |
msgstr ""
|
122 |
|
123 |
#: D:\Projects\Plugin
|
124 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
125 |
msgid "Link Title element for posts not yet voted by a user."
|
126 |
msgstr ""
|
127 |
|
128 |
#: D:\Projects\Plugin
|
129 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
130 |
msgid "Link Title element for posts already voted by a user."
|
131 |
msgstr ""
|
132 |
|
133 |
#: D:\Projects\Plugin
|
134 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
135 |
msgid "Default style - Thumb"
|
136 |
msgstr ""
|
137 |
|
138 |
#: D:\Projects\Plugin
|
139 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
140 |
msgid "Heart"
|
141 |
msgstr ""
|
142 |
|
143 |
#: D:\Projects\Plugin
|
144 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
145 |
msgid ""
|
146 |
"To use I Recomment This in your posts and pages you can use the shortcode:"
|
147 |
msgstr ""
|
148 |
|
149 |
#: D:\Projects\Plugin
|
150 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
151 |
msgid ""
|
152 |
"To use I Recomment This manually in your theme template use the following "
|
153 |
"PHP code:"
|
154 |
msgstr ""
|
155 |
|
156 |
#: D:\Projects\Plugin
|
157 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
|
|
158 |
msgid "Recommend this"
|
159 |
msgstr ""
|
160 |
|
161 |
#: D:\Projects\Plugin
|
162 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
|
|
163 |
msgid "You already recommended this"
|
164 |
msgstr ""
|
165 |
|
166 |
#: D:\Projects\Plugin
|
167 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
168 |
msgid "Title:"
|
169 |
msgstr ""
|
170 |
|
171 |
#: D:\Projects\Plugin
|
172 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
173 |
msgid "Number of posts to show:"
|
174 |
msgstr ""
|
175 |
|
176 |
#: D:\Projects\Plugin
|
177 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
178 |
msgid "Show post count"
|
179 |
msgstr ""
|
180 |
|
181 |
#: D:\Projects\Plugin
|
182 |
-
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:
|
183 |
msgid "Settings"
|
184 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: I Recommend This 2.2.0\n"
|
4 |
+
"POT-Creation-Date: 2013-07-01 09:20+0530\n"
|
5 |
+
"PO-Revision-Date: 2013-07-01 09:20+0530\n"
|
6 |
"Last-Translator: DOT <hello@dreamsmedia.in>\n"
|
7 |
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
58 |
|
59 |
#: D:\Projects\Plugin
|
60 |
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:157
|
61 |
+
msgid "Hide Zero Count"
|
62 |
msgstr ""
|
63 |
|
64 |
#: D:\Projects\Plugin
|
65 |
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:159
|
66 |
+
msgid "Disable IP saving"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: D:\Projects\Plugin
|
70 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:161
|
71 |
+
msgid "Choose a style"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: D:\Projects\Plugin
|
75 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:163
|
76 |
msgid "Shortcode and Template Tag"
|
77 |
msgstr ""
|
78 |
|
79 |
#: D:\Projects\Plugin
|
80 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:191
|
81 |
msgid "Save Changes"
|
82 |
msgstr ""
|
83 |
|
84 |
#: D:\Projects\Plugin
|
85 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:205
|
86 |
msgid ""
|
87 |
"<a href=\"https://twitter.com/harishchouhan\" class=\"twitter-follow-button"
|
88 |
"\" data-show-count=\"false\">Follow @harishchouhan</a>\n"
|
94 |
msgstr ""
|
95 |
|
96 |
#: D:\Projects\Plugin
|
97 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:207
|
98 |
msgid ""
|
99 |
"This plugin allows your visitors to simply recommend or like your posts "
|
100 |
"instead of commment it."
|
101 |
msgstr ""
|
102 |
|
103 |
#: D:\Projects\Plugin
|
104 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:219
|
105 |
msgid "Posts"
|
106 |
msgstr ""
|
107 |
|
108 |
#: D:\Projects\Plugin
|
109 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:222
|
110 |
msgid "All other pages like Index, Archive, etc."
|
111 |
msgstr ""
|
112 |
|
113 |
#: D:\Projects\Plugin
|
114 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:261
|
115 |
msgid ""
|
116 |
"Text to display after zero count. Leave blank for no text after the count."
|
117 |
msgstr ""
|
118 |
|
119 |
#: D:\Projects\Plugin
|
120 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:269
|
121 |
msgid ""
|
122 |
"Text to display after 1 person has recommended. Leave blank for no text "
|
123 |
"after the count."
|
124 |
msgstr ""
|
125 |
|
126 |
#: D:\Projects\Plugin
|
127 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:278
|
128 |
msgid ""
|
129 |
"Text to display after more than 1 person have recommended. Leave blank for "
|
130 |
"no text after the count."
|
131 |
msgstr ""
|
132 |
|
133 |
#: D:\Projects\Plugin
|
134 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:287
|
135 |
msgid "Link Title element for posts not yet voted by a user."
|
136 |
msgstr ""
|
137 |
|
138 |
#: D:\Projects\Plugin
|
139 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:296
|
140 |
msgid "Link Title element for posts already voted by a user."
|
141 |
msgstr ""
|
142 |
|
143 |
#: D:\Projects\Plugin
|
144 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:305
|
145 |
msgid "Default style - Thumb"
|
146 |
msgstr ""
|
147 |
|
148 |
#: D:\Projects\Plugin
|
149 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:308
|
150 |
msgid "Heart"
|
151 |
msgstr ""
|
152 |
|
153 |
#: D:\Projects\Plugin
|
154 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:313
|
155 |
msgid ""
|
156 |
"To use I Recomment This in your posts and pages you can use the shortcode:"
|
157 |
msgstr ""
|
158 |
|
159 |
#: D:\Projects\Plugin
|
160 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:315
|
161 |
msgid ""
|
162 |
"To use I Recomment This manually in your theme template use the following "
|
163 |
"PHP code:"
|
164 |
msgstr ""
|
165 |
|
166 |
#: D:\Projects\Plugin
|
167 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:578
|
168 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:610
|
169 |
msgid "Recommend this"
|
170 |
msgstr ""
|
171 |
|
172 |
#: D:\Projects\Plugin
|
173 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:593
|
174 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:625
|
175 |
msgid "You already recommended this"
|
176 |
msgstr ""
|
177 |
|
178 |
#: D:\Projects\Plugin
|
179 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:718
|
180 |
msgid "Title:"
|
181 |
msgstr ""
|
182 |
|
183 |
#: D:\Projects\Plugin
|
184 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:721
|
185 |
msgid "Number of posts to show:"
|
186 |
msgstr ""
|
187 |
|
188 |
#: D:\Projects\Plugin
|
189 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:724
|
190 |
msgid "Show post count"
|
191 |
msgstr ""
|
192 |
|
193 |
#: D:\Projects\Plugin
|
194 |
+
#: Development\i-recommend-this\trunk/dot-irecommendthis.php:762
|
195 |
msgid "Settings"
|
196 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.dreamsonline.net
|
|
4 |
Tags: recommend, like, love, post, rate, rating, heart, dribbble like, tumblr like
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.5.2
|
7 |
-
Stable tag: 2.
|
8 |
-
Last Updated: 2013-
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -21,8 +21,16 @@ This plugin allows your visitors to simply like/recommend your posts instead of
|
|
21 |
* A counter to display the number of "like" and to vote.
|
22 |
* A widget and a function to display the X most liked posts.
|
23 |
* A preference pane with some options.
|
|
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
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.
|
27 |
|
28 |
Please report any bugs you find via http://www.dreamsonline.net/wordpress-plugins/i-recommend-this/
|
@@ -64,6 +72,11 @@ You can also visit the [support center](http://www.dreamsonline.net/wordpress-pl
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
|
|
67 |
= 2.2.0
|
68 |
* Added option to customize the link title. You can now remove the word recomment and add anything you like. Ideas suggested by Krystina Montemurro.
|
69 |
|
4 |
Tags: recommend, like, love, post, rate, rating, heart, dribbble like, tumblr like
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.5.2
|
7 |
+
Stable tag: 2.3.0
|
8 |
+
Last Updated: 2013-June-30
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
21 |
* A counter to display the number of "like" and to vote.
|
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 =
|
28 |
+
* Hide count if count is zero
|
29 |
+
* Set a default messages when count is zero, one or more
|
30 |
+
* Choose between a "Thumbs Up" or a "Heart" icon to allow recommending on a post
|
31 |
+
* Disable CSS to allow you to add your own styling rules
|
32 |
+
* Disable saving of IP address in the table.
|
33 |
+
|
34 |
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.
|
35 |
|
36 |
Please report any bugs you find via http://www.dreamsonline.net/wordpress-plugins/i-recommend-this/
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 2.3.0
|
76 |
+
* Added option to hide count if count is zero
|
77 |
+
* Added option to disable saving of IP address in the database
|
78 |
+
|
79 |
+
|
80 |
= 2.2.0
|
81 |
* Added option to customize the link title. You can now remove the word recomment and add anything you like. Ideas suggested by Krystina Montemurro.
|
82 |
|