forked from ZwiiCMS-Team/ZwiiCMS
showcookie propre
This commit is contained in:
parent
2e9402f1c8
commit
bb8d7c4294
@ -1191,26 +1191,29 @@ class common {
|
|||||||
*/
|
*/
|
||||||
public function showCookies() {
|
public function showCookies() {
|
||||||
//$cookieName = 'ZWII_COOKIE_CONSENT'.str_replace('_index.php','',str_replace( '/','_',$_SERVER['PHP_SELF']));
|
//$cookieName = 'ZWII_COOKIE_CONSENT'.str_replace('_index.php','',str_replace( '/','_',$_SERVER['PHP_SELF']));
|
||||||
if($this->getInput('ZWII_COOKIE_CONSENT') !== 'true' AND $this->getData(['config','cookieConsent']) === true){ ?>
|
if($this->getInput('ZWII_COOKIE_CONSENT') !== 'true' AND $this->getData(['config','cookieConsent']) === true){
|
||||||
<div id="cookieConsent">
|
|
||||||
<div class="cookieClose">X</div>
|
$analytics = $this->getData(['config', 'seo', 'analyticsId']);
|
||||||
<h3><?php echo $this->getData(['config', 'cookies', 'cookiesTitleText']); ?></h3>
|
$legalPage = $this->getData(['locale','legalPageId']) ==='none'? 'mentions-legales' : $this->getData(['locale','legalPageId']);
|
||||||
<?php $analytics = $this->getData(['config', 'seo', 'analyticsId']);?>
|
|
||||||
<p><?php echo $this->getData(['config', 'cookies', 'cookiesZwiiText']); ?></p>
|
$item = '<div id="cookieConsent">';
|
||||||
<?php $legalPage = $this->getData(['locale','legalPageId']) ==='none'? 'mentions-legales' : $this->getData(['locale','legalPageId']); ?>
|
$item .= '<div class="cookieClose">X</div>';
|
||||||
<p><a href=" <?php echo helper::baseUrl() . $legalPage ?> "><?php echo $this->getData(['config', 'cookies', 'cookiesLinkMlText']); ?></a></p>
|
$item .= '<h3>'. $this->getData(['config', 'cookies', 'cookiesTitleText']) . '</h3>';
|
||||||
<?php if( $analytics !== null AND $analytics !=='' ){ ?>
|
$item .= '<p>' . $this->getData(['config', 'cookies', 'cookiesZwiiText']) . '</p>';
|
||||||
<p><?php echo $this->getData(['config', 'cookies', 'cookiesGaText']); ?></p>
|
$item .= '<p><a href="' . helper::baseUrl() . $legalPage . '">' . $this->getData(['config', 'cookies', 'cookiesLinkMlText']) . '</a></p>';
|
||||||
<?php } ?>
|
if( $analytics !== null AND $analytics !=='' ){
|
||||||
<form method="POST" action="" id="cookieForm">
|
$item .= '<p>' . $this->getData(['config', 'cookies', 'cookiesGaText']) . '</p>';
|
||||||
<?php if( $analytics !== null AND $analytics !=='' ){ ?>
|
}
|
||||||
<input type="checkbox" id="googleAnalytics" name="googleAnalytics" value="GA">
|
$item .= '<form method="POST" action="" id="cookieForm">';
|
||||||
<label for="googleAnalytics"><?php echo $this->getData(['config', 'cookies', 'cookiesCheckboxGaText']); ?></label> <?php } ?><br><br>
|
if( $analytics !== null AND $analytics !=='' ) {
|
||||||
<input type="submit" id="cookieConsentConfirm" value="Valider">
|
$item .= '<input type="checkbox" id="googleAnalytics" name="googleAnalytics" value="GA">';
|
||||||
</form>
|
$item .= '<label for="googleAnalytics">' . $this->getData(['config', 'cookies', 'cookiesCheckboxGaText']) . '</label>';
|
||||||
</div>
|
}
|
||||||
<?php
|
$item .= '<br><br>';
|
||||||
|
$item .= '<input type="submit" id="cookieConsentConfirm" value="Valider">';
|
||||||
|
$item .= '</form></div>';
|
||||||
}
|
}
|
||||||
|
echo $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user