Version Description
- Fix: Fix image hover effects in WPSP Pro
Download this release
Release Info
Developer | edge22 |
Plugin | WP Show Posts |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.1.1
- inc/functions.php +10 -1
- readme.txt +7 -1
- wp-show-posts.php +2 -2
inc/functions.php
CHANGED
@@ -162,7 +162,16 @@ if ( ! function_exists( 'wpsp_post_image' ) ) {
|
|
162 |
$image_id = get_post_thumbnail_id( get_the_ID(), 'full' );
|
163 |
$image_url = wp_get_attachment_image_src( $image_id, 'full', true );
|
164 |
$image_atts = wpsp_image_attributes( $image_url[1], $image_url[2], $settings[ 'image_width' ], $settings[ 'image_height' ] );
|
165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
$disable_link = apply_filters( 'wpsp_disable_image_link', false, $settings );
|
167 |
?>
|
168 |
<div class="wp-show-posts-image <?php echo $hover . ' wpsp-image-' . $settings[ 'image_alignment' ]; ?> ">
|
162 |
$image_id = get_post_thumbnail_id( get_the_ID(), 'full' );
|
163 |
$image_url = wp_get_attachment_image_src( $image_id, 'full', true );
|
164 |
$image_atts = wpsp_image_attributes( $image_url[1], $image_url[2], $settings[ 'image_width' ], $settings[ 'image_height' ] );
|
165 |
+
|
166 |
+
// Set pro settings for old versions of WPSP Pro.
|
167 |
+
if ( defined( 'WPSP_PRO_VERSION' ) && version_compare( WPSP_PRO_VERSION, '0.6', '<' ) ) {
|
168 |
+
$settings[ 'image_overlay_color' ] = wpsp_sanitize_hex_color( wpsp_get_setting( $settings['list_id'], 'wpsp_image_overlay_color' ) );
|
169 |
+
$settings[ 'image_overlay_icon' ] = sanitize_text_field( wpsp_get_setting( $settings['list_id'], 'wpsp_image_overlay_icon' ) );
|
170 |
+
$hover = sanitize_text_field( wpsp_get_setting( $settings['list_id'], 'wpsp_image_hover_effect' ) );
|
171 |
+
} else {
|
172 |
+
$hover = ( isset( $settings[ 'image_hover_effect' ] ) && '' !== $settings[ 'image_hover_effect' ] ) ? $settings[ 'image_hover_effect' ] : '';
|
173 |
+
}
|
174 |
+
|
175 |
$disable_link = apply_filters( 'wpsp_disable_image_link', false, $settings );
|
176 |
?>
|
177 |
<div class="wp-show-posts-image <?php echo $hover . ' wpsp-image-' . $settings[ 'image_alignment' ]; ?> ">
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpshowposts.com
|
|
4 |
Tags: show posts, display posts shortcode, portfolio, gallery, post columns
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -162,6 +162,9 @@ In most cases, #1 will work fine and is way easier.
|
|
162 |
|
163 |
== Changelog ==
|
164 |
|
|
|
|
|
|
|
165 |
= 1.1 =
|
166 |
* New: Allow multiple taxonomy terms to be selected
|
167 |
* New: Choose the title HTML element
|
@@ -245,6 +248,9 @@ In most cases, #1 will work fine and is way easier.
|
|
245 |
|
246 |
== Upgrade Notice ==
|
247 |
|
|
|
|
|
|
|
248 |
= 1.1 =
|
249 |
* New: Allow multiple taxonomy terms to be selected
|
250 |
* New: Choose the title HTML element
|
4 |
Tags: show posts, display posts shortcode, portfolio, gallery, post columns
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
162 |
|
163 |
== Changelog ==
|
164 |
|
165 |
+
= 1.1.1 =
|
166 |
+
* Fix: Fix image hover effects in WPSP Pro
|
167 |
+
|
168 |
= 1.1 =
|
169 |
* New: Allow multiple taxonomy terms to be selected
|
170 |
* New: Choose the title HTML element
|
248 |
|
249 |
== Upgrade Notice ==
|
250 |
|
251 |
+
= 1.1.1 =
|
252 |
+
* Fix: Fix image hover effects in WPSP Pro
|
253 |
+
|
254 |
= 1.1 =
|
255 |
* New: Allow multiple taxonomy terms to be selected
|
256 |
* New: Choose the title HTML element
|
wp-show-posts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Show Posts
|
4 |
Plugin URI: https://wpshowposts.com
|
5 |
Description: WP Show Posts allows you to list posts (from any post type) anywhere on your site. This includes WooCommerce products or any other post type you might have! Check out the pro version for even more features at https://wpshowposts.com.
|
6 |
-
Version: 1.1
|
7 |
Author: Tom Usborne
|
8 |
Author URI: https://tomusborne.com
|
9 |
License: GNU General Public License v2 or later
|
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
}
|
18 |
|
19 |
// Define the current version
|
20 |
-
define( 'WPSP_VERSION', '1.1' );
|
21 |
|
22 |
// Add resizer script
|
23 |
if ( ! class_exists( 'WPSP_Resize' ) ) {
|
3 |
Plugin Name: WP Show Posts
|
4 |
Plugin URI: https://wpshowposts.com
|
5 |
Description: WP Show Posts allows you to list posts (from any post type) anywhere on your site. This includes WooCommerce products or any other post type you might have! Check out the pro version for even more features at https://wpshowposts.com.
|
6 |
+
Version: 1.1.1
|
7 |
Author: Tom Usborne
|
8 |
Author URI: https://tomusborne.com
|
9 |
License: GNU General Public License v2 or later
|
17 |
}
|
18 |
|
19 |
// Define the current version
|
20 |
+
define( 'WPSP_VERSION', '1.1.1' );
|
21 |
|
22 |
// Add resizer script
|
23 |
if ( ! class_exists( 'WPSP_Resize' ) ) {
|