Version Description
ADDED: shortcode for visualization. ADDED: mobile close tag text automatic font color. FIXED: mobile close tab not working. FIXED: popup delay default value set to 0. IMPROVED: automatic vertical align.
Download this release
Release Info
Developer | ITRO |
Plugin | ITRO Popup Plugin |
Version | 4.9 |
Comparing to | |
See all releases |
Code changes from version 4.9.1 to 4.9
- admin/popup-admin.php +3 -8
- css/itro-style-functions.php +2 -0
- functions/core-function.php +5 -2
- functions/database-function.php +1 -5
- i18n-config.json +0 -1
- mc-main.php +4 -4
- readme.txt +14 -19
- scripts/itro-scripts.js +7 -3
- templates/itro-popup-template.php +3 -3
admin/popup-admin.php
CHANGED
@@ -47,8 +47,7 @@ if( !isset($submitted_form ))
|
|
47 |
/*opt 32*/'disable_mobile',
|
48 |
/*opt 33*/'cross_selected',
|
49 |
/*opt 34*/'enter_button_url',
|
50 |
-
/*opt 35*/'absolute_mobile_pos'
|
51 |
-
/*opt 36*/'countdown_text'
|
52 |
);
|
53 |
$field_name=array(
|
54 |
/*fld 0*/'custom_html',
|
@@ -232,11 +231,7 @@ if( isset($_POST[ $submitted_form ]) && $_POST[ $submitted_form ] == 'Y' || isse
|
|
232 |
<input type="checkbox" name="<?php echo $opt_name[29]; ?>" id="<?php echo $opt_name[29]; ?>" value="yes" <?php if(itro_get_option($opt_name[29])=='yes' ){echo 'checked="checked"';} ?> />
|
233 |
<span onclick="itro_mutual_check('<?php echo $opt_name[29]; ?>','','')"><?php _e("Show countdown", 'itro-plugin' ); ?></span>
|
234 |
<img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png' ; ?>" title="<?php _e('Show the countdown at the bottom of the popup which dispay the time before popup will close. If is hidden, it run anyway.','itro-plugin');?>" >
|
235 |
-
|
236 |
-
<?php _e("Countdown text:", 'itro-plugin' ); ?>
|
237 |
-
<img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png' ; ?>" title="<?php _e('Countdown text at the bottom border of the popup','itro-plugin');?>" >
|
238 |
-
<input type="text" placeholder="This popup will close in:" name="<?php echo $opt_name[36]; ?>" value="<?php echo $opt_val[36]; ?>" size="40">
|
239 |
-
<br>
|
240 |
<?php _e("Countdown font color:", 'itro-plugin' ); ?>
|
241 |
<img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png' ; ?>" title="<?php _e('Select the countdown font color.','itro-plugin');?>" >
|
242 |
<input type="text" class="color" name="<?php echo $opt_name[21]; ?>" value="<?php echo $opt_val[21]; ?>" size="10">
|
@@ -456,7 +451,7 @@ if( isset($_POST[ $submitted_form ]) && $_POST[ $submitted_form ] == 'Y' || isse
|
|
456 |
<!-- A simple not annoying banner, please do not remove, we use it to quickly comunicate with you about premium and free! !-->
|
457 |
<p class="wpstyle" onClick="jQuery('#premium_ads').toggle('blind');"><?php _e('ITRO Popup messages', 'itro-plugin'); ?> </p>
|
458 |
<div id="premium_ads" style="text-align: center;">
|
459 |
-
<a target="_blank" href="http://www.
|
460 |
</div>
|
461 |
|
462 |
<input type="hidden" name="<?php echo $submitted_form; ?>" value="Y">
|
47 |
/*opt 32*/'disable_mobile',
|
48 |
/*opt 33*/'cross_selected',
|
49 |
/*opt 34*/'enter_button_url',
|
50 |
+
/*opt 35*/'absolute_mobile_pos'
|
|
|
51 |
);
|
52 |
$field_name=array(
|
53 |
/*fld 0*/'custom_html',
|
231 |
<input type="checkbox" name="<?php echo $opt_name[29]; ?>" id="<?php echo $opt_name[29]; ?>" value="yes" <?php if(itro_get_option($opt_name[29])=='yes' ){echo 'checked="checked"';} ?> />
|
232 |
<span onclick="itro_mutual_check('<?php echo $opt_name[29]; ?>','','')"><?php _e("Show countdown", 'itro-plugin' ); ?></span>
|
233 |
<img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png' ; ?>" title="<?php _e('Show the countdown at the bottom of the popup which dispay the time before popup will close. If is hidden, it run anyway.','itro-plugin');?>" >
|
234 |
+
|
|
|
|
|
|
|
|
|
235 |
<?php _e("Countdown font color:", 'itro-plugin' ); ?>
|
236 |
<img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png' ; ?>" title="<?php _e('Select the countdown font color.','itro-plugin');?>" >
|
237 |
<input type="text" class="color" name="<?php echo $opt_name[21]; ?>" value="<?php echo $opt_val[21]; ?>" size="10">
|
451 |
<!-- A simple not annoying banner, please do not remove, we use it to quickly comunicate with you about premium and free! !-->
|
452 |
<p class="wpstyle" onClick="jQuery('#premium_ads').toggle('blind');"><?php _e('ITRO Popup messages', 'itro-plugin'); ?> </p>
|
453 |
<div id="premium_ads" style="text-align: center;">
|
454 |
+
<a target="_blank" href="http://www.wordpress-popup-plugin.com"><img title="TRY IT FOR FREE!!!" src="http://www.itroteam.com/plugins/premium_banner.png"></a>
|
455 |
</div>
|
456 |
|
457 |
<input type="hidden" name="<?php echo $submitted_form; ?>" value="Y">
|
css/itro-style-functions.php
CHANGED
@@ -48,6 +48,7 @@ function itro_style() { ?>
|
|
48 |
|
49 |
#itro_popup
|
50 |
{
|
|
|
51 |
position: <?php echo itro_get_option('popup_position');?>;
|
52 |
background-image: <?php if (itro_get_option('background_select') != NULL ) { echo 'url("' . itro_get_option('background_source') . '");'; } ?>
|
53 |
background-repeat: no-repeat;
|
@@ -111,6 +112,7 @@ function itro_style() { ?>
|
|
111 |
}
|
112 |
|
113 |
#itro_opaco{
|
|
|
114 |
position:fixed;
|
115 |
background-color: <?php echo itro_get_option('opaco_bg_color'); ?>;
|
116 |
font-size: 10px;
|
48 |
|
49 |
#itro_popup
|
50 |
{
|
51 |
+
visibility: hidden;
|
52 |
position: <?php echo itro_get_option('popup_position');?>;
|
53 |
background-image: <?php if (itro_get_option('background_select') != NULL ) { echo 'url("' . itro_get_option('background_source') . '");'; } ?>
|
54 |
background-repeat: no-repeat;
|
112 |
}
|
113 |
|
114 |
#itro_opaco{
|
115 |
+
visibility: hidden;
|
116 |
position:fixed;
|
117 |
background-color: <?php echo itro_get_option('opaco_bg_color'); ?>;
|
118 |
font-size: 10px;
|
functions/core-function.php
CHANGED
@@ -87,8 +87,6 @@ function itro_display_popup()
|
|
87 |
}
|
88 |
|
89 |
/* woocommerce shop page identification */
|
90 |
-
$woo_shop = NULL;
|
91 |
-
$woo_shop_id = NULL;
|
92 |
if( function_exists('is_shop') && function_exists('woocommerce_get_page_id') ) /* if this functions exist, woocommerce is installed! */
|
93 |
{
|
94 |
if ( is_shop() ) /* if the actual page is the standard woocommerce shop page */
|
@@ -96,6 +94,11 @@ function itro_display_popup()
|
|
96 |
$woo_shop = true;
|
97 |
$woo_shop_id = woocommerce_get_page_id( 'shop' );
|
98 |
}
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
|
101 |
/* this condition, control if the popup must or not by displayed in a specified page */
|
87 |
}
|
88 |
|
89 |
/* woocommerce shop page identification */
|
|
|
|
|
90 |
if( function_exists('is_shop') && function_exists('woocommerce_get_page_id') ) /* if this functions exist, woocommerce is installed! */
|
91 |
{
|
92 |
if ( is_shop() ) /* if the actual page is the standard woocommerce shop page */
|
94 |
$woo_shop = true;
|
95 |
$woo_shop_id = woocommerce_get_page_id( 'shop' );
|
96 |
}
|
97 |
+
}
|
98 |
+
else
|
99 |
+
{
|
100 |
+
$woo_shop = NULL;
|
101 |
+
$woo_shop_id = NULL;
|
102 |
}
|
103 |
|
104 |
/* this condition, control if the popup must or not by displayed in a specified page */
|
functions/database-function.php
CHANGED
@@ -51,17 +51,13 @@ function itro_update_db()
|
|
51 |
$wpdb->query("RENAME TABLE wp_itro_plugin_field TO ". $wpdb->prefix ."itro_plugin_field");
|
52 |
}
|
53 |
|
54 |
-
if( get_option('itro_prev_ver') <= 4.
|
55 |
{
|
56 |
/* delete the obsolete and useless preview post */
|
57 |
if(itro_get_option('preview_id') != NULL){
|
58 |
wp_delete_post(itro_get_option('preview_id'), true);
|
59 |
}
|
60 |
}
|
61 |
-
if( get_option('itro_prev_ver') <= 4.91 )
|
62 |
-
{
|
63 |
-
itro_update_option('countdown_text', 'This popup will close in:');
|
64 |
-
}
|
65 |
}
|
66 |
|
67 |
/* ------------------ PLUGIN OPTION DB MANAGEMENT -------------- */
|
51 |
$wpdb->query("RENAME TABLE wp_itro_plugin_field TO ". $wpdb->prefix ."itro_plugin_field");
|
52 |
}
|
53 |
|
54 |
+
if( get_option('itro_prev_ver') <= 4.6 && $wpdb->prefix != 'wp_' )
|
55 |
{
|
56 |
/* delete the obsolete and useless preview post */
|
57 |
if(itro_get_option('preview_id') != NULL){
|
58 |
wp_delete_post(itro_get_option('preview_id'), true);
|
59 |
}
|
60 |
}
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
|
63 |
/* ------------------ PLUGIN OPTION DB MANAGEMENT -------------- */
|
i18n-config.json
CHANGED
@@ -6,7 +6,6 @@
|
|
6 |
"forms":{
|
7 |
"optionForm":{
|
8 |
"fields":{
|
9 |
-
"countdown_text":{"name":"countdown_text"},
|
10 |
"enter_button_text":{"name":"enter_button_text"},
|
11 |
"leave_button_text":{"name":"leave_button_text"},
|
12 |
"enter_button_url":{"name":"enter_button_url"},
|
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"},
|
mc-main.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: ITRO Popup Plugin
|
4 |
-
Plugin URI: http://www.
|
5 |
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.
|
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 |
global $ITRO_VER;
|
14 |
-
$ITRO_VER = 4.
|
15 |
|
16 |
global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
|
17 |
$popup_fired = false;
|
@@ -69,4 +69,4 @@ add_action( 'wp_enqueue_scripts' , 'itro_load_script' );
|
|
69 |
add_action('admin_print_scripts', 'itro_admin_scripts');
|
70 |
add_action('admin_print_styles', 'itro_load_admin_styles');
|
71 |
add_action('admin_menu', 'itro_plugin_menu');
|
72 |
-
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: ITRO Popup Plugin
|
4 |
+
Plugin URI: http://www.wordpress-popup-plugin.com
|
5 |
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.
|
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 |
global $ITRO_VER;
|
14 |
+
$ITRO_VER = 4.9;
|
15 |
|
16 |
global $popup_fired; //it check if there is a popup visualization via shortcode or via automatic visualization
|
17 |
$popup_fired = false;
|
69 |
add_action('admin_print_scripts', 'itro_admin_scripts');
|
70 |
add_action('admin_print_styles', 'itro_load_admin_styles');
|
71 |
add_action('admin_menu', 'itro_plugin_menu');
|
72 |
+
?>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== ITRO Popup Plugin ===
|
2 |
Contributors: ITRO
|
3 |
-
Donate link: http://www
|
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 |
|
@@ -41,7 +41,7 @@ Simply the best Wordpress popup plugin!
|
|
41 |
Thanks to [Viterbo Marketing](https://www.viterbomarketing.com) for website and marketing consulting.
|
42 |
|
43 |
WANT MORE FEATURES? Try ITRO Wordpress Marketing for free!
|
44 |
-
[TRY IT FOR FREE!](http://www.itroteam.com/)
|
45 |
|
46 |
TRANSLATED IN FOLLOWING LANGUAGES:
|
47 |
|
@@ -56,10 +56,10 @@ TRANSLATED IN FOLLOWING LANGUAGES:
|
|
56 |
- Nederlands (thanks to Descamps Gino)
|
57 |
|
58 |
|
59 |
-
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/)
|
60 |
-
DONATE NOW! [DONATE NOW](http://www.itroteam.com/)
|
61 |
|
62 |
-
For any problem, please contact us at our site: [CONTACT US](http://www.itroteam.com/)
|
63 |
|
64 |
Want a more powerful marketing tools?
|
65 |
Try ITRO Wordpress Marketing PRO with a 14 days free trial.
|
@@ -77,13 +77,13 @@ Try ITRO Wordpress Marketing PRO with a 14 days free trial.
|
|
77 |
★ SOCIAL POPUPS
|
78 |
★ VIDEO EMBEDDING (Youtube and Vimeo)
|
79 |
|
80 |
-
[TRY IT FOR FREE!](http://www.itroteam.com/)
|
81 |
|
82 |
== Installation ==
|
83 |
|
84 |
-
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/)
|
85 |
|
86 |
-
DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itroteam.com/)
|
87 |
|
88 |
1. Unzip `itro-plugin.zip` to the `/wp-content/plugins/` directory or select it by "Add new" in the 'Plugins' menu in WordPress
|
89 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
@@ -92,20 +92,15 @@ DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itroteam.com/)
|
|
92 |
|
93 |
== Frequently Asked Questions ==
|
94 |
|
95 |
-
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/)
|
96 |
|
97 |
-
DONATE NOW! - HELP US TO KEEP IT FREE! [DONATE NOW](http://www.itroteam.com/)
|
98 |
|
99 |
== Screenshots ==
|
100 |
|
101 |
-
VIEW LIVE DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itroteam.com/)
|
102 |
|
103 |
== Changelog ==
|
104 |
-
= 4.9.1 =
|
105 |
-
ADDED: customizable text for the countdown
|
106 |
-
FIXED: overlayng behaviour with iframes in the popup content
|
107 |
-
FIXED: undefined variable error
|
108 |
-
|
109 |
= 4.9 =
|
110 |
ADDED: shortcode for visualization.
|
111 |
ADDED: mobile close tag text automatic font color.
|
@@ -346,9 +341,9 @@ ADDED: Absolute position only for mobile devices.
|
|
346 |
IMPROVED: Useless preview page deleted. Preview via GET request.
|
347 |
|
348 |
== Notes ==
|
349 |
-
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/)
|
350 |
|
351 |
-
DONATE NOW! - HELP US TO KEEP IT FREE! [DONATE NOW](http://www.itroteam.com/)
|
352 |
|
353 |
We accept all kind of suggestion.
|
354 |
Thanks to Jan Odvarko for jscolor: http://jscolor.com/
|
1 |
=== ITRO Popup Plugin ===
|
2 |
Contributors: ITRO
|
3 |
+
Donate link: http://www./donate/
|
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 |
|
41 |
Thanks to [Viterbo Marketing](https://www.viterbomarketing.com) for website and marketing consulting.
|
42 |
|
43 |
WANT MORE FEATURES? Try ITRO Wordpress Marketing for free!
|
44 |
+
[TRY IT FOR FREE!](http://www.itroteam.com/download-free-trial-of-itro-wordpress-marketing/)
|
45 |
|
46 |
TRANSLATED IN FOLLOWING LANGUAGES:
|
47 |
|
56 |
- Nederlands (thanks to Descamps Gino)
|
57 |
|
58 |
|
59 |
+
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/itro-wordpress-popup-plugin-guide/)
|
60 |
+
DONATE NOW! [DONATE NOW](http://www.itroteam.com/donate/)
|
61 |
|
62 |
+
For any problem, please contact us at our site: [CONTACT US](http://www.itroteam.com/contact-us/)
|
63 |
|
64 |
Want a more powerful marketing tools?
|
65 |
Try ITRO Wordpress Marketing PRO with a 14 days free trial.
|
77 |
★ SOCIAL POPUPS
|
78 |
★ VIDEO EMBEDDING (Youtube and Vimeo)
|
79 |
|
80 |
+
[TRY IT FOR FREE!](http://www.itroteam.com/download-free-trial-of-itro-wordpress-marketing/)
|
81 |
|
82 |
== Installation ==
|
83 |
|
84 |
+
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/itro-wordpress-popup-plugin-guide/)
|
85 |
|
86 |
+
DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itroteam.com/donate/)
|
87 |
|
88 |
1. Unzip `itro-plugin.zip` to the `/wp-content/plugins/` directory or select it by "Add new" in the 'Plugins' menu in WordPress
|
89 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
92 |
|
93 |
== Frequently Asked Questions ==
|
94 |
|
95 |
+
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/itro-wordpress-popup-plugin-guide/)
|
96 |
|
97 |
+
DONATE NOW! - HELP US TO KEEP IT FREE! [DONATE NOW](http://www.itroteam.com/donate/)
|
98 |
|
99 |
== Screenshots ==
|
100 |
|
101 |
+
VIEW LIVE DEMOS ON OUR OFFICIAL SITE - [CLICK HERE!](http://www.itroteam.com/wordpress-popup-samples-and-demos/)
|
102 |
|
103 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
104 |
= 4.9 =
|
105 |
ADDED: shortcode for visualization.
|
106 |
ADDED: mobile close tag text automatic font color.
|
341 |
IMPROVED: Useless preview page deleted. Preview via GET request.
|
342 |
|
343 |
== Notes ==
|
344 |
+
FOR TUTORIAL AND FAQ VISIT THE OFFICIAL SITE [CLICK HERE!](http://www.itroteam.com/itro-wordpress-popup-plugin-guide/)
|
345 |
|
346 |
+
DONATE NOW! - HELP US TO KEEP IT FREE! [DONATE NOW](http://www.itroteam.com/donate/)
|
347 |
|
348 |
We accept all kind of suggestion.
|
349 |
Thanks to Jan Odvarko for jscolor: http://jscolor.com/
|
scripts/itro-scripts.js
CHANGED
@@ -15,11 +15,15 @@ var itro_age_restriction;
|
|
15 |
*
|
16 |
*/
|
17 |
function itro_enter_anim()
|
18 |
-
{
|
|
|
|
|
19 |
if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
|
20 |
{
|
21 |
-
|
22 |
-
|
|
|
|
|
23 |
jQuery("#itro_opaco").fadeIn(function()
|
24 |
{
|
25 |
jQuery("#itro_popup").fadeIn();
|
15 |
*
|
16 |
*/
|
17 |
function itro_enter_anim()
|
18 |
+
{
|
19 |
+
itro_margin_refresh(50); //align the popup before fadein
|
20 |
+
|
21 |
if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
|
22 |
{
|
23 |
+
itro_popup.style.visibility = 'visible';
|
24 |
+
itro_opaco.style.visibility = 'visible';
|
25 |
+
itro_popup.style.display = 'none';
|
26 |
+
itro_opaco.style.display = 'none';
|
27 |
jQuery("#itro_opaco").fadeIn(function()
|
28 |
{
|
29 |
jQuery("#itro_popup").fadeIn();
|
templates/itro-popup-template.php
CHANGED
@@ -4,14 +4,14 @@
|
|
4 |
*/
|
5 |
function itro_popup_template()
|
6 |
{ ?>
|
7 |
-
<div id="itro_popup"
|
8 |
<?php
|
9 |
if( itro_get_option('age_restriction') == NULL ) /* age restriction off */
|
10 |
{
|
11 |
if( itro_get_option('popup_time') != 0 )
|
12 |
{
|
13 |
echo '<div id="popup_countdown" align="center">';
|
14 |
-
_e(
|
15 |
echo '<b id="timer"></b></div>';
|
16 |
}
|
17 |
|
@@ -48,7 +48,7 @@ function itro_popup_template()
|
|
48 |
</div>
|
49 |
<?php }?>
|
50 |
</div>
|
51 |
-
<div id="itro_opaco"
|
52 |
<?php
|
53 |
}
|
54 |
?>
|
4 |
*/
|
5 |
function itro_popup_template()
|
6 |
{ ?>
|
7 |
+
<div id="itro_popup">
|
8 |
<?php
|
9 |
if( itro_get_option('age_restriction') == NULL ) /* age restriction off */
|
10 |
{
|
11 |
if( itro_get_option('popup_time') != 0 )
|
12 |
{
|
13 |
echo '<div id="popup_countdown" align="center">';
|
14 |
+
_e('This popup will be closed in: ','itro-plugin');
|
15 |
echo '<b id="timer"></b></div>';
|
16 |
}
|
17 |
|
48 |
</div>
|
49 |
<?php }?>
|
50 |
</div>
|
51 |
+
<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>
|
52 |
<?php
|
53 |
}
|
54 |
?>
|