forked from ZwiiCMS-Team/ZwiiCMS
Page lity dans le pied de page - à voir page avec module générée complète dans lity
This commit is contained in:
parent
57821752f4
commit
40a770a1f6
@ -9,6 +9,7 @@
|
|||||||
- Traduction selon la langue navigateur
|
- Traduction selon la langue navigateur
|
||||||
- Configuration du site :
|
- Configuration du site :
|
||||||
- Activation et désactivation de la déconnexion automatique empêchant plusieurs sessions avec le même compte.
|
- Activation et désactivation de la déconnexion automatique empêchant plusieurs sessions avec le même compte.
|
||||||
|
- Pages : option d'affichage dans une fenêtre superposée (Lity).
|
||||||
|
|
||||||
## version 10.5.01
|
## version 10.5.01
|
||||||
- Modifications :
|
- Modifications :
|
||||||
|
@ -2097,7 +2097,11 @@ class core extends common {
|
|||||||
'iconUrl' => $this->getData(['page', $this->getUrl(0), 'iconUrl']),
|
'iconUrl' => $this->getData(['page', $this->getUrl(0), 'iconUrl']),
|
||||||
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
||||||
'contentRight' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']),
|
'contentRight' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']),
|
||||||
'contentLeft' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'content'])
|
'contentLeft' => $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'content']),
|
||||||
|
'display' => $this->getData(['page', $this->getUrl(0), 'lity']) === true
|
||||||
|
&& $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')
|
||||||
|
? self::DISPLAY_LAYOUT_LITY
|
||||||
|
: $this->output['display']
|
||||||
]);
|
]);
|
||||||
$pageContent = $this->getData(['page', $this->getUrl(0), 'content']);
|
$pageContent = $this->getData(['page', $this->getUrl(0), 'content']);
|
||||||
}
|
}
|
||||||
@ -2528,16 +2532,19 @@ class layout extends common {
|
|||||||
$items .= '</span>';
|
$items .= '</span>';
|
||||||
// Affichage du module de recherche
|
// Affichage du module de recherche
|
||||||
$items .= '<span id="footerDisplaySearch"';
|
$items .= '<span id="footerDisplaySearch"';
|
||||||
|
$targetLity = $this->getData(['page',$this->getData(['locale','searchPageId']), 'lity']) && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ? ' rel="data-lity" ' : "";
|
||||||
$items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone" >' : '>';
|
$items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone" >' : '>';
|
||||||
if ($this->getData(['locale','searchPageId']) !== 'none') {
|
if ($this->getData(['locale','searchPageId']) !== 'none') {
|
||||||
$items .= '<wbr> | <a href="' . helper::baseUrl() . $this->getData(['locale','searchPageId']) . '" data-tippy-content="Rechercher dans le site" >Recherche</a>';
|
$items .= '<wbr> | <a href="' . helper::baseUrl() . $this->getData(['locale','searchPageId']) . '" data-tippy-content="Rechercher dans le site"' . $targetLity . '>Recherche</a>';
|
||||||
}
|
}
|
||||||
$items .= '</span>';
|
$items .= '</span>';
|
||||||
// Affichage des mentions légales
|
// Affichage des mentions légales
|
||||||
$items .= '<span id="footerDisplayLegal"';
|
$items .= '<span id="footerDisplayLegal"';
|
||||||
$items .= $this->getData(['theme','footer','displayLegal']) === false ? ' class="displayNone" >' : '>';
|
$items .= $this->getData(['theme','footer','displayLegal']) === false ? ' class="displayNone" >' : '>';
|
||||||
|
// Affichage lity
|
||||||
|
$targetLity = $this->getData(['page',$this->getData(['locale','legalPageId']), 'lity']) && $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ? ' rel="data-lity" ' : "";
|
||||||
if ($this->getData(['locale','legalPageId']) !== 'none') {
|
if ($this->getData(['locale','legalPageId']) !== 'none') {
|
||||||
$items .= '<wbr> | <a href="' . helper::baseUrl() . $this->getData(['locale','legalPageId']) . '" data-tippy-content="Mentions légales">Mentions légales</a>';
|
$items .= '<wbr> | <a href="' . helper::baseUrl() . $this->getData(['locale','legalPageId']) .'" data-tippy-content="Mentions légales"' . $targetLity .' >Mentions légales</a>';
|
||||||
}
|
}
|
||||||
$items .= '</span>';
|
$items .= '</span>';
|
||||||
// Affichage du lien de connexion
|
// Affichage du lien de connexion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user