Version Description
- Tweak: Added Max Height option in Premium Modal Box widget.
- Fixed: Pointer issue in Premium Banner widget.
- Fixed: Video restart in Premium Modal Box.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.7.1 |
Comparing to | |
See all releases |
Code changes from version 2.7.0 to 2.7.1
- admin/settings/version-control.php +1 -1
- assets/css/premium-addons.css +1 -1
- assets/js/lib/modal.js +9 -2
- premium-addons-for-elementor.php +4 -4
- readme.txt +29 -22
- widgets/premium-modalbox.php +18 -0
admin/settings/version-control.php
CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
|
|
79 |
<tr class="pa-roll-row">
|
80 |
<th>Rollback Version</th>
|
81 |
<td>
|
82 |
-
<div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.
|
83 |
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
|
84 |
</td>
|
85 |
</tr>
|
79 |
<tr class="pa-roll-row">
|
80 |
<th>Rollback Version</th>
|
81 |
<td>
|
82 |
+
<div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.7.0</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
|
83 |
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
|
84 |
</td>
|
85 |
</tr>
|
assets/css/premium-addons.css
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
margin: 0 0 35px;
|
24 |
background: #3085a3;
|
25 |
text-align: center;
|
26 |
-
cursor: pointer
|
27 |
-webkit-box-sizing: border-box;
|
28 |
-moz-box-sizing: border-box;
|
29 |
box-sizing: border-box;
|
23 |
margin: 0 0 35px;
|
24 |
background: #3085a3;
|
25 |
text-align: center;
|
26 |
+
/* cursor: pointer;*/
|
27 |
-webkit-box-sizing: border-box;
|
28 |
-moz-box-sizing: border-box;
|
29 |
box-sizing: border-box;
|
assets/js/lib/modal.js
CHANGED
@@ -340,18 +340,25 @@ if (typeof jQuery === 'undefined') {
|
|
340 |
// MODAL DATA-API
|
341 |
// ==============
|
342 |
|
|
|
|
|
343 |
$(document).on('click.bs.modal.data-api', '[data-toggle="premium-modal"]', function (e) {
|
|
|
344 |
var $this = $(this)
|
345 |
var href = $this.attr('href')
|
346 |
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
|
347 |
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
348 |
|
349 |
if ($this.is('a')) e.preventDefault()
|
350 |
-
|
351 |
$target.one('show.bs.modal', function (showEvent) {
|
|
|
|
|
|
|
352 |
if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
|
353 |
$target.one('hidden.bs.modal', function () {
|
354 |
-
$(this).find('iframe').attr("src",
|
|
|
355 |
$this.is(':visible') && $this.trigger('focus')
|
356 |
})
|
357 |
})
|
340 |
// MODAL DATA-API
|
341 |
// ==============
|
342 |
|
343 |
+
var counter = 0,
|
344 |
+
iframe;
|
345 |
$(document).on('click.bs.modal.data-api', '[data-toggle="premium-modal"]', function (e) {
|
346 |
+
|
347 |
var $this = $(this)
|
348 |
var href = $this.attr('href')
|
349 |
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
|
350 |
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
351 |
|
352 |
if ($this.is('a')) e.preventDefault()
|
353 |
+
|
354 |
$target.one('show.bs.modal', function (showEvent) {
|
355 |
+
if( counter === 0 ) {
|
356 |
+
iframe = $(this).find("iframe").attr("src");
|
357 |
+
}
|
358 |
if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
|
359 |
$target.one('hidden.bs.modal', function () {
|
360 |
+
$(this).find('iframe').attr("src", iframe); //Stop videos after modal close
|
361 |
+
counter++;
|
362 |
$this.is(':visible') && $this.trigger('focus')
|
363 |
})
|
364 |
})
|
premium-addons-for-elementor.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
-
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 2.7.
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -22,12 +22,12 @@ if (! function_exists('add_action')) {
|
|
22 |
if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
23 |
|
24 |
|
25 |
-
define('PREMIUM_ADDONS_VERSION', '2.7.
|
26 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
27 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
28 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
29 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
30 |
-
define('PREMIUM_ADDONS_STABLE_VERSION', '2.
|
31 |
|
32 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
33 |
/*
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
+
Description: Premium Addons Plugin Includes 20+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 2.7.1
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
22 |
if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
23 |
|
24 |
|
25 |
+
define('PREMIUM_ADDONS_VERSION', '2.7.1');
|
26 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
27 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
28 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
29 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
30 |
+
define('PREMIUM_ADDONS_STABLE_VERSION', '2.7.0');
|
31 |
|
32 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
33 |
/*
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.8
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.7.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -61,27 +61,28 @@ Premium Addons for Elementor can be used only as a complement of Elementor page
|
|
61 |
4. [Premium Charts](https://premiumaddons.com/charts-widget-for-elementor-page-builder/)
|
62 |
5. [Premium Content Switcher](https://premiumaddons.com/content-switcher-widget-for-elementor-page-builder/)
|
63 |
6. [Premium Divider](https://premiumaddons.com/dual-header-widget-for-elementor-page-builder/)
|
64 |
-
7. [Premium Facebook
|
65 |
-
8. [Premium Facebook
|
66 |
-
9. [Premium
|
67 |
-
10. [Premium
|
68 |
-
11. [Premium
|
69 |
-
12. [Premium
|
70 |
-
13. [Premium
|
71 |
-
14. [Premium Image
|
72 |
-
15. [Premium Image
|
73 |
-
16. [Premium
|
74 |
-
17. [Premium
|
75 |
-
18. [Premium
|
76 |
-
19. [Premium
|
77 |
-
20. [Premium
|
78 |
-
21. [Premium
|
79 |
-
22. [Premium
|
80 |
-
23. [Premium
|
81 |
-
24. [Premium
|
82 |
-
25. [Premium
|
83 |
-
26. [Premium
|
84 |
-
27. [Premium
|
|
|
85 |
|
86 |
|
87 |
== Installation ==
|
@@ -135,6 +136,12 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
= 2.7.0 =
|
139 |
|
140 |
- Fixed: 'Undefined variable: $image_src' in Premium Testimonials widget.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.8
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.7.1
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
61 |
4. [Premium Charts](https://premiumaddons.com/charts-widget-for-elementor-page-builder/)
|
62 |
5. [Premium Content Switcher](https://premiumaddons.com/content-switcher-widget-for-elementor-page-builder/)
|
63 |
6. [Premium Divider](https://premiumaddons.com/dual-header-widget-for-elementor-page-builder/)
|
64 |
+
7. [Premium Facebook Feed](https://premiumaddons.com/facebook-feed-widget-for-elementor-page-builder-2/)
|
65 |
+
8. [Premium Facebook Messenger](https://premiumaddons.com/facebook-messenger-widget-for-elementor-page-builder/)
|
66 |
+
9. [Premium Facebook Reviews](https://premiumaddons.com/facebook-reviews-widget-for-elementor-page-builder/)
|
67 |
+
10. [Premium Flip Box](https://premiumaddons.com/flip-box-widget-for-elementor-page-builder/)
|
68 |
+
11. [Premium Google Reviews](https://premiumaddons.com/google-reviews-for-elementor-page-builder/)
|
69 |
+
12. [Premium Icon Box](https://premiumaddons.com/icon-box-widget-for-elementor-page-builder/)
|
70 |
+
13. [Premium iHover](https://premiumaddons.com/ihover-widget-for-elementor-page-builder/)
|
71 |
+
14. [Premium Image Comparison](https://premiumaddons.com/image-comparison-widget-for-elementor-page-builder/)
|
72 |
+
15. [Premium Image Hotspots](https://premiumaddons.com/image-hotspots-widget-for-elementor-page-builder/)
|
73 |
+
16. [Premium Image Layers](https://premiumaddons.com/image-layers-widget-for-elementor-page-builder/)
|
74 |
+
17. [Premium Instagram Feed](https://premiumaddons.com/instagram-feed-widget-for-elementor-page-builder/)
|
75 |
+
18. [Premium Ken Burns](https://premiumaddons.com/ken-burns-section-addon-for-elementor-page-builder/)
|
76 |
+
19. [Premium Magic Section](https://premiumaddons.com/magic-section-widget-for-elementor-page-builder/)
|
77 |
+
20. [Premium Multi Scroll](https://premiumaddons.com/multi-scroll-widget-for-elementor-page-builder/)
|
78 |
+
21. [Premium Parallax](https://premiumaddons.com/parallax-section-addon-for-elementor-page-builder/)
|
79 |
+
22. [Premium Particles](https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/)
|
80 |
+
23. [Premium Preview Window](https://premiumaddons.com/preview-window-widget-for-elementor-page-builder/)
|
81 |
+
24. [Premium Tables](https://premiumaddons.com/table-widget-for-elementor-page-builder/)
|
82 |
+
25. [Premium Twitter Feed](https://premiumaddons.com/twitter-feed-widget-for-elementor-page-builder/)
|
83 |
+
26. [Premium Tabs](https://premiumaddons.com/tabs-widget-for-elementor-page-builder-2/)
|
84 |
+
27. [Premium Unfold](https://premiumaddons.com/unfold-widget-for-elementor-page-builder/)
|
85 |
+
28. [Premium Whatsapp Chat](https://premiumaddons.com/whatsapp-widget-for-elementor-page-builder/)
|
86 |
|
87 |
|
88 |
== Installation ==
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 2.7.1 =
|
140 |
+
|
141 |
+
- Tweak: Added Max Height option in Premium Modal Box widget.
|
142 |
+
- Fixed: Pointer issue in Premium Banner widget.
|
143 |
+
- Fixed: Video restart in Premium Modal Box.
|
144 |
+
|
145 |
= 2.7.0 =
|
146 |
|
147 |
- Fixed: 'Undefined variable: $image_src' in Premium Testimonials widget.
|
widgets/premium-modalbox.php
CHANGED
@@ -1110,6 +1110,24 @@ class Premium_Modalbox extends Widget_Base {
|
|
1110 |
]
|
1111 |
);
|
1112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1113 |
/*Modal Background Color*/
|
1114 |
$this->add_control('premium_modal_box_modal_background',
|
1115 |
[
|
1110 |
]
|
1111 |
);
|
1112 |
|
1113 |
+
$this->add_responsive_control('premium_modal_box_modal_max_height',
|
1114 |
+
[
|
1115 |
+
'label' => esc_html__('Max Height', 'premium-addons-for-elementor'),
|
1116 |
+
'type' => Controls_Manager::SLIDER,
|
1117 |
+
'size_units' => ['px', 'em'],
|
1118 |
+
'range' => [
|
1119 |
+
'px' => [
|
1120 |
+
'min' => 50,
|
1121 |
+
'max' => 1000,
|
1122 |
+
]
|
1123 |
+
],
|
1124 |
+
'label_block' => true,
|
1125 |
+
'selectors' => [
|
1126 |
+
'{{WRAPPER}} .premium-modal-box-modal-dialog' => 'max-height: {{SIZE}}{{UNIT}};',
|
1127 |
+
]
|
1128 |
+
]
|
1129 |
+
);
|
1130 |
+
|
1131 |
/*Modal Background Color*/
|
1132 |
$this->add_control('premium_modal_box_modal_background',
|
1133 |
[
|