ITRO Popup Plugin - Version 5.0.1

Version Description

ADDED: force_balance_tags used to prevent popup content break the DOM

Download this release

Release Info

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

Code changes from version 5.0 to 5.0.1

functions/core-function.php CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
7
 
8
  /* ------------------ADD MENU PAGE */
9
  function itro_plugin_menu() {
10
- add_options_page( 'Popup Plugin Options', 'ITRO Popup', 'manage_options', 'itro-popup/admin/popup-admin.php', '' );
11
  }
12
 
13
  /* -------------- INITIALIZATION */
7
 
8
  /* ------------------ADD MENU PAGE */
9
  function itro_plugin_menu() {
10
+ add_options_page( 'Popup Plugin Options', 'ITRO Popup', 'manage_options', itroRootPath . 'admin/popup-admin.php', '' );
11
  }
12
 
13
  /* -------------- INITIALIZATION */
mc-main.php CHANGED
@@ -6,26 +6,28 @@ 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: 5.0
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 = '5.0';
17
 
18
  global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
19
  $popup_fired = false;
20
 
21
- define('itroPath', plugins_url() . '/itro-popup/');
22
- define('itroImages', plugins_url() . '/itro-popup/images/');
 
23
 
24
  include_once ('functions/core-function.php');
25
  include_once ('functions/database-function.php');
26
  include_once ('functions/js-function.php');
27
  include_once ('templates/itro-popup-template.php');
28
  include_once ('css/itro-style-functions.php');
 
29
  load_plugin_textdomain('itro-plugin', false, basename( dirname( __FILE__ ) ) . '/languages' );
30
 
31
  global $post;
6
  Author: ITRO Team
7
  E-mail: support@itroteam.com
8
  Text Domain: itro-popup
9
+ Version: 5.0.1
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 = '5.0.1';
17
 
18
  global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
19
  $popup_fired = false;
20
 
21
+ define('itroRootPath', basename( dirname( __FILE__ ) ) . "/");
22
+ define('itroPath', plugins_url() . '/' . itroRootPath);
23
+ define('itroImages', plugins_url() . '/' . itroRootPath . 'images/');
24
 
25
  include_once ('functions/core-function.php');
26
  include_once ('functions/database-function.php');
27
  include_once ('functions/js-function.php');
28
  include_once ('templates/itro-popup-template.php');
29
  include_once ('css/itro-style-functions.php');
30
+
31
  load_plugin_textdomain('itro-plugin', false, basename( dirname( __FILE__ ) ) . '/languages' );
32
 
33
  global $post;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ITRO
3
  Donate link: https://www.itroteam.com/leave-a-review/
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.6.1
7
- Stable tag: 5.0
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -131,6 +131,9 @@ 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
  = 5.0 =
135
  FIXED: automatic top margin not working with popup delay
136
  ADDED: close cross can be a custom image
@@ -393,53 +396,15 @@ bug fixed: color table now works in admin pannel.
393
  First released version.
394
 
395
  == Upgrade Notice ==
 
 
 
396
  = 5.0 =
397
  FIXED: automatic top margin not working with popup delay
398
  ADDED: close cross can be a custom image
399
  IMPROVED: cleaned the js script in itro-admin-scripts.js
400
  IMPROVED: admin pannel aspect and options order
401
- IMPROVED: plugin version check for DB updates
402
-
403
- = 4.9.9 =
404
- FIXED: pragraph broken by a useless css directive
405
- FIXED: embedded player (youtube, etc...) continue playing after popup close
406
- ADDED: itro_enter_admin() now manage js exit animation of popup
407
-
408
- = 4.9.8 =
409
- FIXED: unistall not working due missing include
410
- FIXED: popup slide up on first appear
411
- ADDED: control on width and height for no-sense values
412
-
413
- = 4.9.7 =
414
- FIXED: changed control for the wp_editor for popup content
415
-
416
- = 4.9.6 =
417
- FIXED: slashes not stripped in popup content
418
-
419
- = 4.9.5 =
420
- FIXED: DB update for "auto" height error of 4.9.3
421
-
422
- = 4.9.4 =
423
- FIXED: obsolete WPLANG usage
424
- FIXED: data sanification reject "auto" setting for popup height
425
-
426
- = 4.9.3 =
427
- FIXED: selected page not working
428
-
429
- = 4.9.2 =
430
- FIXED: no data validation/sanitization
431
-
432
- = 4.9.1 =
433
- ADDED: customizable text for the countdown
434
- FIXED: overlayng behaviour with iframes in the popup content
435
- FIXED: undefined variable error
436
-
437
- = 4.9 =
438
- ADDED: shortcode for visualization.
439
- ADDED: mobile close tag text automatic font color.
440
- FIXED: mobile close tab not working.
441
- FIXED: popup delay default value set to 0.
442
- IMPROVED: automatic vertical align.
443
 
444
  == Notes ==
445
  FOR FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](https://www.itroteam.com/itro-wordpress-popup-plugin-faq/)
3
  Donate link: https://www.itroteam.com/leave-a-review/
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.7.1
7
+ Stable tag: 5.0.1
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
+ = 5.0.1 =
135
+ ADDED: force_balance_tags used to prevent popup content break the DOM
136
+
137
  = 5.0 =
138
  FIXED: automatic top margin not working with popup delay
139
  ADDED: close cross can be a custom image
396
  First released version.
397
 
398
  == Upgrade Notice ==
399
+ = 5.0.1 =
400
+ ADDED: force_balance_tags used to prevent popup content break the DOM
401
+
402
  = 5.0 =
403
  FIXED: automatic top margin not working with popup delay
404
  ADDED: close cross can be a custom image
405
  IMPROVED: cleaned the js script in itro-admin-scripts.js
406
  IMPROVED: admin pannel aspect and options order
407
+ IMPROVED: plugin version check for DB updates
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
 
409
  == Notes ==
410
  FOR FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](https://www.itroteam.com/itro-wordpress-popup-plugin-faq/)
scripts/itro-scripts.js CHANGED
@@ -33,13 +33,16 @@ function itro_enter_anim(auto_margin)
33
  if( itro_age_restriction === false )
34
  {
35
  itro_set_cookie("popup_cookie","one_time_popup", itro_cookie_expiration);
36
- // refresh every 0.5 second the popup top margin (needed for browser window resizeing)
37
- if(auto_margin == 'yes'){
38
- setInterval(function(){itro_margin_refresh();},500);
39
- }
40
  }
41
  });
42
  }
 
 
 
43
 
44
  }
45
 
@@ -69,7 +72,6 @@ function itro_exit_anim(){
69
  function itro_margin_refresh(speed){
70
  if(typeof(speed) == undefined){speed = 200;}
71
 
72
- //if( jQuery('#itro_popup').css('position') )
73
  if( typeof( window.innerWidth ) == 'number' )
74
  {
75
  /* Non-IE */
33
  if( itro_age_restriction === false )
34
  {
35
  itro_set_cookie("popup_cookie","one_time_popup", itro_cookie_expiration);
36
+ }
37
+ // refresh every 0.5 second the popup top margin (needed for browser window resizeing)
38
+ if(auto_margin == 'yes'){
39
+ setInterval(function(){itro_margin_refresh();},500);
40
  }
41
  });
42
  }
43
+ else{
44
+ jQuery("#itro_popup").css('display', 'none');
45
+ }
46
 
47
  }
48
 
72
  function itro_margin_refresh(speed){
73
  if(typeof(speed) == undefined){speed = 200;}
74
 
 
75
  if( typeof( window.innerWidth ) == 'number' )
76
  {
77
  /* Non-IE */