Version Description
improved caching compatibility
Download this release
Release Info
Developer | ITRO |
Plugin | ITRO Popup Plugin |
Version | 4.5.9 |
Comparing to | |
See all releases |
Code changes from version 4.5.8 to 4.5.9
- functions/core-function.php +7 -10
- functions/js-function.php +5 -5
- mc-main.php +2 -2
- readme.txt +7 -1
- scripts/itro-scripts.js +7 -1
functions/core-function.php
CHANGED
@@ -39,13 +39,13 @@ function itro_init()
|
|
39 |
switch(WPLANG)
|
40 |
{
|
41 |
case 'en_US':
|
42 |
-
|
43 |
break;
|
44 |
case 'it_IT':
|
45 |
-
|
46 |
break;
|
47 |
default:
|
48 |
-
$welcome_text = '<h1 style="text-align: center;"><span style="color: #000000; font-size:
|
49 |
}
|
50 |
itro_update_field('custom_html',$welcome_text);
|
51 |
|
@@ -136,7 +136,7 @@ function itro_display_popup()
|
|
136 |
{
|
137 |
$id_match++;
|
138 |
}
|
139 |
-
if(
|
140 |
{
|
141 |
itro_style();
|
142 |
itro_popup_template();
|
@@ -144,12 +144,9 @@ function itro_display_popup()
|
|
144 |
}
|
145 |
break;
|
146 |
case 'all':
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
itro_popup_template();
|
151 |
-
itro_popup_js();
|
152 |
-
}
|
153 |
break;
|
154 |
case 'none':
|
155 |
if( itro_get_option('preview_id') == get_the_id() )
|
39 |
switch(WPLANG)
|
40 |
{
|
41 |
case 'en_US':
|
42 |
+
$welcome_text = '<h1 style="text-align: center;"><span style="color: #000000; font-size: 20;">Hello, this is a pop-up sample.</span></h1><p style="text-align: center;"><span style="color: #000000; font-size: 20;">The basic stetting to get started are: Popup height, Popup time, Next visualization, Popup border color, Popup background.</span></p><p style="text-align: center;"><span style="color: #000000; font-size: 20;">Write watever you want in the Custom text editor and enjoy our plugin!</span></p><p> </p>';
|
43 |
break;
|
44 |
case 'it_IT':
|
45 |
+
$welcome_text = '<h1 style="text-align: center;"><span style="color: #000000; font-size: 20;">Questo è un esempio di popup.</span></h1><p style="text-align: center;"> </p><p style="text-align: center;"><span style="color: #000000; font-size: 20;">Le impostazioni base per iniziare sono: Altezza popup, Tempo popup, Prossima visualizzazione, Colore bordo, Colore sfondo.</span></p><p style="text-align: center;"> </p><p style="text-align: center;"><span style="color: #000000; font-size: 20;">Scrivi qualunque cosa vuoi nell'editor di testo di wordpress e buon lavoro!</span></p><p style="text-align: center;"> </p>';
|
46 |
break;
|
47 |
default:
|
48 |
+
$welcome_text = '<h1 style="text-align: center;"><span style="color: #000000; font-size: 20;">Hello, this is a pop-up sample.</span></h1><p style="text-align: center;"><span style="color: #000000; font-size: 20;">The basic stetting to get started are: Popup height, Popup time, Next visualization, Popup border color, Popup background.</span></p><p style="text-align: center;"><span style="color: #000000; font-size: 20;">Write watever you want in the Custom text editor and enjoy our plugin!</span></p><p> </p>';
|
49 |
}
|
50 |
itro_update_field('custom_html',$welcome_text);
|
51 |
|
136 |
{
|
137 |
$id_match++;
|
138 |
}
|
139 |
+
if( $id_match != NULL || itro_get_option('preview_id') == get_the_id() )
|
140 |
{
|
141 |
itro_style();
|
142 |
itro_popup_template();
|
144 |
}
|
145 |
break;
|
146 |
case 'all':
|
147 |
+
itro_style();
|
148 |
+
itro_popup_template();
|
149 |
+
itro_popup_js();
|
|
|
|
|
|
|
150 |
break;
|
151 |
case 'none':
|
152 |
if( itro_get_option('preview_id') == get_the_id() )
|
functions/js-function.php
CHANGED
@@ -8,16 +8,16 @@ This file is part of ITRO Popup Plugin.
|
|
8 |
function itro_popup_js()
|
9 |
{ ?>
|
10 |
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
11 |
/* pass true if is the preview page. used for cookie control via js due W3 total cache or similar */
|
12 |
itro_is_preview = <?php if( itro_get_option('preview_id') == get_the_id() ){ echo 'true'; }else{ echo 'false'; } ?>;
|
13 |
<?php
|
14 |
if (itro_get_option('age_restriction') == NULL) /* OFF age validation */
|
15 |
{
|
16 |
-
|
17 |
-
{ ?>
|
18 |
-
itro_set_cookie("popup_cookie","one_time_popup",<?php echo itro_get_option('cookie_time_exp'); ?>); <?php
|
19 |
-
}
|
20 |
-
|
21 |
if( itro_get_option('popup_unlockable') != 'yes' )
|
22 |
{ ?>
|
23 |
document.onkeydown = function(event)
|
8 |
function itro_popup_js()
|
9 |
{ ?>
|
10 |
<script type="text/javascript">
|
11 |
+
/* init var */
|
12 |
+
itro_cookie_expiration = <?php echo itro_get_option('cookie_time_exp'); ?>;
|
13 |
+
itro_is_preview = <?php if ( itro_get_option('preview_id') == get_the_id() ){echo 'true';}else{ echo 'false'; } ?>;
|
14 |
+
|
15 |
/* pass true if is the preview page. used for cookie control via js due W3 total cache or similar */
|
16 |
itro_is_preview = <?php if( itro_get_option('preview_id') == get_the_id() ){ echo 'true'; }else{ echo 'false'; } ?>;
|
17 |
<?php
|
18 |
if (itro_get_option('age_restriction') == NULL) /* OFF age validation */
|
19 |
{
|
20 |
+
echo 'itro_age_restriction = false;';
|
|
|
|
|
|
|
|
|
21 |
if( itro_get_option('popup_unlockable') != 'yes' )
|
22 |
{ ?>
|
23 |
document.onkeydown = function(event)
|
mc-main.php
CHANGED
@@ -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: I.T.RO.(c) Sez. Informatica
|
10 |
E-mail: support@itro.eu
|
11 |
-
Version: 4.5.
|
12 |
Author URI: http://www.itro.eu/
|
13 |
*/
|
14 |
|
15 |
global $ITRO_VER;
|
16 |
-
$ITRO_VER = 4.
|
17 |
|
18 |
define('itroPath', plugins_url() . '/itro-popup/');
|
19 |
define('itroImages', plugins_url() . '/itro-popup/images/');
|
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: I.T.RO.(c) Sez. Informatica
|
10 |
E-mail: support@itro.eu
|
11 |
+
Version: 4.5.9
|
12 |
Author URI: http://www.itro.eu/
|
13 |
*/
|
14 |
|
15 |
global $ITRO_VER;
|
16 |
+
$ITRO_VER = 4.59;
|
17 |
|
18 |
define('itroPath', plugins_url() . '/itro-popup/');
|
19 |
define('itroImages', plugins_url() . '/itro-popup/images/');
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.itro.eu/index.php/donate/
|
|
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: 3.8.1
|
7 |
-
Stable tag: 4.5.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -98,6 +98,9 @@ DONATE NOW! - HELP US TO DEVELOP FOR YOU! [DONATE NOW](http://www.itro.eu/?page_
|
|
98 |
no screenshot avaliable
|
99 |
|
100 |
== Changelog ==
|
|
|
|
|
|
|
101 |
= 4.5.8 =
|
102 |
wp_ prefix bug fixed. Now the table has the right wordpress table prefix.
|
103 |
Caching issue resolved (W3 super cache and similar) now "Next visualization time" works
|
@@ -270,6 +273,9 @@ bug fixed: color table now works in admin pannel.
|
|
270 |
First released version.
|
271 |
|
272 |
== Upgrade Notice ==
|
|
|
|
|
|
|
273 |
= 4.5.8 =
|
274 |
wp_ prefix bug fixed. Now the table has the right wordpress table prefix.
|
275 |
Caching issue resolved (W3 super cache and similar) now "Next visualization time" works
|
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: 3.8.1
|
7 |
+
Stable tag: 4.5.9
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
98 |
no screenshot avaliable
|
99 |
|
100 |
== Changelog ==
|
101 |
+
= 4.5.9 =
|
102 |
+
improved caching compatibility
|
103 |
+
|
104 |
= 4.5.8 =
|
105 |
wp_ prefix bug fixed. Now the table has the right wordpress table prefix.
|
106 |
Caching issue resolved (W3 super cache and similar) now "Next visualization time" works
|
273 |
First released version.
|
274 |
|
275 |
== Upgrade Notice ==
|
276 |
+
= 4.5.9 =
|
277 |
+
improved caching compatibility
|
278 |
+
|
279 |
= 4.5.8 =
|
280 |
wp_ prefix bug fixed. Now the table has the right wordpress table prefix.
|
281 |
Caching issue resolved (W3 super cache and similar) now "Next visualization time" works
|
scripts/itro-scripts.js
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
/* init variables */
|
2 |
var itro_is_preview;
|
|
|
|
|
3 |
|
4 |
/* manage fade in animation */
|
5 |
function itro_enter_anim()
|
6 |
{
|
7 |
-
if(
|
8 |
{
|
9 |
itro_popup.style.visibility = '';
|
10 |
itro_opaco.style.visibility = '';
|
@@ -13,6 +15,10 @@ function itro_enter_anim()
|
|
13 |
jQuery("#itro_opaco").fadeIn(function()
|
14 |
{
|
15 |
jQuery("#itro_popup").fadeIn();
|
|
|
|
|
|
|
|
|
16 |
});
|
17 |
}
|
18 |
|
1 |
/* init variables */
|
2 |
var itro_is_preview;
|
3 |
+
var itro_cookie_expiration;
|
4 |
+
var itro_age_restriction;
|
5 |
|
6 |
/* manage fade in animation */
|
7 |
function itro_enter_anim()
|
8 |
{
|
9 |
+
if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
|
10 |
{
|
11 |
itro_popup.style.visibility = '';
|
12 |
itro_opaco.style.visibility = '';
|
15 |
jQuery("#itro_opaco").fadeIn(function()
|
16 |
{
|
17 |
jQuery("#itro_popup").fadeIn();
|
18 |
+
if( itro_age_restriction === false )
|
19 |
+
{
|
20 |
+
itro_set_cookie("popup_cookie","one_time_popup", itro_cookie_expiration);
|
21 |
+
}
|
22 |
});
|
23 |
}
|
24 |
|