Version Description
FIXED: unistall not working due missing include FIXED: popup slide up on first appear ADDED: control on width and height for no-sense values
Download this release
Release Info
Developer | ITRO |
Plugin | ITRO Popup Plugin |
Version | 4.9.8 |
Comparing to | |
See all releases |
Code changes from version 4.9.7 to 4.9.8
- css/itro-style-functions.php +29 -4
- functions/js-function.php +6 -10
- mc-main.php +2 -2
- readme.txt +12 -13
- scripts/itro-scripts.js +9 -1
- templates/itro-popup-template.php +2 -2
- uninstall.php +1 -1
css/itro-style-functions.php
CHANGED
@@ -5,7 +5,19 @@ This file is part of ITRO Popup Plugin. (email : support@itroteam.com)
|
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
|
8 |
-
function itro_style() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<style>
|
10 |
/* General styling to prevent white spaces or unwanted visual results */
|
11 |
p{
|
@@ -50,6 +62,8 @@ function itro_style() { ?>
|
|
50 |
|
51 |
#itro_popup
|
52 |
{
|
|
|
|
|
53 |
position: <?php echo itro_get_option('popup_position');?>;
|
54 |
background-image: <?php if( itro_get_option('background_select') != NULL ) { echo 'url("' . itro_get_option('background_source') . '");'; } ?>
|
55 |
background-repeat: no-repeat;
|
@@ -80,9 +94,19 @@ function itro_style() { ?>
|
|
80 |
if( itro_get_option('select_popup_width') == 'perc') { echo itro_get_option('perc_popup_width') . '%'; }
|
81 |
?>;
|
82 |
height: <?php
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
background-color: <?php echo itro_get_option('popup_background'); ?>;
|
87 |
<?php if( itro_get_option('show_countdown') != NULL ) { echo 'padding-bottom: 15px;'; } ?>
|
88 |
}
|
@@ -113,6 +137,7 @@ function itro_style() { ?>
|
|
113 |
}
|
114 |
|
115 |
#itro_opaco{
|
|
|
116 |
position:fixed;
|
117 |
background-color: <?php echo itro_get_option('opaco_bg_color'); ?>;
|
118 |
font-size: 10px;
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
7 |
|
8 |
+
function itro_style() {
|
9 |
+
// check if user inputs no-sense values
|
10 |
+
if((itro_get_option('select_popup_height') == 'px' && itro_get_option('px_popup_height') == 0)
|
11 |
+
|| (itro_get_option('select_popup_height') == 'perc' && itro_get_option('perc_popup_height') == 0) ){
|
12 |
+
itro_update_option('select_popup_height', 'auto');
|
13 |
+
}
|
14 |
+
if(itro_get_option('select_popup_width') == 'px' && itro_get_option('px_popup_width') == 0 ){
|
15 |
+
itro_update_option('px_popup_width', '600');
|
16 |
+
}
|
17 |
+
if(itro_get_option('select_popup_width') == 'perc' && itro_get_option('perc_popup_width') == 0){
|
18 |
+
itro_update_option('perc_popup_width', '60');
|
19 |
+
}
|
20 |
+
?>
|
21 |
<style>
|
22 |
/* General styling to prevent white spaces or unwanted visual results */
|
23 |
p{
|
62 |
|
63 |
#itro_popup
|
64 |
{
|
65 |
+
visibility: hidden;
|
66 |
+
opacity: 0;
|
67 |
position: <?php echo itro_get_option('popup_position');?>;
|
68 |
background-image: <?php if( itro_get_option('background_select') != NULL ) { echo 'url("' . itro_get_option('background_source') . '");'; } ?>
|
69 |
background-repeat: no-repeat;
|
94 |
if( itro_get_option('select_popup_width') == 'perc') { echo itro_get_option('perc_popup_width') . '%'; }
|
95 |
?>;
|
96 |
height: <?php
|
97 |
+
switch (itro_get_option('select_popup_height')){
|
98 |
+
case 'px':
|
99 |
+
echo itro_get_option('px_popup_height') . 'px';
|
100 |
+
break;
|
101 |
+
case 'perc':
|
102 |
+
echo itro_get_option('perc_popup_height') . '%';
|
103 |
+
break;
|
104 |
+
case 'auto':
|
105 |
+
echo 'auto';
|
106 |
+
break;
|
107 |
+
default:
|
108 |
+
echo 'auto';
|
109 |
+
}?>;
|
110 |
background-color: <?php echo itro_get_option('popup_background'); ?>;
|
111 |
<?php if( itro_get_option('show_countdown') != NULL ) { echo 'padding-bottom: 15px;'; } ?>
|
112 |
}
|
137 |
}
|
138 |
|
139 |
#itro_opaco{
|
140 |
+
display: none;
|
141 |
position:fixed;
|
142 |
background-color: <?php echo itro_get_option('opaco_bg_color'); ?>;
|
143 |
font-size: 10px;
|
functions/js-function.php
CHANGED
@@ -18,6 +18,9 @@ function itro_popup_js()
|
|
18 |
/* init var */
|
19 |
itro_cookie_expiration = <?php echo itro_get_option('cookie_time_exp'); ?>;
|
20 |
itro_is_preview = <?php echo $is_preview; ?>;/* pass true if is the preview page. used for cookie control via js due W3 total cache or similar */
|
|
|
|
|
|
|
21 |
jQuery('#ipp_mobile_close_txt').css({color: itro_invert_color(itro_rgb2hex(jQuery('#itro_popup').css('border-bottom-color'))) });
|
22 |
<?php
|
23 |
if (itro_get_option('age_restriction') == NULL) /* OFF age validation */
|
@@ -44,7 +47,7 @@ function itro_popup_js()
|
|
44 |
}
|
45 |
else /* if popup delay is not setted */
|
46 |
{?>
|
47 |
-
itro_enter_anim();
|
48 |
<?php
|
49 |
}
|
50 |
|
@@ -75,18 +78,11 @@ function itro_popup_js()
|
|
75 |
}
|
76 |
else
|
77 |
{?>
|
78 |
-
itro_enter_anim();
|
79 |
<?php
|
80 |
}
|
81 |
}
|
82 |
-
|
83 |
-
/* ------- AUTOMATIC TOP MARGIN */
|
84 |
-
if( itro_get_option('auto_margin_check') != NULL )
|
85 |
-
{?>
|
86 |
-
var browserWidth = 0, browserHeight = 0;
|
87 |
-
setInterval(function(){itro_margin_refresh()},500); /* refresh every 0.1 second the popup top margin (needed for browser window resizeing) */
|
88 |
-
<?php
|
89 |
-
}?>
|
90 |
</script>
|
91 |
<?php
|
92 |
}
|
18 |
/* init var */
|
19 |
itro_cookie_expiration = <?php echo itro_get_option('cookie_time_exp'); ?>;
|
20 |
itro_is_preview = <?php echo $is_preview; ?>;/* pass true if is the preview page. used for cookie control via js due W3 total cache or similar */
|
21 |
+
auto_margin = "<?php echo itro_get_option('auto_margin_check') ?>";
|
22 |
+
|
23 |
+
/* invert the color of the mobile close tab label text */
|
24 |
jQuery('#ipp_mobile_close_txt').css({color: itro_invert_color(itro_rgb2hex(jQuery('#itro_popup').css('border-bottom-color'))) });
|
25 |
<?php
|
26 |
if (itro_get_option('age_restriction') == NULL) /* OFF age validation */
|
47 |
}
|
48 |
else /* if popup delay is not setted */
|
49 |
{?>
|
50 |
+
itro_enter_anim(auto_margin);
|
51 |
<?php
|
52 |
}
|
53 |
|
78 |
}
|
79 |
else
|
80 |
{?>
|
81 |
+
itro_enter_anim(auto_margin);
|
82 |
<?php
|
83 |
}
|
84 |
}
|
85 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
</script>
|
87 |
<?php
|
88 |
}
|
mc-main.php
CHANGED
@@ -6,14 +6,14 @@ Description: EN - Show a perfecly centered customizable popup and a popup-system
|
|
6 |
Author: ITRO Team
|
7 |
E-mail: support@itroteam.com
|
8 |
Text Domain: itro-popup
|
9 |
-
Version: 4.9.
|
10 |
Author URI: http://www.itroteam.com
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
global $ITRO_VER;
|
16 |
-
$ITRO_VER = 4.
|
17 |
|
18 |
global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
|
19 |
$popup_fired = false;
|
6 |
Author: ITRO Team
|
7 |
E-mail: support@itroteam.com
|
8 |
Text Domain: itro-popup
|
9 |
+
Version: 4.9.8
|
10 |
Author URI: http://www.itroteam.com
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
14 |
|
15 |
global $ITRO_VER;
|
16 |
+
$ITRO_VER = 4.98;
|
17 |
|
18 |
global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
|
19 |
$popup_fired = false;
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: ITRO
|
|
3 |
Donate link: http://www.itroteam.com/
|
4 |
Tags: multilingual popup, popup, popup message, popuup optin, popup box, popup ads, popup advertising, popup block, popup content warning, fancy box, fancy popup, advertising popup, pop-up, lightbox popup
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.5
|
7 |
-
Stable tag: 4.9.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -131,6 +131,11 @@ LIVE DEMOS - [CLICK HERE!](https://www.itroteam.com/wordpress-popup-samples-demo
|
|
131 |
BACKEND SCREENSHOT - [CLICK HERE!](https://www.itroteam.com/wordpress-popup-samples-demos/#backend)
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
134 |
= 4.9.7 =
|
135 |
FIXED: changed control for the wp_editor for popup content
|
136 |
|
@@ -376,6 +381,11 @@ bug fixed: color table now works in admin pannel.
|
|
376 |
First released version.
|
377 |
|
378 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
379 |
= 4.9.7 =
|
380 |
FIXED: changed control for the wp_editor for popup content
|
381 |
|
@@ -407,17 +417,6 @@ FIXED: mobile close tab not working.
|
|
407 |
FIXED: popup delay default value set to 0.
|
408 |
IMPROVED: automatic vertical align.
|
409 |
|
410 |
-
= 4.8.1 =
|
411 |
-
FIXED: Popup cookie affect the preview mode.
|
412 |
-
IMPROVED: Easy closing the popup can be disabled. Nor ESC or clicking outside will close the popup.
|
413 |
-
|
414 |
-
= 4.8 =
|
415 |
-
ADDED: Fully responsive design.
|
416 |
-
ADDED: Absolute position only for mobile devices.
|
417 |
-
|
418 |
-
= 4.7.3 =
|
419 |
-
IMPROVED: Useless preview page deleted. Preview via GET request.
|
420 |
-
|
421 |
== Notes ==
|
422 |
FOR FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](https://www.itroteam.com/itro-wordpress-popup-plugin-faq/)
|
423 |
|
3 |
Donate link: http://www.itroteam.com/
|
4 |
Tags: multilingual popup, popup, popup message, popuup optin, popup box, popup ads, popup advertising, popup block, popup content warning, fancy box, fancy popup, advertising popup, pop-up, lightbox popup
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.5.1
|
7 |
+
Stable tag: 4.9.8
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
131 |
BACKEND SCREENSHOT - [CLICK HERE!](https://www.itroteam.com/wordpress-popup-samples-demos/#backend)
|
132 |
|
133 |
== Changelog ==
|
134 |
+
= 4.9.8 =
|
135 |
+
FIXED: unistall not working due missing include
|
136 |
+
FIXED: popup slide up on first appear
|
137 |
+
ADDED: control on width and height for no-sense values
|
138 |
+
|
139 |
= 4.9.7 =
|
140 |
FIXED: changed control for the wp_editor for popup content
|
141 |
|
381 |
First released version.
|
382 |
|
383 |
== Upgrade Notice ==
|
384 |
+
= 4.9.8 =
|
385 |
+
FIXED: unistall not working due missing include
|
386 |
+
FIXED: popup slide up on first appear
|
387 |
+
ADDED: control on width and height for no-sense values
|
388 |
+
|
389 |
= 4.9.7 =
|
390 |
FIXED: changed control for the wp_editor for popup content
|
391 |
|
417 |
FIXED: popup delay default value set to 0.
|
418 |
IMPROVED: automatic vertical align.
|
419 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
== Notes ==
|
421 |
FOR FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](https://www.itroteam.com/itro-wordpress-popup-plugin-faq/)
|
422 |
|
scripts/itro-scripts.js
CHANGED
@@ -14,18 +14,26 @@ var itro_age_restriction;
|
|
14 |
* @since 1.0
|
15 |
*
|
16 |
*/
|
17 |
-
function itro_enter_anim()
|
18 |
{
|
19 |
if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
|
20 |
{
|
21 |
itro_margin_refresh(50); //align the popup before fadein
|
22 |
|
|
|
|
|
|
|
|
|
23 |
jQuery("#itro_opaco").fadeIn(function()
|
24 |
{
|
25 |
jQuery("#itro_popup").fadeIn();
|
26 |
if( itro_age_restriction === false )
|
27 |
{
|
28 |
itro_set_cookie("popup_cookie","one_time_popup", itro_cookie_expiration);
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
});
|
31 |
}
|
14 |
* @since 1.0
|
15 |
*
|
16 |
*/
|
17 |
+
function itro_enter_anim(auto_margin)
|
18 |
{
|
19 |
if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
|
20 |
{
|
21 |
itro_margin_refresh(50); //align the popup before fadein
|
22 |
|
23 |
+
jQuery("#itro_popup").css('display', 'none');
|
24 |
+
jQuery("#itro_popup").css('opacity', 1);
|
25 |
+
jQuery("#itro_popup").css('visibility', 'visible');
|
26 |
+
|
27 |
jQuery("#itro_opaco").fadeIn(function()
|
28 |
{
|
29 |
jQuery("#itro_popup").fadeIn();
|
30 |
if( itro_age_restriction === false )
|
31 |
{
|
32 |
itro_set_cookie("popup_cookie","one_time_popup", itro_cookie_expiration);
|
33 |
+
// refresh every 0.5 second the popup top margin (needed for browser window resizeing)
|
34 |
+
if(auto_margin == 'yes'){
|
35 |
+
setInterval(function(){itro_margin_refresh();},500);
|
36 |
+
}
|
37 |
}
|
38 |
});
|
39 |
}
|
templates/itro-popup-template.php
CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
7 |
|
8 |
function itro_popup_template()
|
9 |
{ ?>
|
10 |
-
<div id="itro_popup"
|
11 |
<?php
|
12 |
if( itro_get_option('age_restriction') == NULL ) /* age restriction off */
|
13 |
{
|
@@ -51,7 +51,7 @@ function itro_popup_template()
|
|
51 |
</div>
|
52 |
<?php }?>
|
53 |
</div>
|
54 |
-
<div id="itro_opaco"
|
55 |
<?php
|
56 |
}
|
57 |
?>
|
7 |
|
8 |
function itro_popup_template()
|
9 |
{ ?>
|
10 |
+
<div id="itro_popup">
|
11 |
<?php
|
12 |
if( itro_get_option('age_restriction') == NULL ) /* age restriction off */
|
13 |
{
|
51 |
</div>
|
52 |
<?php }?>
|
53 |
</div>
|
54 |
+
<div id="itro_opaco" <?php if ( itro_get_option('age_restriction') != 'yes' && itro_get_option('popup_unlockable') != 'yes' ){ ?> onclick="jQuery('#itro_popup').fadeOut(function(){itro_opaco.style.visibility='hidden';})" <?php } ?> ></div>
|
55 |
<?php
|
56 |
}
|
57 |
?>
|
uninstall.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {exit ();}
|
|
6 |
else
|
7 |
{
|
8 |
global $wpdb;
|
9 |
-
|
10 |
include_once ('functions/database-function.php');
|
11 |
if( itro_get_option('delete_data') == 'yes' )
|
12 |
{
|
6 |
else
|
7 |
{
|
8 |
global $wpdb;
|
9 |
+
include_once ('functions/core-function.php');
|
10 |
include_once ('functions/database-function.php');
|
11 |
if( itro_get_option('delete_data') == 'yes' )
|
12 |
{
|