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

282 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', [
2018-04-02 08:29:19 +02:00
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'value' => template::ico('left')
2018-04-02 08:29:19 +02:00
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col1">
2021-11-10 17:12:34 +01:00
<?php echo template::button('themeFooterHelp', [
2021-11-10 08:03:31 +01:00
'href' => 'https://doc.zwiicms.fr/pied-de-page',
'target' => '_blank',
'value' => template::ico('help'),
2021-11-10 08:03:31 +01:00
'class' => 'buttonHelp'
]); ?>
</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">
2021-10-28 16:19:30 +02:00
<h4>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, [
'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, [
'label' => 'Marges verticales',
'selected' => $this->getData(['theme', 'footer', 'height'])
]); ?>
</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', [
'checked' => $this->getData(['theme', 'footer', 'margin'])
]); ?>
</div>
</div>
<div class="col6">
<div id="themeFooterPositionFixed" class="displayNone">
<?php echo template::checkbox('themeFooterFixed', true, 'Pied de page fixe', [
'checked' => $this->getData(['theme', 'footer', 'fixed'])
]); ?>
</div>
</div>
</div>
2021-10-29 11:25:00 +02:00
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Couleurs</h4>
<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',
'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">
2021-10-28 16:19:30 +02:00
<h4>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', [
'checked' => $this->getData(['theme', 'footer','displayCopyright']),
'help' => 'Affiche cette mention devant ZwiiCMS'
]); ?>
</div>
<div class="col3">
2021-10-01 15:53:38 +02:00
<?php echo template::checkbox('themefooterDisplayVersion', true, 'Version', [
2020-08-14 17:32:48 +02:00
'checked' => $this->getData(['theme', 'footer','displayVersion']),
'help' => 'Affiche le numéro de version après ZwiiCMS'
]); ?>
</div>
<div class="col3">
2020-08-14 17:32:48 +02:00
<?php echo template::checkbox('themefooterDisplaySiteMap', true, 'Plan du site', [
2021-10-01 10:17:13 +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', [
2021-11-28 12:07:07 +01: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', [
'checked' => $this->getData(['theme', 'footer', 'loginLink']),
2021-10-01 10:17:13 +02:00
'help' => 'Pour limiter les tentatives de piratage, enregistrez la page de connexion en favori et désactivez cette option.'
2020-08-14 17:32:48 +02:00
]); ?>
2021-10-02 14:15:27 +02:00
</div>
<div class="col3">
2021-10-01 15:53:38 +02:00
<?php echo template::checkbox('themeFooterDisplayMemberBar', true, 'Barre du membre', [
2020-08-14 17:32:48 +02:00
'checked' => $this->getData(['theme', 'footer', 'displayMemberBar']),
'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', [
'checked' => $this->getData(['locale', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
'disabled' => $this->getData(['locale', 'legalPageId']) === 'none' ? true : false,
2021-10-28 16:54:57 +02:00
'help' => 'Option active si une page a été sélectionnée.'
2020-08-14 17:32:48 +02:00
]); ?>
</div>
<div class="col3">
2022-03-09 12:24:23 +01:00
<?php echo template::select('configLegalPageId', array_merge(['none' => 'Aucune'] , helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
2021-10-28 16:54:57 +02:00
'label' => 'Page "Mentions légales" ' . template::flag('site', '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', [
'checked' => $this->getData(['locale', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']),
'disabled' => $this->getData(['locale', 'searchPageId']) === 'none' ? true : false,
2021-10-28 16:54:57 +02:00
'help' => 'Option active si une page a été sélectionnée.'
2020-08-14 17:32:48 +02:00
]); ?>
</div>
<div class="col3">
2022-03-09 12:24:23 +01:00
<?php echo template::select('configSearchPageId', array_merge(['none' => 'Aucune'] , helper::arrayColumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
2021-10-28 16:54:57 +02:00
'label' => 'Page "Rechercher" ' . template::flag('site', '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">Contenu personnalisé</div>',
'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">
<h4>Mise en forme du texte</h4>
<div class="row">
<div class="col3">
2022-04-21 18:38:19 +02:00
<?php echo template::select('themeFooterFont', $module::$fonts['name'], [
2022-03-17 10:46:09 +01:00
'label' => 'Fonte',
'selected' => $this->getData(['theme', 'footer', 'font']),
2022-04-21 18:38:19 +02:00
'fonts' => $module::$fonts['family']
2019-03-19 06:59:28 +01:00
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeFooterFontSize', $module::$footerFontSizes, [
2019-03-19 06:59:28 +01:00
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.',
2019-03-19 06:59:28 +01:00
'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, [
'label' => 'Style',
'selected' => $this->getData(['theme', 'footer', 'fontWeight'])
2019-03-19 06:59:28 +01:00
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeFooterTextTransform', $module::$textTransforms, [
'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">
2021-10-28 16:19:30 +02:00
<h4>Dispositions</h4>
2019-06-27 21:10:50 +02:00
<div class="row">
<div class="col4">
<?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, [
2021-10-28 16:19:30 +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">
<p><strong>Contenu personnalisé</strong></p>
2020-08-22 18:26:08 +02:00
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [
2021-10-28 16:19:30 +02:00
'label' => 'Position',
2020-08-22 18:26:08 +02:00
'selected' => $this->getData(['theme', 'footer', 'textPosition']),
'class' => 'themeFooterContent'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterTextAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'textAlign'])
]); ?>
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
<div class="col4">
<p><strong>Réseaux sociaux</strong></p>
2020-08-22 18:26:08 +02:00
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterSocialsPosition', $footerBlockPosition, [
2021-10-28 16:19:30 +02:00
'label' => 'Position',
2020-08-22 18:26:08 +02:00
'selected' => $this->getData(['theme', 'footer', 'socialsPosition']),
'class' => 'themeFooterContent'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
]); ?>
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
<div class="col4">
2019-07-07 19:33:48 +02:00
<p><strong>Informations</strong></p>
2020-08-22 18:26:08 +02:00
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterCopyrightPosition', $footerBlockPosition, [
2021-10-28 16:19:30 +02:00
'label' => 'Position',
2020-08-22 18:26:08 +02:00
'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']),
'class' => 'themeFooterContent'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterCopyrightAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'copyrightAlign'])
]); ?>
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
</div>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
2019-05-02 13:21:48 +02:00
<?php echo template::formClose(); ?>