function itro_update_db()
{
    global $wpdb;
    $prev_ver = get_option('itro_prev_ver');
    if ($prev_ver <= 3.68) {
        itro_update_option('popup_border_width', 3);
        itro_update_option('popup_border_radius', 8);
    }
    if (version_compare($prev_ver, 4.6) == -1 && $wpdb->prefix != 'wp_') {
        $wpdb->query("RENAME TABLE wp_itro_plugin_option TO " . $wpdb->prefix . "itro_plugin_option");
        $wpdb->query("RENAME TABLE wp_itro_plugin_field TO " . $wpdb->prefix . "itro_plugin_field");
    }
    if (version_compare($prev_ver, 4.7) == -1) {
        /* delete the obsolete and useless preview post */
        if (itro_get_option('preview_id') != NULL) {
            wp_delete_post(itro_get_option('preview_id'), true);
        }
    }
    // added the text for countdown
    if (version_compare($prev_ver, 4.91) == -1) {
        itro_update_option('countdown_text', 'This popup will close in:');
    }
    // reset the popup height after error for data sanitization
    if (version_compare($prev_ver, 4.95) == -1) {
        if (itro_get_option('select_popup_height') == 'px' && itro_get_option('px_popup_height') == 0) {
            itro_update_option('select_popup_height', 'auto');
        }
    }
}
function itro_popup_template()
{
    ?>
	<div id="itro_popup" style="visibility:hidden; display: none;">
	<?php 
    if (itro_get_option('age_restriction') == NULL) {
        if (itro_get_option('popup_time') != 0) {
            echo '<div id="popup_countdown" align="center">';
            _e('This popup will be closed in: ', 'itro-plugin');
            echo '<b id="timer"></b></div>';
        }
        $selected_cross = itroPath . 'images/close-icon.png';
        /* default image (black cross) */
        switch (itro_get_option('cross_selected')) {
            case 'white':
                $selected_cross = itroPath . 'images/close-icon-white.png';
                break;
            case 'white_border':
                $selected_cross = itroPath . 'images/close-icon-white-border.png';
                break;
        }
        echo '<img id="close_cross" src="' . $selected_cross . '" title="';
        _e('CLOSE', 'itro-plugin');
        echo '" onclick="jQuery(\'#itro_popup\').fadeOut(function(){itro_opaco.style.visibility=\'hidden\';})">';
    }
    ?>
		<div id="popup_content"><?php 
    $custom_field = stripslashes(itro_get_field('custom_html'));
    /* insert custom html code  */
    echo do_shortcode(str_replace("\r\n", '', $custom_field));
    /* return the string whitout new line */
    if (itro_get_option('age_restriction') == 'yes') {
        ?>
				<p id="age_button_area" style="text-align: center;">
					<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');
        ?>
">
					<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');
        ?>
">
				</p><?php 
    }
    ?>
		</div> 
	</div>
	<div id="itro_opaco" style="visibility:hidden"></div>
<?php 
}
function itro_check_selected_id($id_to_check)
{
	if(itro_get_option('selected_page_id') != NULL)
	{
		$selected_page_id = json_decode(itro_get_option('selected_page_id'));
		$id_match = NULL;
		if( isset($selected_page_id) ) 
		{
			foreach ($selected_page_id as $single_id)
			{if ($single_id == $id_to_check) return (true); }
		}
	}
}
			<input type="hidden" name="hosted_button_id" value="WNRVCFYD3ULQ8"/>
			<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
			<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1"/>
		</form>
	</div>
	<p class="wpstyle" onClick="jQuery('#debug_info').toggle();"><?php _e("System Status", 'itro-plugin' ); ?> </p>
	<form method="POST" action="" id="debug_info" style="display:none;">
		<?php echo itro_get_serverinfo(); ?>
	</form>
</div>

<form id="delete_data" method="post" style="clear:both;">
	<br>
	<hr>
	<input type="hidden" name="delete_data_hidden" value="Y">
	<input type="checkbox" id="delete_data" name="delete_data" value="yes" <?php if(itro_get_option('delete_data')=='yes' ){echo 'checked="checked"';} ?> />
	<span><?php _e("DELETE ALL DATA ON PLUGIN UNINSTALL", 'itro-plugin' ); ?></span>
	<img style="vertical-align:super; cursor:help" src="<?php echo itroImages . 'question_mark.png' ; ?>"title="<?php _e('Check this box if you want to delete or maintain database tables. It is usefull if you have to try to install again the plugin, without lost your settings.','itro-plugin');?>" >
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />&nbsp;&nbsp;&nbsp;&nbsp;
</form>

<?php 
				$itro_hide_args = array(
				$opt_name[24] . '_div',
				$opt_name[29] . '_div',
				$opt_name[17] . '_div',
				$opt_name[20] . '_div',
				$opt_name[27] . '_div',
				$opt_name[30] . '_div',
				$opt_name[31] . '_div',
function itro_show_hide($hide_target_id, $hide_shooter_id, $display_val, $inverted, $highlight_opt)
{
    ?>
	<script type="text/javascript">
	
	<?php 
    if ($inverted == 'false') {
        $check_condition = 'yes';
    } else {
        $check_condition = NULL;
    }
    if (itro_get_option($hide_shooter_id) == $check_condition) {
        foreach ($hide_target_id as $single_targer_id) {
            echo 'document.getElementById("' . $single_targer_id . '").style.display = "table";';
        }
        unset($single_targer_id);
    } else {
        foreach ($hide_target_id as $single_targer_id) {
            echo 'document.getElementById("' . $single_targer_id . '").style.display = "none";';
        }
        unset($single_targer_id);
    }
    ?>

	function <?php 
    echo $hide_shooter_id;
    ?>
_itro_show_hide()
	{<?php 
    foreach ($hide_target_id as $single_targer_id) {
        ?>
			if( document.getElementById("<?php 
        echo $single_targer_id;
        ?>
").style.display != "none" ) 
				{jQuery("#<?php 
        echo $single_targer_id;
        ?>
").fadeOut("fast");}
			else 
				{
					jQuery("#<?php 
        echo $single_targer_id;
        ?>
").fadeIn("fast" , function() {jQuery("#<?php 
        echo $single_targer_id;
        ?>
").effect( "highlight", {color:"<?php 
        echo $highlight_opt[0];
        ?>
"}, <?php 
        echo $highlight_opt[1];
        ?>
 );});
					document.getElementById("<?php 
        echo $single_targer_id;
        ?>
").style.display = "table";
				}<?php 
    }
    unset($single_targer_id);
    ?>
	}
	
	function <?php 
    echo $hide_shooter_id;
    ?>
_stop_anim()
	{ <?php 
    foreach ($hide_target_id as $single_targer_id) {
        ?>
			if ( document.getElementById("<?php 
        echo $single_targer_id;
        ?>
").style.display != "none" )
			{ jQuery("#<?php 
        echo $single_targer_id;
        ?>
").stop(true, true); } <?php 
    }
    ?>
	}
	
	document.getElementById("<?php 
    echo 'span_' . $hide_shooter_id;
    ?>
").addEventListener("mousedown" , <?php 
    echo $hide_shooter_id;
    ?>
_stop_anim);
	document.getElementById("<?php 
    echo $hide_shooter_id;
    ?>
").addEventListener("mousedown" , <?php 
    echo $hide_shooter_id;
    ?>
_stop_anim);
	
	document.getElementById("<?php 
    echo 'span_' . $hide_shooter_id;
    ?>
").addEventListener("mousedown" , <?php 
    echo $hide_shooter_id;
    ?>
_itro_show_hide);
	document.getElementById("<?php 
    echo $hide_shooter_id;
    ?>
").addEventListener("mousedown" , <?php 
    echo $hide_shooter_id;
    ?>
_itro_show_hide);
	
	</script> <?php 
}
function itro_style()
{
    ?>
	<style>
		#age_button_area
		{
			padding-top:10px;
			position: relative;
			width: 100%;
			bottom: 5px;
			padding-top:5px;
		}
		
		#ageEnterButton
		{
			border-color:<?php 
    echo itro_get_option('enter_button_border_color');
    ?>
;
			background:<?php 
    echo itro_get_option('enter_button_bg_color');
    ?>
;
			color: <?php 
    echo itro_get_option('enter_button_font_color');
    ?>
;
		}

		#ageLeaveButton
		{
			border-color:<?php 
    echo itro_get_option('leave_button_border_color');
    ?>
;
			background:<?php 
    echo itro_get_option('leave_button_bg_color');
    ?>
;
			color: <?php 
    echo itro_get_option('leave_button_font_color');
    ?>
;
		}
		
		#popup_content
		{
			<?php 
    if (itro_get_option('select_popup_height') == 'px' || itro_get_option('select_popup_height') == '%') {
        echo 'overflow-y:auto;';
    } else {
        echo 'overflow-y:hidden;';
    }
    ?>
			overflow-x: auto;
			height: 100%;
			width:100%;
		}
		
		#itro_popup
		{
			position: <?php 
    echo itro_get_option('popup_position');
    ?>
;
			background-image: <?php 
    if (itro_get_option('background_select') != NULL) {
        echo 'url("' . itro_get_option('background_source') . '");';
    }
    ?>
			background-repeat: no-repeat;
			background-position: center center;
			margin: 0 auto;
			left:30px;
			right:30px;
			z-index: 2147483647 !important;
			<?php 
    if (itro_get_option('popup_padding') != NULL) {
        echo 'padding:' . itro_get_option('popup_padding') . 'px !important;';
    }
    ?>
			<?php 
    if (itro_get_option('auto_margin_check') == NULL) {
        if (itro_get_option('popup_top_margin') != NULL) {
            echo 'top:' . itro_get_option('popup_top_margin') . 'px;';
        } else {
            echo 'top: 0px;';
        }
    }
    if (itro_get_option('popup_border_color') != NULL) {
        echo 'border: solid;';
        echo 'border-color:' . itro_get_option('popup_border_color') . ';';
    }
    ?>
			border-radius: <?php 
    echo itro_get_option('popup_border_radius');
    ?>
px;
			border-width: <?php 
    echo itro_get_option('popup_border_width');
    ?>
px;
			width: <?php 
    if (itro_get_option('select_popup_width') == 'px') {
        echo itro_get_option('px_popup_width') . 'px';
    }
    if (itro_get_option('select_popup_width') == 'perc') {
        echo itro_get_option('perc_popup_width') . '%';
    }
    ?>
;
			height: <?php 
    if (itro_get_option('select_popup_height') == 'px') {
        echo itro_get_option('px_popup_height') . 'px';
    }
    if (itro_get_option('select_popup_height') == 'perc') {
        echo itro_get_option('perc_popup_height') . '%';
    }
    ?>
;
			background-color: <?php 
    echo itro_get_option('popup_background');
    ?>
;
			<?php 
    if (itro_get_option('show_countdown') != NULL) {
        echo 'padding-bottom: 15px;';
    }
    ?>
		}
		
		#close_cross
		{
			cursor:pointer; 
			width:20px; 
			position:absolute; 
			top:-22px; 
			right:-22px;
		}

		#popup_countdown 
		{
			color: <?php 
    echo itro_get_option('count_font_color');
    ?>
;
			width: 100%;
			padding-top: <?php 
    if (itro_get_option('show_countdown') != 'yes') {
        echo '0px';
    } else {
        echo '1px';
    }
    ?>
 ;
			padding-bottom:<?php 
    if (itro_get_option('show_countdown') != 'yes') {
        echo '0px';
    } else {
        echo '1px';
    }
    ?>
 ;
			background-color: <?php 
    echo itro_get_option('popup_border_color');
    ?>
;
			height: <?php 
    if (itro_get_option('show_countdown') != 'yes') {
        echo '0px';
    }
    ?>
 ;
			overflow: hidden;
			position:absolute;
			bottom:0px;
			left:0px;
			border-bottom-left:<?php 
    echo itro_get_option('popup_border_radius');
    ?>
px;
			border-bottom-right:<?php 
    echo itro_get_option('popup_border_radius');
    ?>
px;
		}

		#itro_opaco{
			position:fixed;
			background-color:  <?php 
    echo itro_get_option('opaco_bg_color');
    ?>
;
			font-size: 10px;
			font-family: Verdana;
			top: 100px;    
			width: 100%;
			height: 100%;
			z-index: 2147483646 !important;
			left: 0px ;
			right: 0px;
			top: 0px;
			bottom: 0px;
			opacity: <?php 
    echo itro_get_option('popup_bg_opacity');
    ?>
 ;
			filter:alpha(opacity = <?php 
    echo itro_get_option('popup_bg_opacity') * 100;
    ?>
); /* For IE8 and earlier */
		}<?php 
    if (itro_get_option('disable_mobile') == 'yes') {
        echo '
			@media screen and (max-width: 1024px)
			{
				#itro_popup{display: none !important;}
				#itro_opaco{display: none !important;}
			}';
    }
    ?>
	</style>
<?php 
}
<?php

if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
//uninstall not called from WordPress exit
if (!defined('WP_UNINSTALL_PLUGIN')) {
    exit;
} else {
    global $wpdb;
    include_once 'functions/core-function.php';
    include_once 'functions/database-function.php';
    if (itro_get_option('delete_data') == 'yes') {
        $preview_id = itro_get_option('preview_id');
        //delete preview page
        wp_delete_post($preview_id, true);
        delete_option('itro_curr_ver');
        delete_option('itro_prev_ver');
        $wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_option");
        $wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_field");
    }
}
Beispiel #8
0
_e("System Status", 'itro-plugin');
?>
 </p>
	<form method="POST" action="" id="debug_info" style="display:none;">
		<?php 
echo itro_get_serverinfo();
?>
	</form>
</div>

<form id="delete_data" method="post" style="clear:both;">
	<br>
	<hr>
	<input type="hidden" name="delete_data_hidden" value="Y">
	<input type="checkbox" id="delete_data" name="delete_data" value="yes" <?php 
if (itro_get_option('delete_data') == 'yes') {
    echo 'checked="checked"';
}
?>
 />
	<span><?php 
_e("DELETE ALL DATA ON PLUGIN UNISTALL", 'itro-plugin');
?>
</span>
	<img style="vertical-align:super; cursor:help" src="<?php 
echo itroImages . 'question_mark.png';
?>
"title="<?php 
_e('Check this box if you want to delete or maintain database tables. It is usefull if you have to try to install again the plugin, without lost your settings.', 'itro-plugin');
?>
" >
function itro_popup_template()
{
    ?>
	<div id="itro_popup">
	<?php 
    if (itro_get_option('age_restriction') == NULL) {
        if (itro_get_option('popup_time') != 0) {
            echo '<div id="popup_countdown" align="center">';
            _e(itro_get_option('countdown_text'));
            echo '<b id="timer"></b></div>';
        }
        $selected_cross = itroPath . 'images/close-icon.png';
        /* default image (black cross) */
        switch (itro_get_option('cross_selected')) {
            case 'white':
                $selected_cross = itroPath . 'images/close-icon-white.png';
                break;
            case 'white_border':
                $selected_cross = itroPath . 'images/close-icon-white-border.png';
                break;
            case 'url':
                $selected_cross = itro_get_option('close_cross_url');
                break;
        }
        echo '<img id="close_cross" src="' . $selected_cross . '" alt="' . __('CLOSE', 'itro-plugin') . '" title="' . __('CLOSE', 'itro-plugin') . '" onclick="itro_exit_anim();">';
    }
    ?>
		<div id="popup_content"><?php 
    $custom_field = stripslashes(itro_get_field('custom_html'));
    /* insert custom html code  */
    $custom_field = str_replace("\r\n", '', $custom_field);
    _e(do_shortcode($custom_field));
    /* return the string whitout new line */
    if (itro_get_option('age_restriction') == 'yes') {
        ?>
				<p id="age_button_area" style="text-align: center;">
					<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'));
        ?>
">
					<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'));
        ?>
">
				</p><?php 
    }
    ?>
		</div>
		<?php 
    if (itro_get_option('age_restriction') != 'yes') {
        ?>
		<div id="ipp_mobile_close_tab">
			<span id="ipp_mobile_close_txt"  onclick="itro_exit_anim();">CLOSE</span>
		</div> 
		<?php 
    }
    ?>
	</div>
	<div id="itro_opaco" <?php 
    if (itro_get_option('age_restriction') != 'yes' && itro_get_option('popup_unlockable') != 'yes') {
        ?>
 onclick="itro_exit_anim();" <?php 
    }
    ?>
 ></div>
<?php 
}
Beispiel #10
0
<?php
//uninstall not called from WordPress exit
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {exit ();}
else
{
	global $wpdb;
	
	include_once ('functions/database-function.php');
	if( itro_get_option('delete_data') == 'yes' )
	{
		$preview_id = itro_get_option('preview_id'); //delete preview page
		wp_delete_post( $preview_id , true );
		
		delete_option('itro_curr_ver');
		delete_option('itro_prev_ver');
		
		$wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_option");
		$wpdb->query("DROP TABLE " . $wpdb->prefix . "itro_plugin_field");
	}
}
?>
function itro_style()
{
    // check if user inputs no-sense values
    if (itro_get_option('select_popup_height') == 'px' && itro_get_option('px_popup_height') == 0 || itro_get_option('select_popup_height') == 'perc' && itro_get_option('perc_popup_height') == 0) {
        itro_update_option('select_popup_height', 'auto');
    }
    if (itro_get_option('select_popup_width') == 'px' && itro_get_option('px_popup_width') == 0) {
        itro_update_option('px_popup_width', '600');
    }
    if (itro_get_option('select_popup_width') == 'perc' && itro_get_option('perc_popup_width') == 0) {
        itro_update_option('perc_popup_width', '60');
    }
    ?>
	<style>
		/* POP-UP */
		#age_button_area
		{
			padding-top:10px;
			position: relative;
			width: 100%;
			bottom: 5px;
			padding-top:5px;
		}
		
		#ageEnterButton
		{
			border-color:<?php 
    echo itro_get_option('enter_button_border_color');
    ?>
;
			background:<?php 
    echo itro_get_option('enter_button_bg_color');
    ?>
;
			color: <?php 
    echo itro_get_option('enter_button_font_color');
    ?>
;
		}

		#ageLeaveButton
		{
			border-color:<?php 
    echo itro_get_option('leave_button_border_color');
    ?>
;
			background:<?php 
    echo itro_get_option('leave_button_bg_color');
    ?>
;
			color: <?php 
    echo itro_get_option('leave_button_font_color');
    ?>
;
		}
		
		#popup_content
		{
			<?php 
    if (itro_get_option('select_popup_height') == 'px' || itro_get_option('select_popup_height') == '%') {
        echo 'overflow-y:auto;';
    } else {
        echo 'overflow-y:hidden;';
    }
    ?>
			overflow-x: auto;
			height: 100%;
			width:100%;
		}
		
		#itro_popup
		{
			visibility: hidden;
			opacity: 0;
			position: <?php 
    echo itro_get_option('popup_position');
    ?>
;
			background-image: <?php 
    if (itro_get_option('background_select') != NULL) {
        echo 'url("' . itro_get_option('background_source') . '");';
    }
    ?>
			background-repeat: no-repeat;
			background-position: center center;
			margin: 0 auto;
			left:1px;
			right:1px;
			z-index: 2147483647 !important;
			<?php 
    if (itro_get_option('popup_padding') != NULL) {
        echo 'padding:' . itro_get_option('popup_padding') . 'px !important;';
    }
    ?>
			<?php 
    if (itro_get_option('auto_margin_check') == NULL) {
        if (itro_get_option('popup_top_margin') != NULL) {
            echo 'top:' . itro_get_option('popup_top_margin') . 'px;';
        } else {
            echo 'top: 0px;';
        }
    }
    if (itro_get_option('popup_border_color') != NULL) {
        echo 'border: solid;';
        echo 'border-color:' . itro_get_option('popup_border_color') . ';';
    }
    ?>
			border-radius: <?php 
    echo itro_get_option('popup_border_radius');
    ?>
px;
			border-width: <?php 
    echo itro_get_option('popup_border_width');
    ?>
px;
			width: <?php 
    if (itro_get_option('select_popup_width') == 'px') {
        echo itro_get_option('px_popup_width') . 'px';
    }
    if (itro_get_option('select_popup_width') == 'perc') {
        echo itro_get_option('perc_popup_width') . '%';
    }
    ?>
;
			height: <?php 
    switch (itro_get_option('select_popup_height')) {
        case 'px':
            echo itro_get_option('px_popup_height') . 'px';
            break;
        case 'perc':
            echo itro_get_option('perc_popup_height') . '%';
            break;
        case 'auto':
            echo 'auto';
            break;
        default:
            echo 'auto';
    }
    ?>
;
			background-color: <?php 
    echo itro_get_option('popup_background');
    ?>
;
			<?php 
    if (itro_get_option('show_countdown') != NULL) {
        echo 'padding-bottom: 15px;';
    }
    ?>
		}
		
		#close_cross
		{
			cursor:pointer; 
			width:20px; 
			position:absolute; 
			top:-22px; 
			right:-22px;
		}

		#popup_countdown 
		{
			color: <?php 
    echo itro_get_option('count_font_color');
    ?>
;
			width: 100%;
			padding-top: <?php 
    if (itro_get_option('show_countdown') != 'yes') {
        echo '0px';
    } else {
        echo '1px';
    }
    ?>
 ;
			padding-bottom:<?php 
    if (itro_get_option('show_countdown') != 'yes') {
        echo '0px';
    } else {
        echo '1px';
    }
    ?>
 ;
			background-color: <?php 
    echo itro_get_option('popup_border_color');
    ?>
;
			height: <?php 
    if (itro_get_option('show_countdown') != 'yes') {
        echo '0px';
    }
    ?>
 ;
			overflow: hidden;
			position:absolute;
			bottom:0px;
			left:0px;
			border-bottom-left:<?php 
    echo itro_get_option('popup_border_radius');
    ?>
px;
			border-bottom-right:<?php 
    echo itro_get_option('popup_border_radius');
    ?>
px;
		}

		#itro_opaco{
			display: none;
			position:fixed;
			background-color:  <?php 
    echo itro_get_option('opaco_bg_color');
    ?>
;
			font-size: 10px;
			font-family: Verdana;
			top: 100px;    
			width: 100%;
			height: 100%;
			z-index: 2147483646 !important;
			left: 0px ;
			right: 0px;
			top: 0px;
			bottom: 0px;
			opacity: <?php 
    echo itro_get_option('popup_bg_opacity');
    ?>
 ;
			filter:alpha(opacity = <?php 
    echo itro_get_option('popup_bg_opacity') * 100;
    ?>
); /* For IE8 and earlier */
		}
		
		/* label under the popup used to close it for mobile devices */
		#ipp_mobile_close_tab{
			display: none;
			border:none;
			position: absolute;
			padding: 5px;
			width: 80px;
			text-align: center;
			left: 1px;
			right: 1px;
			margin: auto;
			background-color: <?php 
    echo itro_get_option('popup_border_color') != NULL ? itro_get_option('popup_border_color') : 'white';
    ?>
		}
		#ipp_mobile_close_txt{
			font-weight: bold;
			cursor: pointer;
		}
		
		/* RESPONSIVE CSS */
		@media screen and (max-width: 780px)
		{
			#itro_popup{
				max-width: 470px;
				<?php 
    if (itro_get_option('absolute_mobile_pos') == 'yes') {
        echo "position: absolute; top: 50px";
    }
    ?>
			}
			#close_cross{
				display: none;
			}
			#ipp_mobile_close_tab{
				display: block;
			}
		}
		@media screen and (max-width: 480px){
			#itro_popup{
				max-width: 300px
			}
		}
			
		<?php 
    if (itro_get_option('disable_mobile') == 'yes') {
        echo '
			@media screen and (max-width: 1024px)
			{
				#itro_popup{display: none !important;}
				#itro_opaco{display: none !important;}
			}';
    }
    ?>
	</style>
<?php 
}