Version Description
- FIX: Critical bug where the popup backdrop was being displyed on mobile devices even though the popup was not firing.
- FIX: Critical bug that caused conflict with Testimonial slider.
- TWEAK: Adjusted CSS rule that was causing the popup to block certain elements.
Download this release
Release Info
Developer | norewp |
Plugin | PopBox For Elementor |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- css/popup.css +3 -10
- js/popup.js +0 -1
- modal-for-elementor.php +2 -2
- readme.txt +6 -1
- widgets/popup-load.php +3 -3
css/popup.css
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
-
@media screen and (min-width:
|
2 |
.modal {
|
3 |
text-align: center;
|
4 |
padding: 0 !important;
|
|
|
5 |
}
|
6 |
|
7 |
.modal-dialog {
|
@@ -21,18 +22,10 @@
|
|
21 |
}
|
22 |
}
|
23 |
|
24 |
-
@media screen and (max-width:
|
25 |
.modal {
|
26 |
-
display: block;
|
27 |
-
vertical-align: middle;
|
28 |
-
width: 100%;
|
29 |
-
margin: 0 auto;
|
30 |
padding-top: 80px;
|
31 |
}
|
32 |
-
|
33 |
-
.modal.modal-onload {
|
34 |
-
display: none;
|
35 |
-
}
|
36 |
}
|
37 |
|
38 |
.modal-body {
|
1 |
+
@media screen and (min-width: 768px) {
|
2 |
.modal {
|
3 |
text-align: center;
|
4 |
padding: 0 !important;
|
5 |
+
padding-top: 60px !important;
|
6 |
}
|
7 |
|
8 |
.modal-dialog {
|
22 |
}
|
23 |
}
|
24 |
|
25 |
+
@media screen and (max-width: 767px) {
|
26 |
.modal {
|
|
|
|
|
|
|
|
|
27 |
padding-top: 80px;
|
28 |
}
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
|
31 |
.modal-body {
|
js/popup.js
CHANGED
@@ -18,7 +18,6 @@ var isMobile = {
|
|
18 |
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
|
19 |
}
|
20 |
};
|
21 |
-
|
22 |
jQuery(document).ready(function($){
|
23 |
$('.modal-popup').click(function(){
|
24 |
var popup_id = $(this).attr('data-target');
|
18 |
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
|
19 |
}
|
20 |
};
|
|
|
21 |
jQuery(document).ready(function($){
|
22 |
$('.modal-popup').click(function(){
|
23 |
var popup_id = $(this).attr('data-target');
|
modal-for-elementor.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: PopBox For Elementor
|
4 |
* Description: Create content-rich popboxes for your site using the power of Elementor Page Builder
|
5 |
-
* Version: 1.0.
|
6 |
* Author: Zulfikar Nore
|
7 |
* Author URI: https://designsbynore.com/
|
8 |
* Plugin URI: https://designsbynore.com/popups/popbox/
|
@@ -12,7 +12,7 @@
|
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
-
define( 'MODAL_ELEMENTOR_VERSION', '1.0.
|
16 |
|
17 |
define( 'MODAL_ELEMENTOR__FILE__', __FILE__ );
|
18 |
define( 'MODAL_ELEMENTOR_PLUGIN_BASE', plugin_basename( MODAL_ELEMENTOR__FILE__ ) );
|
2 |
/**
|
3 |
* Plugin Name: PopBox For Elementor
|
4 |
* Description: Create content-rich popboxes for your site using the power of Elementor Page Builder
|
5 |
+
* Version: 1.0.7
|
6 |
* Author: Zulfikar Nore
|
7 |
* Author URI: https://designsbynore.com/
|
8 |
* Plugin URI: https://designsbynore.com/popups/popbox/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
+
define( 'MODAL_ELEMENTOR_VERSION', '1.0.7' );
|
16 |
|
17 |
define( 'MODAL_ELEMENTOR__FILE__', __FILE__ );
|
18 |
define( 'MODAL_ELEMENTOR_PLUGIN_BASE', plugin_basename( MODAL_ELEMENTOR__FILE__ ) );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/NoreMarketing/5
|
|
4 |
Tags: PopBox, Modal, Popup, Elementor
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -33,6 +33,11 @@ Go to settings > permalinks and click save. (you need to do that in order to reg
|
|
33 |
|
34 |
== Changelog ==
|
35 |
|
|
|
|
|
|
|
|
|
|
|
36 |
= 1.0.6 =
|
37 |
* NEW: Added On Page load popup module - does not fire on mobile devices.
|
38 |
* NEW: Added a Switch control to load the stop Video propagation script when the popup is closed.
|
4 |
Tags: PopBox, Modal, Popup, Elementor
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 1.0.7 =
|
37 |
+
* FIX: Critical bug where the popup backdrop was being displyed on mobile devices even though the popup was not firing.
|
38 |
+
* FIX: Critical bug that caused conflict with Testimonial slider.
|
39 |
+
* TWEAK: Adjusted CSS rule that was causing the popup to block certain elements.
|
40 |
+
|
41 |
= 1.0.6 =
|
42 |
* NEW: Added On Page load popup module - does not fire on mobile devices.
|
43 |
* NEW: Added a Switch control to load the stop Video propagation script when the popup is closed.
|
widgets/popup-load.php
CHANGED
@@ -625,7 +625,7 @@ class ElementorModalLoad extends Widget_Base {
|
|
625 |
|
626 |
?>
|
627 |
<!-- PopBox -->
|
628 |
-
<div class="modal modal-onload fade" id="popup-<?php echo $selectedPopup->post->ID; ?>" tabindex="-1" role="dialog" aria-labelledby="popup-<?php echo $selectedPopup->post->ID; ?>-label">
|
629 |
<div class="modal-content">
|
630 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
631 |
<span aria-hidden="true">
|
@@ -656,7 +656,7 @@ class ElementorModalLoad extends Widget_Base {
|
|
656 |
if ($.cookie("no_thanks_popup_<?php echo $selectedPopup->post->ID; ?>") == null) {
|
657 |
// Show the modal, with delay func.
|
658 |
function show_modal(){
|
659 |
-
$('#popup-<?php echo $selectedPopup->post->ID; ?>').modal();
|
660 |
}
|
661 |
// Set delay func. time in milliseconds
|
662 |
if(!isMobile.any() ) {
|
@@ -674,7 +674,7 @@ class ElementorModalLoad extends Widget_Base {
|
|
674 |
if ( $has_video ) { ?>
|
675 |
<script type="text/javascript">
|
676 |
(function($) {
|
677 |
-
$('#popup-<?php echo $selectedPopup->post->ID; ?>').on('hide.bs.modal', function(e) {
|
678 |
var $if = $(e.delegateTarget).find('iframe');
|
679 |
var src = $if.attr("src");
|
680 |
$if.attr("src", '/empty.html');
|
625 |
|
626 |
?>
|
627 |
<!-- PopBox -->
|
628 |
+
<div class="modal modal-onload fade" id="popup-onload-<?php echo $selectedPopup->post->ID; ?>" tabindex="-1" role="dialog" aria-labelledby="popup-<?php echo $selectedPopup->post->ID; ?>-label">
|
629 |
<div class="modal-content">
|
630 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
631 |
<span aria-hidden="true">
|
656 |
if ($.cookie("no_thanks_popup_<?php echo $selectedPopup->post->ID; ?>") == null) {
|
657 |
// Show the modal, with delay func.
|
658 |
function show_modal(){
|
659 |
+
$('#popup-onload-<?php echo $selectedPopup->post->ID; ?>').modal();
|
660 |
}
|
661 |
// Set delay func. time in milliseconds
|
662 |
if(!isMobile.any() ) {
|
674 |
if ( $has_video ) { ?>
|
675 |
<script type="text/javascript">
|
676 |
(function($) {
|
677 |
+
$('#popup-onload-<?php echo $selectedPopup->post->ID; ?>').on('hide.bs.modal', function(e) {
|
678 |
var $if = $(e.delegateTarget).find('iframe');
|
679 |
var src = $if.attr("src");
|
680 |
$if.attr("src", '/empty.html');
|