ITRO Popup Plugin - Version 4.7

Version Description

ADDED: Multilingual compatibility with qtranslate X. ADDED: Url for the enter button of age validation. FIXED: Popup closing by clicking outside with age restriction.

Download this release

Release Info

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

Code changes from version 4.6.4 to 4.7

admin/popup-admin.php CHANGED
@@ -46,6 +46,7 @@ if( !isset($submitted_form ))
46
  /*opt 31*/'popup_padding',
47
  /*opt 32*/'disable_mobile',
48
  /*opt 33*/'cross_selected',
 
49
  );
50
  $field_name=array(
51
  /*fld 0*/'custom_html',
@@ -388,6 +389,9 @@ if( isset($_POST[ $submitted_form ]) && $_POST[ $submitted_form ] == 'Y' || isse
388
  <p><?php _e("Enter button text:", 'itro-plugin' ); ?>
389
  <input type="text" name="<?php echo $opt_name[7]; ?>" value="<?php echo $opt_val[7]; ?>" placeholder="<?php _e("i.e.: I AM OVER 18 - ENTER", 'itro-plugin' ); ?>" size="40">
390
  </p>
 
 
 
391
 
392
  <div id="<?php echo $opt_name[6] . '_advanced_1'; ?>">
393
  <p><?php _e("Enter button background color:", 'itro-plugin' ); ?>
46
  /*opt 31*/'popup_padding',
47
  /*opt 32*/'disable_mobile',
48
  /*opt 33*/'cross_selected',
49
+ /*opt 34*/'enter_button_url',
50
  );
51
  $field_name=array(
52
  /*fld 0*/'custom_html',
389
  <p><?php _e("Enter button text:", 'itro-plugin' ); ?>
390
  <input type="text" name="<?php echo $opt_name[7]; ?>" value="<?php echo $opt_val[7]; ?>" placeholder="<?php _e("i.e.: I AM OVER 18 - ENTER", 'itro-plugin' ); ?>" size="40">
391
  </p>
392
+ <p><?php _e("Enter button url:", 'itro-plugin' ); ?>
393
+ <input type="text" name="<?php echo $opt_name[34]; ?>" value="<?php echo $opt_val[34]; ?>" placeholder="<?php _e("i.e.: http://www.mysite.com/enter.html", 'itro-plugin' ); ?>" size="40">
394
+ </p>
395
 
396
  <div id="<?php echo $opt_name[6] . '_advanced_1'; ?>">
397
  <p><?php _e("Enter button background color:", 'itro-plugin' ); ?>
i18n-config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"vendor":{"plugins/itro-popup-plugin":"4.6.4"},
2
+ "admin-config":{
3
+ "options-general":{
4
+ "pages":{"options-general.php":"page=itro-popup"},
5
+ "anchors":{"genOption":{"where":"before after"},"customHtmlForm":{"where":"before after"}},
6
+ "forms":{
7
+ "optionForm":{
8
+ "fields":{
9
+ "enter_button_text":{"name":"enter_button_text"},
10
+ "leave_button_text":{"name":"leave_button_text"},
11
+ "enter_button_url":{"name":"enter_button_url"},
12
+ "leave_button_url":{"name":"leave_button_url"},
13
+ "custom_html":{"name":"custom_html"}
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
mc-main.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  /*
3
- Copyright 2013 I.T.RO.® (email : support.itro@live.com)
4
  This file is part of ITRO Popup Plugin.
5
 
6
  Plugin Name: ITRO Popup Plugin
@@ -8,12 +8,12 @@ Plugin URI: http://www.itro.eu/
8
  Description: EN - Show a perfecly centered customizable popup and a popup-system for age-restricted site and allow to insert own HTML code. IT - Visualizza un popup perfettamente centrato e personalizzabile con possibile blocco per i siti con restrizioni di eta' e permette di inserire il proprio codice HTML.
9
  Author: ITRO Team
10
  E-mail: support@itroteam.com
11
- Version: 4.6.4
12
  Author URI: http://www.itro.eu/
13
  */
14
 
15
  global $ITRO_VER;
16
- $ITRO_VER = 4.64;
17
 
18
  define('itroPath', plugins_url() . '/itro-popup/');
19
  define('itroImages', plugins_url() . '/itro-popup/images/');
1
  <?php
2
  /*
3
+ Copyright 2015 I.T.RO.® (email : support@itroteam.com)
4
  This file is part of ITRO Popup Plugin.
5
 
6
  Plugin Name: ITRO Popup Plugin
8
  Description: EN - Show a perfecly centered customizable popup and a popup-system for age-restricted site and allow to insert own HTML code. IT - Visualizza un popup perfettamente centrato e personalizzabile con possibile blocco per i siti con restrizioni di eta' e permette di inserire il proprio codice HTML.
9
  Author: ITRO Team
10
  E-mail: support@itroteam.com
11
+ Version: 4.7
12
  Author URI: http://www.itro.eu/
13
  */
14
 
15
  global $ITRO_VER;
16
+ $ITRO_VER = 4.7;
17
 
18
  define('itroPath', plugins_url() . '/itro-popup/');
19
  define('itroImages', plugins_url() . '/itro-popup/images/');
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ITRO
3
  Donate link: http://www.itro.eu/
4
  Tags: popup, popup message, popup box, popup ads, popup advertising, jquery popup, popup jquery, automatic popup, age restriction, popup block, popup violence, age validation popup, adult, adult content, content warning, content warning popup, fancy box, fancy popup, custom popup, advertising popup, pop-up, lightbox, lightbox popup
5
  Requires at least: 3.0.1
6
- Tested up to: 4.3
7
- Stable tag: 4.6.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -96,6 +96,11 @@ DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itro.eu/?page_
96
  VIEW NOW DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itro.eu/?page_id=3056)
97
 
98
  == Changelog ==
 
 
 
 
 
99
  = 4.6.4 =
100
  ADDED: Nederlands translation, thanks to Descamps Gino.
101
 
3
  Donate link: http://www.itro.eu/
4
  Tags: popup, popup message, popup box, popup ads, popup advertising, jquery popup, popup jquery, automatic popup, age restriction, popup block, popup violence, age validation popup, adult, adult content, content warning, content warning popup, fancy box, fancy popup, custom popup, advertising popup, pop-up, lightbox, lightbox popup
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.3.1
7
+ Stable tag: 4.7
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
96
  VIEW NOW DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itro.eu/?page_id=3056)
97
 
98
  == Changelog ==
99
+ = 4.7 =
100
+ ADDED: Multilingual compatibility with qtranslate X.
101
+ ADDED: Url for the enter button of age validation.
102
+ FIXED: Popup closing by clicking outside with age restriction.
103
+
104
  = 4.6.4 =
105
  ADDED: Nederlands translation, thanks to Descamps Gino.
106
 
templates/itro-popup-template.php CHANGED
@@ -28,18 +28,18 @@ function itro_popup_template()
28
  }?>
29
  <div id="popup_content"><?php
30
  $custom_field = stripslashes(itro_get_field('custom_html')); /* insert custom html code */
31
- echo do_shortcode( str_replace("\r\n",'',$custom_field) ); /* return the string whitout new line */
32
  if ( itro_get_option('age_restriction') == 'yes' )
33
  {?>
34
  <p id="age_button_area" style="text-align: center;">
35
- <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';})" value="<?php echo itro_get_option('enter_button_text');?>">
36
- <input type="button" id="ageLeaveButton" onClick="javascript:window.open('<?php echo itro_get_option('leave_button_url')?>','_self');" value="<?php echo itro_get_option('leave_button_text');?>">
37
  </p><?php
38
  }
39
  ?>
40
  </div>
41
  </div>
42
- <div id="itro_opaco" style="visibility:hidden" onclick="jQuery('#itro_popup').fadeOut(function(){itro_opaco.style.visibility='hidden';})"></div>
43
  <?php
44
  }
45
  ?>
28
  }?>
29
  <div id="popup_content"><?php
30
  $custom_field = stripslashes(itro_get_field('custom_html')); /* insert custom html code */
31
+ echo do_shortcode( str_replace("\r\n",'',_e($custom_field)) ); /* return the string whitout new line */
32
  if ( itro_get_option('age_restriction') == 'yes' )
33
  {?>
34
  <p id="age_button_area" style="text-align: center;">
35
+ <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'));?>">
36
+ <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'));?>">
37
  </p><?php
38
  }
39
  ?>
40
  </div>
41
  </div>
42
+ <div id="itro_opaco" style="visibility:hidden" <?php if ( itro_get_option('age_restriction') == 'yes' ){ ?> onclick="jQuery('#itro_popup').fadeOut(function(){itro_opaco.style.visibility='hidden';})" <?php } ?> ></div>
43
  <?php
44
  }
45
  ?>