ITRO Popup Plugin - Version 4.9.9

Version Description

FIXED: pragraph broken by a useless css directive FIXED: embedded player (youtube, etc...) continue playing after popup close ADDED: itro_enter_admin() now manage js exit animation of popup

Download this release

Release Info

Developer ITRO
Plugin Icon 128x128 ITRO Popup Plugin
Version 4.9.9
Comparing to
See all releases

Code changes from version 4.9.8 to 4.9.9

css/itro-style-functions.php CHANGED
@@ -19,11 +19,6 @@ function itro_style() {
19
  }
20
  ?>
21
  <style>
22
- /* General styling to prevent white spaces or unwanted visual results */
23
- p{
24
- margin-bottom: 0px;
25
- }
26
-
27
  /* POP-UP */
28
  #age_button_area
29
  {
19
  }
20
  ?>
21
  <style>
 
 
 
 
 
22
  /* POP-UP */
23
  #age_button_area
24
  {
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.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;
6
  Author: ITRO Team
7
  E-mail: support@itroteam.com
8
  Text Domain: itro-popup
9
+ Version: 4.9.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.99;
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
@@ -4,7 +4,7 @@ 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,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.8 =
135
  FIXED: unistall not working due missing include
136
  FIXED: popup slide up on first appear
@@ -381,6 +386,11 @@ bug fixed: color table now works in admin pannel.
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
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.9
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.9 =
135
+ FIXED: pragraph broken by a useless css directive
136
+ FIXED: embedded player (youtube, etc...) continue playing after popup close
137
+ ADDED: itro_enter_admin() now manage js exit animation of popup
138
+
139
  = 4.9.8 =
140
  FIXED: unistall not working due missing include
141
  FIXED: popup slide up on first appear
386
  First released version.
387
 
388
  == Upgrade Notice ==
389
+ = 4.9.9 =
390
+ FIXED: pragraph broken by a useless css directive
391
+ FIXED: embedded player (youtube, etc...) continue playing after popup close
392
+ ADDED: itro_enter_admin() now manage js exit animation of popup
393
+
394
  = 4.9.8 =
395
  FIXED: unistall not working due missing include
396
  FIXED: popup slide up on first appear
scripts/itro-scripts.js CHANGED
@@ -18,7 +18,10 @@ 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);
@@ -40,6 +43,20 @@ function itro_enter_anim(auto_margin)
40
 
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  /**
45
  * Center the popup vertically
@@ -127,8 +144,7 @@ function itro_rgb2hex(rgbString){
127
  }
128
 
129
  /* function for countdown to show popup when the delay is set */
130
- function popup_delay()
131
- {
132
  delay--;
133
  if(delay <= 0)
134
  {
@@ -144,23 +160,18 @@ function popup_delay()
144
  * @since 1.0
145
  *
146
  */
147
- function popTimer()
148
- {
149
- if (popTime>0)
150
- {
151
  document.getElementById("timer").innerHTML=popTime;
152
  popTime--;
153
- }
154
- else
155
- {
156
  clearInterval(interval_id);
157
- jQuery("#itro_popup").fadeOut(function() {itro_opaco.style.visibility='Hidden';});
158
  }
159
  }
160
 
161
  /* function use to set the cookie for next visualization time */
162
- function itro_set_cookie(c_name,value,exhours)
163
- {
164
  var exdate=new Date();
165
  exdate.setTime(exdate.getTime() + (exhours * 3600 * 1000));
166
  var c_value=escape(value) + ((exhours==null) ? "" : "; expires="+exdate.toUTCString());
18
  {
19
  if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
20
  {
21
+ //align the popup before fadein
22
+ if(auto_margin == 'yes'){
23
+ itro_margin_refresh(50);
24
+ }
25
 
26
  jQuery("#itro_popup").css('display', 'none');
27
  jQuery("#itro_popup").css('opacity', 1);
43
 
44
  }
45
 
46
+ /**
47
+ * Manage popup closing
48
+ *
49
+ *
50
+ * @since 1.0
51
+ *
52
+ */
53
+ function itro_exit_anim(){
54
+ jQuery('#itro_popup').fadeOut(function(){
55
+ jQuery('#popup_content').remove();
56
+ jQuery('#itro_opaco').fadeOut();
57
+ });
58
+ }
59
+
60
 
61
  /**
62
  * Center the popup vertically
144
  }
145
 
146
  /* function for countdown to show popup when the delay is set */
147
+ function popup_delay(){
 
148
  delay--;
149
  if(delay <= 0)
150
  {
160
  * @since 1.0
161
  *
162
  */
163
+ function popTimer(){
164
+ if (popTime>0){
 
 
165
  document.getElementById("timer").innerHTML=popTime;
166
  popTime--;
167
+ }else{
 
 
168
  clearInterval(interval_id);
169
+ itro_exit_anim();
170
  }
171
  }
172
 
173
  /* function use to set the cookie for next visualization time */
174
+ function itro_set_cookie(c_name,value,exhours){
 
175
  var exdate=new Date();
176
  exdate.setTime(exdate.getTime() + (exhours * 3600 * 1000));
177
  var c_value=escape(value) + ((exhours==null) ? "" : "; expires="+exdate.toUTCString());
templates/itro-popup-template.php CHANGED
@@ -30,7 +30,7 @@ function itro_popup_template()
30
  }
31
  echo '<img id="close_cross" src="' . $selected_cross . '" title="';
32
  _e('CLOSE','itro-plugin');
33
- echo '" onclick="jQuery(\'#itro_popup\').fadeOut(function(){itro_opaco.style.visibility=\'hidden\';})">';
34
  }?>
35
  <div id="popup_content"><?php
36
  $custom_field = stripslashes(itro_get_field('custom_html')); /* insert custom html code */
@@ -39,7 +39,7 @@ function itro_popup_template()
39
  if ( itro_get_option('age_restriction') == 'yes' )
40
  {?>
41
  <p id="age_button_area" style="text-align: center;">
42
- <input type="button" id="ageEnterButton" onClick="itro_set_cookie('popup_cookie','one_time_popup',<?php echo itro_get_option('cookie_time_exp'); ?>); jQuery('#itro_popup').fadeOut(function(){itro_opaco.style.visibility='hidden';}); javascript:window.open('<?php _e(itro_get_option('enter_button_url')) ?>','_self');" value="<?php _e(itro_get_option('enter_button_text'));?>">
43
  <input type="button" id="ageLeaveButton" onClick="javascript:window.open('<?php _e(itro_get_option('leave_button_url')) ?>','_self');" value="<?php _e(itro_get_option('leave_button_text'));?>">
44
  </p><?php
45
  }
@@ -47,11 +47,11 @@ function itro_popup_template()
47
  </div>
48
  <?php if ( itro_get_option('age_restriction') != 'yes'){ ?>
49
  <div id="ipp_mobile_close_tab">
50
- <span id="ipp_mobile_close_txt" onclick="jQuery('#itro_popup').fadeOut(function(){itro_opaco.style.visibility='hidden';})">CLOSE</span>
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
  ?>
30
  }
31
  echo '<img id="close_cross" src="' . $selected_cross . '" title="';
32
  _e('CLOSE','itro-plugin');
33
+ echo '" onclick="itro_exit_anim();">';
34
  }?>
35
  <div id="popup_content"><?php
36
  $custom_field = stripslashes(itro_get_field('custom_html')); /* insert custom html code */
39
  if ( itro_get_option('age_restriction') == 'yes' )
40
  {?>
41
  <p id="age_button_area" style="text-align: center;">
42
+ <input type="button" id="ageEnterButton" onClick="itro_set_cookie('popup_cookie','one_time_popup',<?php echo itro_get_option('cookie_time_exp'); ?>); itro_exit_anim(); javascript:window.open('<?php _e(itro_get_option('enter_button_url')) ?>','_self');" value="<?php _e(itro_get_option('enter_button_text'));?>">
43
  <input type="button" id="ageLeaveButton" onClick="javascript:window.open('<?php _e(itro_get_option('leave_button_url')) ?>','_self');" value="<?php _e(itro_get_option('leave_button_text'));?>">
44
  </p><?php
45
  }
47
  </div>
48
  <?php if ( itro_get_option('age_restriction') != 'yes'){ ?>
49
  <div id="ipp_mobile_close_tab">
50
+ <span id="ipp_mobile_close_txt" onclick="itro_exit_anim();">CLOSE</span>
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="itro_exit_anim();" <?php } ?> ></div>
55
  <?php
56
  }
57
  ?>