Version Description
- Fixed:
Warning: A non-numeric value encountered
when Offset or Posts Per Page option is left blank in Blog widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 3.9.3 |
Comparing to | |
See all releases |
Code changes from version 3.9.2 to 3.9.3
- admin/assets/css/notice.css +0 -2
- admin/includes/admin-notices.php +1 -1
- premium-addons-for-elementor.php +3 -3
- readme.txt +6 -2
- widgets/premium-blog.php +2 -2
admin/assets/css/notice.css
CHANGED
@@ -98,8 +98,6 @@
|
|
98 |
position: relative;
|
99 |
}
|
100 |
.pa-bf-notice-wrap img {
|
101 |
-
width: 100%;
|
102 |
-
height: 100%;
|
103 |
display: block;
|
104 |
}
|
105 |
.pa-bf-notice-img .pa-bf-notice-cta {
|
98 |
position: relative;
|
99 |
}
|
100 |
.pa-bf-notice-wrap img {
|
|
|
|
|
101 |
display: block;
|
102 |
}
|
103 |
.pa-bf-notice-img .pa-bf-notice-cta {
|
admin/includes/admin-notices.php
CHANGED
@@ -330,7 +330,7 @@ class Admin_Notices {
|
|
330 |
|
331 |
$message = '<div class="pa-bf-notice-img">';
|
332 |
|
333 |
-
$message .= sprintf( '<img src="%s">', PREMIUM_ADDONS_URL .'admin/images/premium-addons-black-friday.png' );
|
334 |
|
335 |
$message .= sprintf( '<a class="pa-bf-notice-cta" href="%s" target="_blank"></a>', $link );
|
336 |
|
330 |
|
331 |
$message = '<div class="pa-bf-notice-img">';
|
332 |
|
333 |
+
$message .= sprintf( '<img src="%s" style="width: 100%%; height: 100%%">', PREMIUM_ADDONS_URL .'admin/images/premium-addons-black-friday.png' );
|
334 |
|
335 |
$message .= sprintf( '<a class="pa-bf-notice-cta" href="%s" target="_blank"></a>', $link );
|
336 |
|
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 3.9.
|
7 |
Author: Leap13
|
8 |
Author URI: https://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
|
|
14 |
if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
15 |
|
16 |
// Define Constants
|
17 |
-
define('PREMIUM_ADDONS_VERSION', '3.9.
|
18 |
define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
|
19 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
20 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
21 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
|
22 |
-
define('PREMIUM_ADDONS_STABLE_VERSION', '3.9.
|
23 |
|
24 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
25 |
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 3.9.3
|
7 |
Author: Leap13
|
8 |
Author URI: https://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
14 |
if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
15 |
|
16 |
// Define Constants
|
17 |
+
define('PREMIUM_ADDONS_VERSION', '3.9.3');
|
18 |
define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
|
19 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
20 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
21 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
|
22 |
+
define('PREMIUM_ADDONS_STABLE_VERSION', '3.9.2');
|
23 |
|
24 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
25 |
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
=== Premium Addons for Elementor ===
|
2 |
Contributors: Leap13, Rimoun
|
3 |
Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, Page Builder, Widgets, Elementor Widgets
|
4 |
Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme
|
5 |
Requires at Least: 4.5
|
6 |
Tested Up To: 5.3
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable Tag: 3.9.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -175,6 +175,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
178 |
= 3.9.2 =
|
179 |
|
180 |
- Tweak: Prevent rendering carousel item if no template is selected.
|
1 |
+
=== Premium Addons for Elementor ===
|
2 |
Contributors: Leap13, Rimoun
|
3 |
Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, Page Builder, Widgets, Elementor Widgets
|
4 |
Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme
|
5 |
Requires at Least: 4.5
|
6 |
Tested Up To: 5.3
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable Tag: 3.9.3
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 3.9.3 =
|
179 |
+
|
180 |
+
- Fixed: `Warning: A non-numeric value encountered` when Offset or Posts Per Page option is left blank in Blog widget.
|
181 |
+
|
182 |
= 3.9.2 =
|
183 |
|
184 |
- Tweak: Prevent rendering carousel item if no template is selected.
|
widgets/premium-blog.php
CHANGED
@@ -1906,9 +1906,9 @@ class Premium_Blog extends Widget_Base {
|
|
1906 |
|
1907 |
$settings = $this->get_settings();
|
1908 |
|
1909 |
-
$offset = $settings['premium_blog_offset'];
|
1910 |
|
1911 |
-
$post_per_page = $settings['premium_blog_number_of_posts'];
|
1912 |
|
1913 |
$new_offset = $offset + ( ( $paged - 1 ) * $post_per_page );
|
1914 |
|
1906 |
|
1907 |
$settings = $this->get_settings();
|
1908 |
|
1909 |
+
$offset = ! empty( $settings['premium_blog_offset'] ) ? $settings['premium_blog_offset'] : 0;
|
1910 |
|
1911 |
+
$post_per_page = ! empty( $settings['premium_blog_number_of_posts'] ) ? $settings['premium_blog_number_of_posts'] : 3;
|
1912 |
|
1913 |
$new_offset = $offset + ( ( $paged - 1 ) * $post_per_page );
|
1914 |
|