[9.2.00.dev] footer ok

This commit is contained in:
fredtempez 2019-06-25 19:55:52 +02:00
parent ee3b0dc8b1
commit 045ac268d4
2 changed files with 5 additions and 6 deletions

View File

@ -72,7 +72,6 @@
?>
<?php echo template::select('configLegalPageId', $listePageId , [
'label' => 'Page des mentions légales',
'class' => $this->getData(['config', 'legalPageId']) === '' ? 'displayNone' : '',
'selected' => $this->getData(['config', 'legalPageId'])
]); ?>
</div>

View File

@ -100,9 +100,7 @@
<h4>Mise en page</h4>
<div class="row">
<div class="col4">
<?php
$footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])];
?>
<?php $footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])]; ?>
<?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
'label' => 'Gabarits de mise en page',
'selected' => $this->getData(['theme', 'footer', 'template']),
@ -192,8 +190,10 @@
</div>
<div class="col3">
<div class="row">
<?php echo template::checkbox('themeFooterDisplayLegal', true, 'Pages des mentions légales', [
'checked' => $this->getData(['theme', 'footer', 'displayLegal'])
<?php
echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
'checked' => $this->getData(['config', 'legalPageId']) === '' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
'help' => 'Sélectionner une page dans la configuration du site'
]); ?>
<p></p>
</div>