b0y-101 Mini Shell


Current Path : E:/www/chiangmai/modules/mod_ebstickycookienotice/tmpl/
File Upload :
Current File : E:/www/chiangmai/modules/mod_ebstickycookienotice/tmpl/default.php

<?php
/**
 * @package Module EB Sticky Cookie Notice for Joomla!
 * @version 1.8: mod_ebstickycookienotice.php Sep 2021
 * @author url: https://www/extnbakers.com
 * @copyright Copyright (C) 2021 extnbakers.com. All rights reserved.
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html 
**/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php 
//Get Parameters
 $style = $params->get('opt');
 $position = $params->get('pos');
 $background_color = $params->get('bttnbg');

 $include_image = $params->get('include_image');
 $cookieimage = $params->get('cookieimage');
 $cookieimagewidth = $params->get('cookieimagewidth');
 $header = $params->get('cookieheader');
 $header_color = $params->get('cookieheadercolor');
 $message = $params->get('cookiemsg');
 $message_color = $params->get('cookiemsgcolor');
 $button = $params->get('btn');
 $button_text_color = $params->get('btntextcolor');
 $button_color = $params->get('btncolor');

 $cookieheaderfontsize = $params->get('cookieheaderfontsize', '18px');
 $cookiemsgfontsize = $params->get('cookiemsgfontsize', '12px');
 $cookiemsgzindex = $params->get('cookiemsgzindex', '99999');

 $privacypolicy_text = $params->get('privacypolicy_text', '');
 $privacypolicy_link = $params->get('privacypolicy_link', '');
 $privacypolicy_link_link = $privacypolicy_link != '' ? $privacypolicy_link : 'javascript:void(0);';
 $privacypolicy_btntextcolor = $params->get('privacypolicy_btntextcolor');
 $privacypolicy_btnbgcolor = $params->get('privacypolicy_btnbgcolor');
 $privacypolicy_link_target = $params->get('privacypolicy_link_target', 'none');
 $target = '';
 if($privacypolicy_link_target == 'new_window' && $privacypolicy_link != ''){
	$target = 'target="_blank"';
 }

 $mdl_path =  JURI::base().'modules/'.$module->module;

if (!defined('SMART_JQUERY') && $params->get('include_jquery', 0) == "1") {
    JHtml::script('https://code.jquery.com/jquery-1.12.4.min.js');
    JHtml::script($mdl_path.'/tmpl/assets/js/jquery-noconflict.js');
    define('SMART_JQUERY', 1);
}


	//Include CSS and JAVASCRIPT
	$document = JFactory::getDocument();	
	$document->addStyleSheet($mdl_path."/tmpl/assets/css/cookie.css?v=".rand());
	$document->addStyleSheet($mdl_path."/tmpl/assets/css/responsive.css?v=".rand());
	$document->addScript($mdl_path."/tmpl/assets/js/cookie_script.js?v=".rand());
	$document->setMetaData( "viewport", "width=device-width, initial-scale=1.0" );

?>

<!--****************************** COOKIES HTML CODE START HERE ******************************-->
<div class="<?php echo $style =="SimpleBar"?"notice_div_simplebar":"notice_div_ribbin"?> <?php echo $position=="Bottom"?"ebsticky_bottom":"ebsticky_top"?>" id="eu_cookies">
	<div class="inner1 <?php if($include_image == 1){ echo 'eb_contentimagewrap'; } ?>">

		<div class="inner3 eb_contentwrap">
			<?php if($include_image == 1){ ?>
			<div class="eb_imagewrap">
				<img src="<?php echo $cookieimage?>" alt="<?php echo $header;?>" />
			</div>
			<?php } ?>
			<div class="eb_textinfo">
				<?php if($header!=''){ ?><div class="heading_title"><?php echo $header;?></div><?php } ?>
				<?php if($message!=''){ ?><p><?php echo $message; ?></p><?php } ?>
			</div>
		</div>
		<div class="button_message eb_privacypolicy"> 
			<?php if($privacypolicy_text!=''){ ?>
				<a <?php echo $target; ?> href="<?php echo $privacypolicy_link_link; ?>" class="button_cookie eb_papbtn" aria-label="Cookie Policy"><?php echo $privacypolicy_text; ?></a>
			<?php } ?>
			<a class="button_cookie" href="javascript:void(0);" onclick="calltohide()" id="hideme"><?php echo $button;?></a>
		</div>

	</div>
</div>
<!--****************************** COOKIES HTML CODE END HERE ******************************-->

<!--****************************** COOKIES JAVSCRIPT CODE START HERE -- FOR ACCEPT ******************************-->
<script type="text/javascript">
	check_cookie(getBaseURL());
</script>
<!--****************************** COOKIES JAVSCRIPT CODE END HERE ******************************-->

<!--****************************** COOKIES CSS START HERE ******************************-->
<style>
.notice_div_simplebar,.notice_div_ribbin{background:<?php echo $background_color. "!important";?>; z-index: <?php echo $cookiemsgzindex. "!important";?>; }
.inner3 .heading_title{color:<?php echo $header_color. "!important";?>; font-size: <?php echo $cookieheaderfontsize; ?>;}
.inner3 p{color:<?php echo $message_color. "!important";?>; font-size: <?php echo $cookiemsgfontsize; ?>;}
.button_cookie{background:<?php echo $button_color. "!important";?>; color:<?php echo $button_text_color. "!important";?>;}
.eb_papbtn{background:<?php echo $privacypolicy_btnbgcolor. "!important";?>; color:<?php echo $privacypolicy_btntextcolor. "!important";?>;}
.eb_contentimagewrap .eb_contentwrap .eb_imagewrap{float:left; width:<?php echo $cookieimagewidth; ?>px; padding-right:15px;}
.eb_contentimagewrap .eb_contentwrap .eb_textinfo{float:left; width:calc(100% - <?php echo $cookieimagewidth; ?>px);}
</style>
<!--****************************** COOKIES CSS END HERE ******************************-->

Copyright © 2019 by b0y-101