Version Description
- Please upgrade immediately - Multiple Enhancements and bugfixes.
=
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Related Posts Thumbnails Plugin for WordPress |
Version | 1.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.6.5
- readme.txt +6 -3
- related-posts-thumbnails.php +27 -5
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Related Posts Thumbnails Plugin for WordPress ===
|
2 |
Contributors: marynixie, hiddenpearls, WPBrigade
|
3 |
Donate link: https://wpbrigade.com/
|
4 |
-
Tags: related
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -67,11 +67,14 @@ If there are no images of the specified size in the post, or file does not exist
|
|
67 |
|
68 |
== Upgrade Notice ==
|
69 |
|
70 |
-
= 1.6.
|
71 |
* Please upgrade immediately - Multiple Enhancements and bugfixes.
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
75 |
= 1.6.4 - 2018-06-06 =
|
76 |
* Feature : Add sort by option for Related Posts.
|
77 |
* Enhancement : Add class attribute in list styling, if someone wants to style list Related Posts.
|
1 |
=== Related Posts Thumbnails Plugin for WordPress ===
|
2 |
Contributors: marynixie, hiddenpearls, WPBrigade
|
3 |
Donate link: https://wpbrigade.com/
|
4 |
+
Tags: easy related posts, Related Posts thumbnails, Free Related Posts, related posts, similar related posts
|
5 |
Requires at least: 3.6
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.6.5
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
67 |
|
68 |
== Upgrade Notice ==
|
69 |
|
70 |
+
= 1.6.5 =
|
71 |
* Please upgrade immediately - Multiple Enhancements and bugfixes.
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.6.5 - 2018-06-14 =
|
76 |
+
* Bug Fix : Last update broke layout because of direct function usage in templates.
|
77 |
+
|
78 |
= 1.6.4 - 2018-06-06 =
|
79 |
* Feature : Add sort by option for Related Posts.
|
80 |
* Enhancement : Add class attribute in list styling, if someone wants to style list Related Posts.
|
related-posts-thumbnails.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WordPress Related Posts Thumbnails
|
4 |
* Plugin URI: https://wpbrigade.com/wordpress/plugins/related-posts/?utm_source=related-posts-lite&utm_medium=plugin-uri&utm_campaign=pro-upgrade-rp
|
5 |
* Description: Showing related posts thumbnails under the posts.
|
6 |
-
* Version: 1.6.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/?utm_source=related-posts-lite&utm_medium=author-link&utm_campaign=pro-upgrade-rp
|
9 |
*/
|
@@ -396,7 +396,10 @@ class RelatedPostsThumbnails {
|
|
396 |
$sort_by = get_option( 'rpt_post_sort') == 'latest' ? 'post_date': 'rand()';
|
397 |
|
398 |
// rpt_content_align: add content allignment class; clases are: relpost-align-left, relpost-align-right and relpost-align-center
|
399 |
-
$output = '
|
|
|
|
|
|
|
400 |
$alt = '';
|
401 |
|
402 |
if ( $posts_number <= 0 ) { // return nothing if this parameter was set to <= 0
|
@@ -581,14 +584,23 @@ class RelatedPostsThumbnails {
|
|
581 |
|
582 |
|
583 |
if ( $relpoststh_output_style == 'list' ) {
|
|
|
584 |
$output .= '<ul id="related_posts_thumbnails"';
|
585 |
if ( ! $relpoststh_cleanhtml ) {
|
586 |
$output .= ' style="list-style-type:none; list-style-position: inside; padding: 0; margin:0"';
|
587 |
}
|
588 |
$output .= '>';
|
589 |
} else {
|
590 |
-
|
591 |
-
$output .= '<div style="clear: both"></div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
}
|
593 |
|
594 |
foreach ( $posts as $post ) {
|
@@ -726,12 +738,22 @@ class RelatedPostsThumbnails {
|
|
726 |
} // end foreach
|
727 |
if ( $relpoststh_output_style == 'list' ) {
|
728 |
$output .= '</ul>';
|
|
|
729 |
} else {
|
730 |
-
$output .= '</div
|
|
|
|
|
|
|
731 |
}
|
732 |
|
733 |
$output .= '<div style="clear: both"></div>';
|
|
|
|
|
|
|
|
|
734 |
$output .= '</div>';
|
|
|
|
|
735 |
return $this->finish_process( $output, $debug, $time );
|
736 |
|
737 |
}
|
3 |
* Plugin Name: WordPress Related Posts Thumbnails
|
4 |
* Plugin URI: https://wpbrigade.com/wordpress/plugins/related-posts/?utm_source=related-posts-lite&utm_medium=plugin-uri&utm_campaign=pro-upgrade-rp
|
5 |
* Description: Showing related posts thumbnails under the posts.
|
6 |
+
* Version: 1.6.5
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/?utm_source=related-posts-lite&utm_medium=author-link&utm_campaign=pro-upgrade-rp
|
9 |
*/
|
396 |
$sort_by = get_option( 'rpt_post_sort') == 'latest' ? 'post_date': 'rand()';
|
397 |
|
398 |
// rpt_content_align: add content allignment class; clases are: relpost-align-left, relpost-align-right and relpost-align-center
|
399 |
+
$output = '<!-- relpost-thumb-wrapper -->';
|
400 |
+
$output .= '<div class="relpost-thumb-wrapper">';
|
401 |
+
$output .= '<!-- filter-class -->';
|
402 |
+
$output .='<div class="'. apply_filters( 'rpt_content_align', '' ) . '">';
|
403 |
$alt = '';
|
404 |
|
405 |
if ( $posts_number <= 0 ) { // return nothing if this parameter was set to <= 0
|
584 |
|
585 |
|
586 |
if ( $relpoststh_output_style == 'list' ) {
|
587 |
+
$output .= '<!-- related_posts_thumbnails -->';
|
588 |
$output .= '<ul id="related_posts_thumbnails"';
|
589 |
if ( ! $relpoststh_cleanhtml ) {
|
590 |
$output .= ' style="list-style-type:none; list-style-position: inside; padding: 0; margin:0"';
|
591 |
}
|
592 |
$output .= '>';
|
593 |
} else {
|
594 |
+
|
595 |
+
$output .= '<div style="clear: both"></div>';
|
596 |
+
|
597 |
+
// $output .= '<!-- related-posts-nav -->';
|
598 |
+
// $output .= '<ul class="related-posts-nav">'; //open blocks ul
|
599 |
+
|
600 |
+
$output .= '<div style="clear: both"></div>';
|
601 |
+
|
602 |
+
$output .= '<!-- relpost-block-container -->';
|
603 |
+
$output .= '<div class="relpost-block-container">'; // open relpost-block-container div
|
604 |
}
|
605 |
|
606 |
foreach ( $posts as $post ) {
|
738 |
} // end foreach
|
739 |
if ( $relpoststh_output_style == 'list' ) {
|
740 |
$output .= '</ul>';
|
741 |
+
$output .= '<!-- close related_posts_thumbnails -->';
|
742 |
} else {
|
743 |
+
$output .= '</div>';
|
744 |
+
$output .= '<!-- close relpost-block-container -->';
|
745 |
+
// $output .= '</ul>';
|
746 |
+
// $output .= '<!-- close related-posts-nav -->';
|
747 |
}
|
748 |
|
749 |
$output .= '<div style="clear: both"></div>';
|
750 |
+
|
751 |
+
$output .= '</div>';
|
752 |
+
$output .= '<!-- close filter class -->';
|
753 |
+
|
754 |
$output .= '</div>';
|
755 |
+
$output .= '<!-- close relpost-thumb-wrapper -->';
|
756 |
+
|
757 |
return $this->finish_process( $output, $debug, $time );
|
758 |
|
759 |
}
|