ZwiiCMS/core/module/theme/view/footer/footer.php

295 lines
14 KiB
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
<?php echo template::formOpen('themeFooterForm'); ?>
2019-06-27 21:10:50 +02:00
<div class="row">
<div class="col1">
2019-06-27 21:10:50 +02:00
<?php echo template::button('themeFooterBack', [
2022-09-29 08:45:59 +02:00
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'value' => template::ico('left')
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col1">
<?php /* echo template::button('themeFooterHelp', [
2022-09-29 08:45:59 +02:00
'href' => 'https://doc.zwiicms.fr/pied-de-page',
'target' => '_blank',
'value' => template::ico('help'),
'class' => 'buttonHelp'
]); */ ?>
2021-11-10 08:03:31 +01:00
</div>
<div class="col2 offset8">
2019-06-27 21:10:50 +02:00
<?php echo template::submit('themeFooterSubmit'); ?>
</div>
</div>
<div class="row">
2021-10-01 15:53:38 +02:00
<div class="col12">
2019-06-27 21:10:50 +02:00
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Paramètres'); ?></h4>
2019-06-27 21:10:50 +02:00
<div class="row">
2021-10-29 11:25:00 +02:00
<div class="col6">
<?php echo template::select('themeFooterPosition', $module::$footerPositions, [
2022-09-29 08:45:59 +02:00
'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'position'])
]); ?>
2021-10-28 16:19:30 +02:00
</div>
2021-10-29 11:25:00 +02:00
<div class="col6">
2021-10-28 16:19:30 +02:00
<?php echo template::select('themeFooterHeight', $module::$footerHeights, [
2022-09-29 08:45:59 +02:00
'label' => 'Marges verticales',
'selected' => $this->getData(['theme', 'footer', 'height'])
]); ?>
2021-10-28 16:19:30 +02:00
</div>
2021-10-29 11:25:00 +02:00
</div>
2022-01-09 17:58:49 +01:00
<div class="row">
<div class="col6">
<div id="themeFooterPositionOptions">
<?php echo template::checkbox('themeFooterMargin', true, 'Alignement avec le contenu', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['theme', 'footer', 'margin'])
]); ?>
2022-01-09 17:58:49 +01:00
</div>
</div>
<div class="col6">
<div id="themeFooterPositionFixed" class="displayNone">
<?php echo template::checkbox('themeFooterFixed', true, 'Pied de page fixe', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['theme', 'footer', 'fixed'])
]); ?>
2022-01-09 17:58:49 +01:00
</div>
</div>
</div>
2021-10-29 11:25:00 +02:00
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Couleurs'); ?></h4>
2021-10-29 11:25:00 +02:00
<div class="row">
<div class="col6">
2019-06-27 21:10:50 +02:00
<?php echo template::text('themeFooterTextColor', [
2021-10-29 11:25:00 +02:00
'class' => 'colorPicker',
'label' => 'Texte',
'value' => $this->getData(['theme', 'footer', 'textColor'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('themeFooterBackgroundColor', [
'class' => 'colorPicker',
2022-10-02 10:59:42 +02:00
'label' => 'Arrière plan',
2021-10-29 11:25:00 +02:00
'value' => $this->getData(['theme', 'footer', 'backgroundColor']),
'help' => 'Quand le pied de page est dans le site, l\'arrière plan transparent montre le fond de la page. Quand le pied de page est hors du site, l\'arrière plan transparent montre le fond du site.'
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
</div>
2021-10-01 15:53:38 +02:00
</div>
<div class="row">
<div class="col12">
2019-06-27 21:10:50 +02:00
<div class="block">
2022-10-03 18:37:25 +02:00
<?php echo helper::translate('Contenu'); ?></h4>
2020-08-14 17:32:48 +02:00
<div class="row">
<div class="col3">
2020-08-14 17:32:48 +02:00
<?php echo template::checkbox('themefooterDisplayCopyright', true, 'Motorisé par', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['theme', 'footer', 'displayCopyright']),
'help' => 'Affiche cette mention devant ZwiiCMS'
]); ?>
2020-08-14 17:32:48 +02:00
</div>
<div class="col3">
2021-10-01 15:53:38 +02:00
<?php echo template::checkbox('themefooterDisplayVersion', true, 'Version', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['theme', 'footer', 'displayVersion']),
'help' => 'Affiche le numéro de version après ZwiiCMS'
]); ?>
2020-08-14 17:32:48 +02:00
</div>
<div class="col3">
2020-08-14 17:32:48 +02:00
<?php echo template::checkbox('themefooterDisplaySiteMap', true, 'Plan du site', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['theme', 'footer', 'displaySiteMap'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::checkbox('themefooterDisplayCookie', true, 'Cookies', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['config', 'cookieConsent']) === true ? $this->getData(['theme', 'footer', 'displayCookie']) : false,
'help' => 'Message d\'information relatif aux cookies, disponible si l\'acceptation des cookies est activé.',
'disabled' => !$this->getData(['config', 'cookieConsent'])
]); ?>
</div>
2021-10-28 16:54:57 +02:00
</div>
<div class="row">
<div class="col3">
2020-08-14 17:32:48 +02:00
<?php echo template::checkbox('themeFooterLoginLink', true, 'Lien de connexion', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['theme', 'footer', 'loginLink']),
'help' => 'Pour limiter les tentatives de piratage, enregistrez la page de connexion en favori et désactivez cette option.'
]); ?>
2021-10-02 14:15:27 +02:00
</div>
<div class="col3">
2022-07-02 14:27:45 +02:00
<?php echo template::checkbox('themeFooterMemberBar', true, 'Barre du membre', [
'checked' => $this->getData(['theme', 'footer', 'memberBar']),
2020-08-14 17:32:48 +02:00
'help' => 'Affiche les icônes de gestion du compte et de déconnexion des membres simples connectés, ne s\'applique pas aux éditeurs et administrateurs.'
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
2020-08-14 17:32:48 +02:00
<?php echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['locale', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
'disabled' => $this->getData(['locale', 'legalPageId']) === 'none' ? true : false,
'help' => 'Option active si une page a été sélectionnée.'
2020-08-14 17:32:48 +02:00
]); ?>
</div>
<div class="col3">
2022-09-29 08:45:59 +02:00
<?php echo template::select('configLegalPageId', array_merge(['none' => 'Aucune'], helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC')), [
'label' => 'Page "Mentions légales" ' . template::flag('selected', '20px'),
2021-10-28 16:19:30 +02:00
'selected' => $this->getData(['locale', 'legalPageId'])
]); ?>
</div>
<div class="col3">
2021-10-02 14:15:27 +02:00
<?php echo template::checkbox('themeFooterDisplaySearch', true, 'Rechercher', [
2022-09-29 08:45:59 +02:00
'checked' => $this->getData(['locale', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']),
'disabled' => $this->getData(['locale', 'searchPageId']) === 'none' ? true : false,
'help' => 'Option active si une page a été sélectionnée.'
]); ?>
</div>
<div class="col3">
2022-09-29 08:45:59 +02:00
<?php echo template::select('configSearchPageId', array_merge(['none' => 'Aucune'], helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC')), [
'label' => 'Page "Rechercher" ' . template::flag('selected', '20px'),
2022-01-14 14:13:48 +01:00
'selected' => $this->getData(['locale', 'searchPageId'])
2021-10-28 16:19:30 +02:00
]); ?>
</div>
2021-10-02 14:15:27 +02:00
</div>
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('themeFooterText', [
'label' => '<div class="titleWysiwygContent">' . helper::translate('Contenu personnalisé') . '</div>',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['theme', 'footer', 'text']),
'class' => 'editorWysiwyg'
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Mise en forme du texte'); ?>
2022-09-14 22:54:46 +02:00
</h4>
2019-06-27 21:10:50 +02:00
<div class="row">
<div class="col3">
2022-04-21 18:38:19 +02:00
<?php echo template::select('themeFooterFont', $module::$fonts['name'], [
2022-09-29 08:45:59 +02:00
'label' => 'Fonte',
'selected' => $this->getData(['theme', 'footer', 'font']),
2023-03-01 15:50:41 +01:00
'font' => $module::$fonts['family']
2022-09-29 08:45:59 +02:00
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeFooterFontSize', $module::$footerFontSizes, [
2022-09-29 08:45:59 +02:00
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'footer', 'fontSize'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeFooterFontWeight', $module::$fontWeights, [
2022-09-29 08:45:59 +02:00
'label' => 'Style',
'selected' => $this->getData(['theme', 'footer', 'fontWeight'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeFooterTextTransform', $module::$textTransforms, [
2022-09-29 08:45:59 +02:00
'label' => 'Casse',
'selected' => $this->getData(['theme', 'footer', 'textTransform'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Disposition'); ?>
2022-09-14 22:54:46 +02:00
</h4>
2019-06-27 21:10:50 +02:00
<div class="row">
<div class="col4">
2022-09-29 08:45:59 +02:00
<?php $footerBlockPosition = is_null($this->getData(['theme', 'footer', 'template'])) ? $module::$footerblocks[3] : $module::$footerblocks[$this->getData(['theme', 'footer', 'template'])]; ?>
<?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
2022-09-29 08:45:59 +02:00
'label' => 'Répartition',
'selected' => is_null($this->getData(['theme', 'footer', 'template'])) ? 4 : $this->getData(['theme', 'footer', 'template'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
<div class="row">
<div class="col4">
2022-09-14 22:54:46 +02:00
<p>
<strong>
<?php echo helper::translate('Contenu personnalisé'); ?>
2022-09-14 22:54:46 +02:00
</strong>
</p>
2020-08-22 18:26:08 +02:00
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [
2022-09-29 08:45:59 +02:00
'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'textPosition']),
'class' => 'themeFooterContent'
]); ?>
2020-08-22 18:26:08 +02:00
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterTextAlign', $module::$aligns, [
2022-09-29 08:45:59 +02:00
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'textAlign'])
]); ?>
2020-08-22 18:26:08 +02:00
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
<div class="col4">
2022-09-14 22:54:46 +02:00
<p>
<strong>
<?php echo helper::translate('Réseaux sociaux'); ?>
2022-09-14 22:54:46 +02:00
</strong>
</p>
2020-08-22 18:26:08 +02:00
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterSocialsPosition', $footerBlockPosition, [
2022-09-29 08:45:59 +02:00
'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'socialsPosition']),
'class' => 'themeFooterContent'
]); ?>
2020-08-22 18:26:08 +02:00
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
2022-09-29 08:45:59 +02:00
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
]); ?>
2020-08-22 18:26:08 +02:00
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
<div class="col4">
2022-09-14 22:54:46 +02:00
<p>
<strong>
<?php echo helper::translate('Informations'); ?>
2022-09-14 22:54:46 +02:00
</strong>
</p>
2020-08-22 18:26:08 +02:00
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterCopyrightPosition', $footerBlockPosition, [
2022-09-29 08:45:59 +02:00
'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']),
'class' => 'themeFooterContent'
]); ?>
2020-08-22 18:26:08 +02:00
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterCopyrightAlign', $module::$aligns, [
2022-09-29 08:45:59 +02:00
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'copyrightAlign'])
]); ?>
2020-08-22 18:26:08 +02:00
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
<?php echo template::formClose(); ?>