[9.2.00.dev] Incorporation du module de recherche dans le footer
This commit is contained in:
parent
bdf028e343
commit
5113cea733
@ -1963,6 +1963,11 @@ class layout extends common {
|
|||||||
$items .= $this->getData(['theme','footer','displaySiteMap']) === false? ' class="displayNone"' : '';
|
$items .= $this->getData(['theme','footer','displaySiteMap']) === false? ' class="displayNone"' : '';
|
||||||
$items .= '><wbr> | <a href="' . helper::baseUrl() . 'sitemap" data-tippy-content="Plan du site" >Plan du site</a>';
|
$items .= '><wbr> | <a href="' . helper::baseUrl() . 'sitemap" data-tippy-content="Plan du site" >Plan du site</a>';
|
||||||
$items .= '</span>';
|
$items .= '</span>';
|
||||||
|
// Affichage du module de recherche
|
||||||
|
$items .= '<span id="footerDisplaySearch"';
|
||||||
|
$items .= $this->getData(['theme','footer','displaySearch']) === false? ' class="displayNone"' : '';
|
||||||
|
$items .= '><wbr> | <a href="' . helper::baseUrl() . 'search" data-tippy-content="Rechercher dans le site" >Rechercher</a>';
|
||||||
|
$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" >' : '>';
|
||||||
|
@ -585,6 +585,7 @@ footer {
|
|||||||
#footerDisplayVersion,
|
#footerDisplayVersion,
|
||||||
#footerDisplaySiteMap,
|
#footerDisplaySiteMap,
|
||||||
#footerDisplayLegal,
|
#footerDisplayLegal,
|
||||||
|
#footerDisplaySearch,
|
||||||
#footerZwiiCMS {
|
#footerZwiiCMS {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
@ -321,6 +321,7 @@ class theme extends common {
|
|||||||
'displaySiteMap' => $this->getInput('themefooterDisplaySiteMap', helper::FILTER_BOOLEAN),
|
'displaySiteMap' => $this->getInput('themefooterDisplaySiteMap', helper::FILTER_BOOLEAN),
|
||||||
'displayCopyright' => $this->getInput('themefooterDisplayCopyright', helper::FILTER_BOOLEAN),
|
'displayCopyright' => $this->getInput('themefooterDisplayCopyright', helper::FILTER_BOOLEAN),
|
||||||
'displayLegal' => $this->getInput('themeFooterDisplayLegal', helper::FILTER_BOOLEAN),
|
'displayLegal' => $this->getInput('themeFooterDisplayLegal', helper::FILTER_BOOLEAN),
|
||||||
|
'displaySearch' => $this->getInput('themeFooterDisplaySearch', helper::FILTER_BOOLEAN),
|
||||||
'template' => $this->getInput('themeFooterTemplate')
|
'template' => $this->getInput('themeFooterTemplate')
|
||||||
]]);
|
]]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
@ -49,6 +49,11 @@
|
|||||||
'checked' => $this->getData(['theme', 'footer','displayVersion'])
|
'checked' => $this->getData(['theme', 'footer','displayVersion'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<?php echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
|
||||||
|
'checked' => $this->getData(['config', 'legalPageId']) === '' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -62,17 +67,14 @@
|
|||||||
'checked' => $this->getData(['theme', 'footer', 'loginLink'])
|
'checked' => $this->getData(['theme', 'footer', 'loginLink'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col12">
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php echo template::checkbox('themeFooterDisplaySearch', true, 'Rechercher', [
|
||||||
echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
|
'checked' => $this->getData(['theme', 'footer', 'displaySearch']),
|
||||||
'checked' => $this->getData(['config', 'legalPageId']) === '' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
|
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col12">
|
</div>
|
||||||
<em>Le paramétrage des mentions légales s'effectue dans la configuration du site.</em>
|
<div class="col12">
|
||||||
</div>
|
<em>Le paramétrage des mentions légales s'effectue dans la configuration du site.</em>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user