Version Description
Download this release
Release Info
Developer | hchouhan |
Plugin | I Recommend This |
Version | 2.5.2 |
Comparing to | |
See all releases |
Code changes from version 2.5.1 to 2.5.2
- dot-irecommendthis.php +7 -6
- readme.txt +7 -4
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.
|
7 |
* Author: Harish Chouhan
|
8 |
* Author URI: http://www.harishchouhan.com
|
9 |
* Author Email: me@harishchouhan.com
|
@@ -316,7 +316,7 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
316 |
<p>'. __('To use I Recomment This manually in your theme template use the following PHP code:', 'dot') .'</p>
|
317 |
<p><code><?php if( function_exists(\'dot_irecommendthis\') ) dot_irecommendthis(); ?></code></p>
|
318 |
<p>'. __('To show top recommended post from a particular date use below shortcode', 'dot') .'</p>
|
319 |
-
<p><code>[dot_recommended_posts post_type=\'showcase\' number=\'10\' year=\'2013\' monthnum=\'7\']</code></p>';
|
320 |
}
|
321 |
|
322 |
function settings_validate($input)
|
@@ -667,8 +667,7 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
667 |
{
|
668 |
// get our variable from $atts
|
669 |
extract(shortcode_atts(array(
|
670 |
-
'
|
671 |
-
'after' => '</li>',
|
672 |
'number' => '10',
|
673 |
'post_type' => 'post',
|
674 |
'year' => '',
|
@@ -700,14 +699,16 @@ if ( ! class_exists( 'DOT_IRecommendThis' ) )
|
|
700 |
$post_title = stripslashes($item->post_title);
|
701 |
$permalink = get_permalink($item->ID);
|
702 |
$post_count = $item->meta_value;
|
703 |
-
|
|
|
|
|
704 |
|
705 |
if ( $show_count == '1') {
|
706 |
$return .= '<span class="votes">' . $post_count . '</span> ';
|
707 |
}
|
708 |
|
709 |
//$return .= get_the_post_thumbnail($item->ID, 'showcase-thumbnail');
|
710 |
-
$return .= $
|
711 |
|
712 |
}
|
713 |
return $return;
|
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.2
|
7 |
* Author: Harish Chouhan
|
8 |
* Author URI: http://www.harishchouhan.com
|
9 |
* Author Email: me@harishchouhan.com
|
316 |
<p>'. __('To use I Recomment This manually in your theme template use the following PHP code:', 'dot') .'</p>
|
317 |
<p><code><?php if( function_exists(\'dot_irecommendthis\') ) dot_irecommendthis(); ?></code></p>
|
318 |
<p>'. __('To show top recommended post from a particular date use below shortcode', 'dot') .'</p>
|
319 |
+
<p><code>[dot_recommended_posts container=\'div\' post_type=\'showcase\' number=\'10\' year=\'2013\' monthnum=\'7\']</code></p>';
|
320 |
}
|
321 |
|
322 |
function settings_validate($input)
|
667 |
{
|
668 |
// get our variable from $atts
|
669 |
extract(shortcode_atts(array(
|
670 |
+
'container' => 'li',
|
|
|
671 |
'number' => '10',
|
672 |
'post_type' => 'post',
|
673 |
'year' => '',
|
699 |
$post_title = stripslashes($item->post_title);
|
700 |
$permalink = get_permalink($item->ID);
|
701 |
$post_count = $item->meta_value;
|
702 |
+
|
703 |
+
$return .= '<' . $container . '>';
|
704 |
+
$return .= '<a href="' . $permalink . '" title="' . $post_title.'" rel="nofollow">' . $post_title . '</a> ';
|
705 |
|
706 |
if ( $show_count == '1') {
|
707 |
$return .= '<span class="votes">' . $post_count . '</span> ';
|
708 |
}
|
709 |
|
710 |
//$return .= get_the_post_thumbnail($item->ID, 'showcase-thumbnail');
|
711 |
+
$return .= '</' . $container . '>';
|
712 |
|
713 |
}
|
714 |
return $return;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.6.1
|
7 |
-
Stable tag: 2.5.
|
8 |
Last Updated: 2013-September-28
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -68,10 +68,10 @@ Shortcode
|
|
68 |
`[dot_recommends]`
|
69 |
|
70 |
To display the most recommended posts you can below code in your template
|
71 |
-
`<?php if( function_exists('dot_irecommendthis') ) echo do_shortcode("[dot_recommended_posts post_type='post' number='10' year='2013' monthnum='7']"); ?>`
|
72 |
|
73 |
Shortcode
|
74 |
-
`[dot_recommended_posts post_type='post' number='10' year='2013' monthnum='7']`
|
75 |
|
76 |
== Frequently Asked Questions ==
|
77 |
|
@@ -83,7 +83,10 @@ You can also visit the [support center](http://www.dreamsonline.net/wordpress-pl
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
-
= 2.5.
|
|
|
|
|
|
|
87 |
* Change shortcode name from dot_recommends_posts to dot_recommended_posts
|
88 |
|
89 |
= 2.5.0
|
4 |
Tags: recommend, like, love, post, rate, rating, heart, dribbble like, tumblr like
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.6.1
|
7 |
+
Stable tag: 2.5.2
|
8 |
Last Updated: 2013-September-28
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
68 |
`[dot_recommends]`
|
69 |
|
70 |
To display the most recommended posts you can below code in your template
|
71 |
+
`<?php if( function_exists('dot_irecommendthis') ) echo do_shortcode("[dot_recommended_posts container='div' post_type='post' number='10' year='2013' monthnum='7']"); ?>`
|
72 |
|
73 |
Shortcode
|
74 |
+
`[dot_recommended_posts post_type='post' container='div' number='10' year='2013' monthnum='7']`
|
75 |
|
76 |
== Frequently Asked Questions ==
|
77 |
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 2.5.2
|
87 |
+
* Replaced 'before' & 'after' attributes in shortocde 'dot_recommended_posts' with a single attribute 'container'
|
88 |
+
|
89 |
+
= 2.5.1
|
90 |
* Change shortcode name from dot_recommends_posts to dot_recommended_posts
|
91 |
|
92 |
= 2.5.0
|