forked from ZwiiCMS-Team/ZwiiCMS
lien mentions légales si page définie
This commit is contained in:
parent
dd78774357
commit
b49b2c103d
@ -1196,16 +1196,18 @@ class common {
|
|||||||
){
|
){
|
||||||
|
|
||||||
$analytics = $this->getData(['locale', 'seo', 'analyticsId']);
|
$analytics = $this->getData(['locale', 'seo', 'analyticsId']);
|
||||||
$legalPage = $this->getData(['locale', 'legalPageId']) ==='none'? 'mentions-legales' : $this->getData(['locale','legalPageId']);
|
$legalPage = $this->getData(['locale', 'legalPageId']);
|
||||||
$item = '<div id="cookieConsent">';
|
$item = '<div id="cookieConsent">';
|
||||||
$item .= '<div class="cookieClose">';
|
$item .= '<div class="cookieClose">';
|
||||||
$item .= template::ico('cancel');
|
$item .= template::ico('cancel');
|
||||||
$item .= '</div>';
|
$item .= '</div>';
|
||||||
$item .= '<h3>'. $this->getData(['locale', 'cookies', 'cookiesTitleText']) . '</h3>';
|
$item .= '<h3>'. $this->getData(['locale', 'cookies', 'cookiesTitleText']) . '</h3>';
|
||||||
$item .= '<p>' . $this->getData(['locale', 'cookies', 'cookiesZwiiText']) . '</p>';
|
$item .= '<p>' . $this->getData(['locale', 'cookies', 'cookiesZwiiText']) . '</p>';
|
||||||
$item .= '<p><a href="' . helper::baseUrl() . $legalPage . '">' . $this->getData(['locale', 'cookies', 'cookiesLinkMlText']) . '</a></p>';
|
if ($legalPage !== 'none') {
|
||||||
if( $analytics !== null AND $analytics !=='' ){
|
$item .= '<p><a href="' . helper::baseUrl() . $legalPage . '">' . $this->getData(['locale', 'cookies', 'cookiesLinkMlText']) . '</a></p>';
|
||||||
$item .= '<p>' . $this->getData(['locale', 'cookies', 'cookiesGaText']) . '</p>';
|
}
|
||||||
|
if( $analytics !== null AND $analytics !=='' ){
|
||||||
|
$item .= '<p>' . $this->getData(['locale', 'cookies', 'cookiesGaText']) . '</p>';
|
||||||
}
|
}
|
||||||
$item .= '<form method="POST" action="" id="cookieForm">';
|
$item .= '<form method="POST" action="" id="cookieForm">';
|
||||||
if( $analytics !== null AND $analytics !=='' ) {
|
if( $analytics !== null AND $analytics !=='' ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user