[10.0.100.dev] Exclure l'interface de la traduction WIP

This commit is contained in:
fredtempez 2019-11-15 17:32:34 +01:00
parent 4cefb749ac
commit f3adbe0c87
20 changed files with 547 additions and 512 deletions

View File

@ -32,7 +32,7 @@ class common {
const I18N_DIR = 'site/i18n/'; const I18N_DIR = 'site/i18n/';
// Numéro de version // Numéro de version
const ZWII_VERSION = '10.0.99.dev'; const ZWII_VERSION = '10.0.100.dev';
public static $actions = []; public static $actions = [];
public static $coreModuleIds = [ public static $coreModuleIds = [
@ -2817,7 +2817,7 @@ class layout extends common {
$rightItems .= '<li><a href="' . helper::baseUrl() . 'user/edit/' . $this->getUser('id'). '/' . $_SESSION['csrf'] . '" data-tippy-content="Configurer mon compte">' . template::ico('user', 'right') . '<span id="displayUsername">' . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '</span></a></li>'; $rightItems .= '<li><a href="' . helper::baseUrl() . 'user/edit/' . $this->getUser('id'). '/' . $_SESSION['csrf'] . '" data-tippy-content="Configurer mon compte">' . template::ico('user', 'right') . '<span id="displayUsername">' . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '</span></a></li>';
$rightItems .= '<li><a id="barLogout" href="' . helper::baseUrl() . 'user/logout" data-tippy-content="Se déconnecter">' . template::ico('logout') . '</a></li>'; $rightItems .= '<li><a id="barLogout" href="' . helper::baseUrl() . 'user/logout" data-tippy-content="Se déconnecter">' . template::ico('logout') . '</a></li>';
// Barre de membre // Barre de membre
echo '<div id="bar"><div class="container"><ul id="barLeft">' . $leftItems . '</ul><ul id="barRight">' . $rightItems . '</ul></div></div>'; echo '<div id="bar" class="notranslate"><div class="container"><ul id="barLeft">' . $leftItems . '</ul><ul id="barRight">' . $rightItems . '</ul></div></div>';
} }
} }

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('configForm'); ?> <?php echo template::formOpen('configForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('configBack', [ <?php echo template::button('configBack', [
@ -291,4 +292,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('configManageForm'); ?> <?php echo template::formOpen('configManageForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('configManageBack', [ <?php echo template::button('configManageBack', [
@ -95,4 +96,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('i18nIndexForm'); ?> <?php echo template::formOpen('i18nIndexForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('i18nBack', [ <?php echo template::button('i18nBack', [
@ -42,4 +43,5 @@
</div> </div>
<?php echo template::table([5,2,2,1], $module::$languages, ['Langues installées', 'Chemins des drapeaux', 'Traduction automatique' ,'']); ?> <?php echo template::table([5,2,2,1], $module::$languages, ['Langues installées', 'Chemins des drapeaux', 'Traduction automatique' ,'']); ?>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,6 +1,6 @@
<p><strong>Mise à jour de Zwii <?php echo self::ZWII_VERSION; ?> vers Zwii <?php echo $module::$newVersion; ?>.</strong></p> <p><strong>Mise à jour de Zwii <?php echo self::ZWII_VERSION; ?> vers Zwii <?php echo $module::$newVersion; ?>.</strong></p>
<p>Afin d'assurer le bon fonctionnement de Zwii, veuillez ne pas fermer cette page avant la fin de l'opération.</p> <p>Afin d'assurer le bon fonctionnement de Zwii, veuillez ne pas fermer cette page avant la fin de l'opération.</p>
<div class="row"> <div class="row notranslate">
<div class="col9 verticalAlignMiddle"> <div class="col9 verticalAlignMiddle">
<div id="installUpdateProgress"> <div id="installUpdateProgress">
<?php echo template::ico('spin', '', true); ?> <?php echo template::ico('spin', '', true); ?>

View File

@ -2,6 +2,7 @@
// Mise à jour de la liste des pages pour TinyMCE // Mise à jour de la liste des pages pour TinyMCE
$this->pages2Json(); $this->pages2Json();
echo template::formOpen('pageEditForm'); ?> echo template::formOpen('pageEditForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php $href = helper::baseUrl() . $this->getUrl(2); ?> <?php $href = helper::baseUrl() . $this->getUrl(2); ?>
@ -222,4 +223,5 @@ echo template::formOpen('pageEditForm'); ?>
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('themeAdvancedForm'); ?> <?php echo template::formOpen('themeAdvancedForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeAdvancedBack', [ <?php echo template::button('themeAdvancedBack', [
@ -28,4 +29,5 @@
]); ?> ]); ?>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('themeBodyForm'); ?> <?php echo template::formOpen('themeBodyForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeBodyBack', [ <?php echo template::button('themeBodyBack', [
@ -67,4 +68,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,200 +1,202 @@
<?php echo template::formOpen('themeFooterForm'); ?> <?php echo template::formOpen('themeFooterForm'); ?>
<div class="row"> <div class="notranslate">
<div class="col2"> <div class="row">
<?php echo template::button('themeFooterBack', [ <div class="col2">
'class' => 'buttonGrey', <?php echo template::button('themeFooterBack', [
'href' => helper::baseUrl() . 'theme', 'class' => 'buttonGrey',
'ico' => 'left', 'href' => helper::baseUrl() . 'theme',
'value' => 'Retour' 'ico' => 'left',
]); ?> 'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('themeFooterSubmit'); ?>
</div>
</div> </div>
<div class="col2 offset8"> <div class="row">
<?php echo template::submit('themeFooterSubmit'); ?> <div class="col6">
</div> <div class="block">
</div> <h4>Couleurs</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<div class="block"> <?php echo template::text('themeFooterBackgroundColor', [
<h4>Couleurs</h4> 'class' => 'colorPicker',
<div class="row"> 'label' => 'Fond',
<div class="col6"> 'value' => $this->getData(['theme', 'footer', 'backgroundColor'])
<?php echo template::text('themeFooterBackgroundColor', [ ]); ?>
'class' => 'colorPicker', </div>
'label' => 'Fond', <div class="col6">
'value' => $this->getData(['theme', 'footer', 'backgroundColor']) <?php echo template::text('themeFooterTextColor', [
]); ?> 'class' => 'colorPicker',
</div> 'label' => 'Texte',
<div class="col6"> 'value' => $this->getData(['theme', 'footer', 'textColor'])
<?php echo template::text('themeFooterTextColor', [ ]); ?>
'class' => 'colorPicker', </div>
'label' => 'Texte',
'value' => $this->getData(['theme', 'footer', 'textColor'])
]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> <div class="col6">
<div class="col6"> <div class="block">
<div class="block"> <h4>Informations</h4>
<h4>Informations</h4> <div class="row">
<div class="row"> <div class="col6">
<div class="col6"> <div class="row">
<div class="row"> <?php echo template::checkbox('themefooterDisplayCopyright', true, 'Motorisé par', [
<?php echo template::checkbox('themefooterDisplayCopyright', true, 'Motorisé par', [ 'checked' => $this->getData(['theme', 'footer','displayCopyright'])
'checked' => $this->getData(['theme', 'footer','displayCopyright'])
]); ?>
</div>
<div class="row">
<?php echo template::checkbox('themefooterDisplayVersion', true, 'Numéro de version', [
'checked' => $this->getData(['theme', 'footer','displayVersion'])
]); ?>
</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 class="col6">
<div class="row">
<?php echo template::checkbox('themefooterDisplaySiteMap', true, 'Plan du site', [
'checked' => $this->getData(['theme', 'footer', 'displaySiteMap']),
'help' => 'Un plan du site permet un meilleur référencement.'
]); ?>
</div>
<div class="row">
<?php echo template::checkbox('themeFooterLoginLink', true, 'Lien de connexion', [
'checked' => $this->getData(['theme', 'footer', 'loginLink'])
]); ?> ]); ?>
</div>
<div class="row">
<?php echo template::checkbox('themefooterDisplayVersion', true, 'Numéro de version', [
'checked' => $this->getData(['theme', 'footer','displayVersion'])
]); ?>
</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="row"> <div class="col6">
<?php echo template::checkbox('themeFooterDisplaySearch', true, 'Rechercher', [ <div class="row">
'checked' => $this->getData(['theme', 'footer', 'displaySearch']), <?php echo template::checkbox('themefooterDisplaySiteMap', true, 'Plan du site', [
'checked' => $this->getData(['theme', 'footer', 'displaySiteMap']),
'help' => 'Un plan du site permet un meilleur référencement.'
]); ?>
</div>
<div class="row">
<?php echo template::checkbox('themeFooterLoginLink', true, 'Lien de connexion', [
'checked' => $this->getData(['theme', 'footer', 'loginLink'])
]); ?>
</div>
<div class="row">
<?php echo template::checkbox('themeFooterDisplaySearch', true, 'Rechercher', [
'checked' => $this->getData(['theme', 'footer', 'displaySearch']),
]); ?>
</div>
</div>
<div class="col12">
<em>Le paramétrage des mentions légales s'effectue dans la configuration du site.</em>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Contenu personnalisé</h4>
<?php echo template::textarea('themeFooterText', [
'label' => '<strong>Texte ou HTML</strong>',
'value' => $this->getData(['theme', 'footer', 'text']),
'class' => 'editorWysiwyg'
]); ?>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Mise en forme du texte</h4>
<div class="row">
<div class="col3">
<?php echo template::select('themeFooterFont', $module::$fonts, [
'label' => 'Police',
'selected' => $this->getData(['theme', 'footer', 'font'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeFooterFontSize', $module::$footerFontSizes, [
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'footer', 'fontSize'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeFooterFontWeight', $module::$fontWeights, [
'label' => 'Style',
'selected' => $this->getData(['theme', 'footer', 'fontWeight'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeFooterTextTransform', $module::$textTransforms, [
'label' => 'Casse',
'selected' => $this->getData(['theme', 'footer', 'textTransform'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div class="col12">
<em>Le paramétrage des mentions légales s'effectue dans la configuration du site.</em>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col12">
<div class="col12"> <div class="block">
<div class="block"> <h4>Configuration</h4>
<h4>Contenu personnalisé</h4> <div class="row">
<?php echo template::textarea('themeFooterText', [ <div class="col4">
'label' => '<strong>Texte ou HTML</strong>', <?php $footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])]; ?>
'value' => $this->getData(['theme', 'footer', 'text']), <?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
'class' => 'editorWysiwyg' 'label' => 'Disposition',
]); ?> 'selected' => $this->getData(['theme', 'footer', 'template'])
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Mise en forme du texte</h4>
<div class="row">
<div class="col3">
<?php echo template::select('themeFooterFont', $module::$fonts, [
'label' => 'Police',
'selected' => $this->getData(['theme', 'footer', 'font'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeFooterFontSize', $module::$footerFontSizes, [
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'footer', 'fontSize'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeFooterFontWeight', $module::$fontWeights, [
'label' => 'Style',
'selected' => $this->getData(['theme', 'footer', 'fontWeight'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeFooterTextTransform', $module::$textTransforms, [
'label' => 'Casse',
'selected' => $this->getData(['theme', 'footer', 'textTransform'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Configuration</h4>
<div class="row">
<div class="col4">
<?php $footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])]; ?>
<?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
'label' => 'Disposition',
'selected' => $this->getData(['theme', 'footer', 'template'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('themeFooterPosition', $module::$footerPositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'position'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('themeFooterHeight', $module::$footerHeights, [
'label' => 'Marges verticales',
'selected' => $this->getData(['theme', 'footer', 'height'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<p><strong>Contenu personnalisé</strong></p>
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [
'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'textPosition']),
'class' => 'themeFooterContent'
]); ?>
<?php echo template::select('themeFooterTextAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'textAlign'])
]); ?>
</div>
<div class="col4">
<p><strong>Réseaux sociaux</strong></p>
<?php echo template::select('themeFooterSocialsPosition', $footerBlockPosition, [
'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'socialsPosition']),
'class' => 'themeFooterContent'
]); ?>
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
]); ?>
</div>
<div class="col4">
<p><strong>Informations</strong></p>
<?php echo template::select('themeFooterCopyrightPosition', $footerBlockPosition, [
'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']),
'class' => 'themeFooterContent'
]); ?>
<?php echo template::select('themeFooterCopyrightAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'copyrightAlign'])
]); ?>
</div>
<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> <div class="col4">
<?php echo template::select('themeFooterPosition', $module::$footerPositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'position'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('themeFooterHeight', $module::$footerHeights, [
'label' => 'Marges verticales',
'selected' => $this->getData(['theme', 'footer', 'height'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<p><strong>Contenu personnalisé</strong></p>
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [
'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'textPosition']),
'class' => 'themeFooterContent'
]); ?>
<?php echo template::select('themeFooterTextAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'textAlign'])
]); ?>
</div>
<div class="col4">
<p><strong>Réseaux sociaux</strong></p>
<?php echo template::select('themeFooterSocialsPosition', $footerBlockPosition, [
'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'socialsPosition']),
'class' => 'themeFooterContent'
]); ?>
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
]); ?>
</div>
<div class="col4">
<p><strong>Informations</strong></p>
<?php echo template::select('themeFooterCopyrightPosition', $footerBlockPosition, [
'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']),
'class' => 'themeFooterContent'
]); ?>
<?php echo template::select('themeFooterCopyrightAlign', $module::$aligns, [
'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'copyrightAlign'])
]); ?>
</div>
<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>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,165 +1,167 @@
<?php echo template::formOpen('themeHeaderForm'); ?> <?php echo template::formOpen('themeHeaderForm'); ?>
<div class="row"> <div class="notranslate">
<div class="col2"> <div class="row">
<?php echo template::button('themeHeaderBack', [ <div class="col2">
'class' => 'buttonGrey', <?php echo template::button('themeHeaderBack', [
'href' => helper::baseUrl() . 'theme', 'class' => 'buttonGrey',
'ico' => 'left', 'href' => helper::baseUrl() . 'theme',
'value' => 'Retour' 'ico' => 'left',
]); ?> 'value' => 'Retour'
</div> ]); ?>
<div class="col2 offset8"> </div>
<?php echo template::submit('themeHeaderSubmit'); ?> <div class="col2 offset8">
</div> <?php echo template::submit('themeHeaderSubmit'); ?>
</div>
<div class="row">
<div class="col4">
<div class="block">
<h4>Couleurs</h4>
<div class="row">
<div class="col12">
<?php echo template::text('themeHeaderBackgroundColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Fond',
'value' => $this->getData(['theme', 'header', 'backgroundColor'])
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::text('themeHeaderTextColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte',
'value' => $this->getData(['theme', 'header', 'textColor'])
]); ?>
</div>
</div>
</div> </div>
</div> </div>
<div class="col8"> <div class="row">
<div class="block"> <div class="col4">
<h4>Image</h4> <div class="block">
<div class="row"> <h4>Couleurs</h4>
<div class="col12">
<?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ?
$this->getData(['theme', 'header', 'image']) : "";
echo template::file('themeHeaderImage', [
'label' => 'Fond',
'type' => 1,
'value' => $imageFile
]); ?>
</div>
</div>
<div id="themeHeaderImageOptions" class="displayNone">
<div class="row"> <div class="row">
<div class="col6"> <div class="col12">
<?php echo template::select('themeHeaderImageRepeat', $module::$repeats, [ <?php echo template::text('themeHeaderBackgroundColor', [
'label' => 'Répétition', 'class' => 'colorPicker',
'selected' => $this->getData(['theme', 'header', 'imageRepeat']) 'help' => 'Le curseur horizontal règle le niveau de transparence.',
]); ?> 'label' => 'Fond',
</div> 'value' => $this->getData(['theme', 'header', 'backgroundColor'])
<div class="col6"> ]); ?>
<?php echo template::select('themeHeaderImagePosition', $module::$imagePositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'header', 'imagePosition'])
]); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col4"> <div class="col12">
<?php echo template::checkbox('themeHeaderTextHide', true, 'Masquer le titre du site', [ <?php echo template::text('themeHeaderTextColor', [
'checked' => $this->getData(['theme', 'header', 'textHide']) 'class' => 'colorPicker',
]); ?> 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte',
'value' => $this->getData(['theme', 'header', 'textColor'])
]); ?>
</div> </div>
<div id="themeHeaderShow" class="col4">
<?php echo template::checkbox('themeHeaderlinkHomePage', true, 'Bannière cliquable', [
'checked' => $this->getData(['theme', 'header', 'linkHomePage'])
]); ?>
</div>
<div class="col4">
<em>(largeur:<span id="themeHeaderImageWidth"></span> ; hauteur:<span id="themeHeaderImageHeight"></span>)</em>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> <div class="col8">
</div> <div class="block">
<div class="row"> <h4>Image</h4>
<div class="col12"> <div class="row">
<div class="block"> <div class="col12">
<h4>Configuration</h4> <?php
<div class="row"> $imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ?
<div class="col3"> $this->getData(['theme', 'header', 'image']) : "";
<?php echo template::select('themeHeaderPosition', $module::$headerPositions, [ echo template::file('themeHeaderImage', [
'label' => 'Position', 'label' => 'Fond',
'selected' => $this->getData(['theme', 'header', 'position']) 'type' => 1,
]); ?> 'value' => $imageFile
</div>
<div class="col3">
<?php echo template::select('themeHeaderImageContainer', $module::$headerWide, [
'label' => 'Adaptation',
'selected' => $this->getData(['theme', 'header', 'imageContainer']),
'help' => 'Les modes responsives permettent de conserver des dimensions proportionnelles.<br />
Cover pour une image plus grande que la bannière, Contain pour une image plus petite.
Les modes Auto et Etiré ne provoquent pas de modification de la hauteur de la bannière.'
]); ?> ]); ?>
</div> </div>
<div class="col3">
<?php echo template::select('themeHeaderHeight', $module::$headerHeights, [
'label' => 'Hauteur maximale',
'selected' => $this->getData(['theme', 'header', 'height']),
'help' => 'La hauteur maximale est de 600 pixels, même si les dimensions de l\'image sélectionnée sont supérieures. <br />Lorsque l\'adaptation est positionnée sur Responsive, la hauteur diminue proportionnellement à la largeur.'
]); ?>
</div> </div>
<div class="col3"> <div id="themeHeaderImageOptions" class="displayNone">
<?php echo template::select('themeHeaderTextAlign', $module::$aligns, [ <div class="row">
'label' => 'Alignement du contenu', <div class="col6">
'selected' => $this->getData(['theme', 'header', 'textAlign']) <?php echo template::select('themeHeaderImageRepeat', $module::$repeats, [
]); ?> 'label' => 'Répétition',
'selected' => $this->getData(['theme', 'header', 'imageRepeat'])
]); ?>
</div>
<div class="col6">
<?php echo template::select('themeHeaderImagePosition', $module::$imagePositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'header', 'imagePosition'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('themeHeaderTextHide', true, 'Masquer le titre du site', [
'checked' => $this->getData(['theme', 'header', 'textHide'])
]); ?>
</div>
<div id="themeHeaderShow" class="col4">
<?php echo template::checkbox('themeHeaderlinkHomePage', true, 'Bannière cliquable', [
'checked' => $this->getData(['theme', 'header', 'linkHomePage'])
]); ?>
</div>
<div class="col4">
<em>(largeur:<span id="themeHeaderImageWidth"></span> ; hauteur:<span id="themeHeaderImageHeight"></span>)</em>
</div>
</div>
</div> </div>
</div> </div>
<div id="themeHeaderPositionOptions" class="displayNone">
<?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [
'checked' => $this->getData(['theme', 'header', 'margin'])
]); ?>
</div>
</div> </div>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col12">
<div class="col12"> <div class="block">
<div class="block"> <h4>Configuration</h4>
<h4>Mise en forme du texte</h4> <div class="row">
<div class="row"> <div class="col3">
<div class="col3"> <?php echo template::select('themeHeaderPosition', $module::$headerPositions, [
<?php echo template::select('themeHeaderFont', $module::$fonts, [ 'label' => 'Position',
'label' => 'Police', 'selected' => $this->getData(['theme', 'header', 'position'])
'selected' => $this->getData(['theme', 'header', 'font']) ]); ?>
]); ?> </div>
<div class="col3">
<?php echo template::select('themeHeaderImageContainer', $module::$headerWide, [
'label' => 'Adaptation',
'selected' => $this->getData(['theme', 'header', 'imageContainer']),
'help' => 'Les modes responsives permettent de conserver des dimensions proportionnelles.<br />
Cover pour une image plus grande que la bannière, Contain pour une image plus petite.
Les modes Auto et Etiré ne provoquent pas de modification de la hauteur de la bannière.'
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeHeaderHeight', $module::$headerHeights, [
'label' => 'Hauteur maximale',
'selected' => $this->getData(['theme', 'header', 'height']),
'help' => 'La hauteur maximale est de 600 pixels, même si les dimensions de l\'image sélectionnée sont supérieures. <br />Lorsque l\'adaptation est positionnée sur Responsive, la hauteur diminue proportionnellement à la largeur.'
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeHeaderTextAlign', $module::$aligns, [
'label' => 'Alignement du contenu',
'selected' => $this->getData(['theme', 'header', 'textAlign'])
]); ?>
</div>
</div> </div>
<div class="col3"> <div id="themeHeaderPositionOptions" class="displayNone">
<?php echo template::select('themeHeaderFontSize', $module::$headerFontSizes, [ <?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [
'label' => 'Taille', 'checked' => $this->getData(['theme', 'header', 'margin'])
'help' => 'Proportionnelle à celle définie dans le site.', ]); ?>
'selected' => $this->getData(['theme', 'header', 'fontSize'])
]); ?>
</div> </div>
<div class="col3">
<?php echo template::select('themeHeaderFontWeight', $module::$fontWeights, [ </div>
'label' => 'Style', </div>
'selected' => $this->getData(['theme', 'header', 'fontWeight']) </div>
]); ?> <div class="row">
</div> <div class="col12">
<div class="col3"> <div class="block">
<?php echo template::select('themeHeaderTextTransform', $module::$textTransforms, [ <h4>Mise en forme du texte</h4>
'label' => 'Casse', <div class="row">
'selected' => $this->getData(['theme', 'header', 'textTransform']) <div class="col3">
]); ?> <?php echo template::select('themeHeaderFont', $module::$fonts, [
'label' => 'Police',
'selected' => $this->getData(['theme', 'header', 'font'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeHeaderFontSize', $module::$headerFontSizes, [
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'header', 'fontSize'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeHeaderFontWeight', $module::$fontWeights, [
'label' => 'Style',
'selected' => $this->getData(['theme', 'header', 'fontWeight'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeHeaderTextTransform', $module::$textTransforms, [
'label' => 'Casse',
'selected' => $this->getData(['theme', 'header', 'textTransform'])
]); ?>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,63 +1,66 @@
<?php if( <div class="notranslate">
$this->getData(['theme', 'header', 'position']) === 'hide' <?php if(
OR $this->getData(['theme', 'menu', 'position']) === 'hide' $this->getData(['theme', 'header', 'position']) === 'hide'
OR $this->getData(['theme', 'footer', 'position']) === 'hide' OR $this->getData(['theme', 'menu', 'position']) === 'hide'
): ?> OR $this->getData(['theme', 'footer', 'position']) === 'hide'
): ?>
<?php echo template::speech('Cliquez sur une zone afin d\'accéder à ses options de personnalisation. Vous pouvez également afficher les zones cachées à l\'aide du bouton ci-dessous.'); ?> <?php echo template::speech('Cliquez sur une zone afin d\'accéder à ses options de personnalisation. Vous pouvez également afficher les zones cachées à l\'aide du bouton ci-dessous.'); ?>
<div class="row"> <div class="row">
<div class="col2 offset2"> <div class="col2 offset2">
<?php echo template::button('themeBack', [ <?php echo template::button('themeBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl(false), 'href' => helper::baseUrl(false),
'ico' => 'home', 'ico' => 'home',
'value' => 'Accueil' 'value' => 'Accueil'
]); ?> ]); ?>
</div>
<div class="col2">
<?php echo template::button('themeManage', [
'ico' => 'upload',
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
'value' => 'Thèmes'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdvanced', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
'value' => 'Éditeur CSS',
'ico' => 'code'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeShowAll', [
'ico' => 'eye',
'value' => 'Zones cachées'
]); ?>
</div>
</div> </div>
<div class="col2"> <?php else: ?>
<?php echo template::button('themeManage', [ <?php echo template::speech('Cliquez sur une zone afin d\'accéder à ses options de personnalisation.'); ?>
'ico' => 'upload', <div class="row">
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage', <div class="col2 offset3">
'value' => 'Thèmes' <?php echo template::button('themeBack', [
]); ?> 'class' => 'buttonGrey',
</div> 'href' => helper::baseUrl(false),
<div class="col2"> 'ico' => 'home',
<?php echo template::button('themeAdvanced', [ 'value' => 'Accueil'
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced', ]); ?>
'value' => 'Éditeur CSS', </div>
'ico' => 'code' <div class="col2">
]); ?> <?php echo template::button('themeManage', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
'ico' => 'upload',
'value' => 'Thèmes'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdvanced', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
'value' => 'Éditeur CSS',
'ico' => 'code'
]); ?>
</div>
</div> </div>
<div class="col2"> <?php endif; ?>
<?php echo template::button('themeShowAll', [ </div>
'ico' => 'eye',
'value' => 'Zones cachées'
]); ?>
</div>
</div>
<?php else: ?>
<?php echo template::speech('Cliquez sur une zone afin d\'accéder à ses options de personnalisation.'); ?>
<div class="row">
<div class="col2 offset3">
<?php echo template::button('themeBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(false),
'ico' => 'home',
'value' => 'Accueil'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeManage', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
'ico' => 'upload',
'value' => 'Thèmes'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdvanced', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
'value' => 'Éditeur CSS',
'ico' => 'code'
]); ?>
</div>
</div>
<?php endif; ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('themeManageForm'); ?> <?php echo template::formOpen('themeManageForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeManageBack', [ <?php echo template::button('themeManageBack', [
@ -48,4 +49,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,136 +1,138 @@
<?php echo template::formOpen('themeMenuForm'); ?> <?php echo template::formOpen('themeMenuForm'); ?>
<div class="row"> <div class="notranslate">
<div class="col2"> <div class="row">
<?php echo template::button('themeMenuBack', [ <div class="col2">
'class' => 'buttonGrey', <?php echo template::button('themeMenuBack', [
'href' => helper::baseUrl() . 'theme', 'class' => 'buttonGrey',
'ico' => 'left', 'href' => helper::baseUrl() . 'theme',
'value' => 'Retour' 'ico' => 'left',
]); ?> 'value' => 'Retour'
</div>
<div class="col2 offset8">
<?php echo template::submit('themeMenuSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col7">
<div class="block">
<h4>Couleurs</h4>
<div class="row">
<div class="col6">
<?php echo template::text('themeMenuBackgroundColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Fond',
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('themeMenuTextColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte',
'value' => $this->getData(['theme', 'menu', 'textColor'])
]); ?>
</div>
</div>
</div>
</div>
<div class="col5">
<div class="block">
<h4>Contenus</h4>
<?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
'checked' => $this->getData(['theme', 'menu', 'loginLink'])
]); ?>
<?php echo template::checkbox('themeMenuBurgerTitle', true, 'Titre du site dans le menu réduit', [
'checked' => $this->getData(['theme', 'menu', 'burgerTitle']),
'help' => 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.'
]); ?> ]); ?>
<?php echo template::select('themeMenui18nPosition', $module::$menui18nPosition, [ </div>
'label' => 'Position de la barre de langues', <div class="col2 offset8">
'selected' => $this->getData(['theme', 'menu', 'i18nPosition']) <?php echo template::submit('themeMenuSubmit'); ?>
]); ?>
</div> </div>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col7">
<div class="col12"> <div class="block">
<div class="block"> <h4>Couleurs</h4>
<h4>Mise en forme du texte</h4> <div class="row">
<div class="row"> <div class="col6">
<div class="col3"> <?php echo template::text('themeMenuBackgroundColor', [
<?php echo template::select('themeMenuFont', $module::$fonts, [ 'class' => 'colorPicker',
'label' => 'Police', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'selected' => $this->getData(['theme', 'menu', 'font']) 'label' => 'Fond',
]); ?> 'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('themeMenuTextColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte',
'value' => $this->getData(['theme', 'menu', 'textColor'])
]); ?>
</div>
</div> </div>
<div class="col3">
<?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site',
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
'label' => 'Style',
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
'label' => 'Casse',
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
]); ?>
</div>
</div>
<div>
</div> </div>
</div> </div>
<div class="row"> <div class="col5">
<div class="col12"> <div class="block">
<div class="block"> <h4>Contenus</h4>
<h4>Configuration</h4> <?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
<div class="row"> 'checked' => $this->getData(['theme', 'menu', 'loginLink'])
<div class="col4"> ]); ?>
<?php <?php echo template::checkbox('themeMenuBurgerTitle', true, 'Titre du site dans le menu réduit', [
if ( $this->getData(['theme', 'header', 'position']) == "site") 'checked' => $this->getData(['theme', 'menu', 'burgerTitle']),
{ echo template::select('themeMenuPosition', $module::$menuPositionsSite, [ 'help' => 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.'
'label' => 'Position', ]); ?>
'selected' => $this->getData(['theme', 'menu', 'position']) <?php echo template::select('themeMenui18nPosition', $module::$menui18nPosition, [
]); 'label' => 'Position de la barre de langues',
}else{ 'selected' => $this->getData(['theme', 'menu', 'i18nPosition'])
echo template::select('themeMenuPosition', $module::$menuPositionsBody, [ ]); ?>
'label' => 'Position',
'selected' => $this->getData(['theme', 'menu', 'position']) </div>
]); } </div>
?> </div>
</div> <div class="row">
<div class="col4"> <div class="col12">
<?php echo template::select('themeMenuHeight', $module::$menuHeights, [ <div class="block">
'label' => 'Hauteur', <h4>Mise en forme du texte</h4>
'selected' => $this->getData(['theme', 'menu', 'height']) <div class="row">
]); ?> <div class="col3">
</div> <?php echo template::select('themeMenuFont', $module::$fonts, [
<div class="col4"> 'label' => 'Police',
<?php echo template::select('themeMenuTextAlign', $module::$aligns, [ 'selected' => $this->getData(['theme', 'menu', 'font'])
'label' => 'Alignement du contenu', ]); ?>
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
]); ?>
</div>
</div> </div>
<div id="themeMenuPositionOptions" class="displayNone"> <div class="col3">
<?php echo template::checkbox('themeMenuMargin', true, 'Aligner le menu avec le contenu', [ <?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [
'checked' => $this->getData(['theme', 'menu', 'margin']) 'label' => 'Taille',
]); ?> 'help' => 'Proportionnelle à celle définie dans le site',
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
]); ?>
</div> </div>
<div id="themeMenuPositionFixed" class="displayNone"> <div class="col3">
<?php echo template::checkbox('themeMenuFixed', true, 'Menu fixe', [ <?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
'checked' => $this->getData(['theme', 'menu', 'fixed']) 'label' => 'Style',
]); ?> 'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
]); ?>
</div> </div>
<div class="col3">
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
'label' => 'Casse',
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
]); ?>
</div>
</div>
<div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Configuration</h4>
<div class="row">
<div class="col4">
<?php
if ( $this->getData(['theme', 'header', 'position']) == "site")
{ echo template::select('themeMenuPosition', $module::$menuPositionsSite, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'menu', 'position'])
]);
}else{
echo template::select('themeMenuPosition', $module::$menuPositionsBody, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'menu', 'position'])
]); }
?>
</div>
<div class="col4">
<?php echo template::select('themeMenuHeight', $module::$menuHeights, [
'label' => 'Hauteur',
'selected' => $this->getData(['theme', 'menu', 'height'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('themeMenuTextAlign', $module::$aligns, [
'label' => 'Alignement du contenu',
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
]); ?>
</div>
</div>
<div id="themeMenuPositionOptions" class="displayNone">
<?php echo template::checkbox('themeMenuMargin', true, 'Aligner le menu avec le contenu', [
'checked' => $this->getData(['theme', 'menu', 'margin'])
]); ?>
</div>
<div id="themeMenuPositionFixed" class="displayNone">
<?php echo template::checkbox('themeMenuFixed', true, 'Menu fixe', [
'checked' => $this->getData(['theme', 'menu', 'fixed'])
]); ?>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('themeSiteForm'); ?> <?php echo template::formOpen('themeSiteForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeSiteBack', [ <?php echo template::button('themeSiteBack', [
@ -137,4 +138,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('userAddForm'); ?> <?php echo template::formOpen('userAddForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('userAddBack', [ <?php echo template::button('userAddBack', [
@ -78,4 +79,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('userEditForm'); ?> <?php echo template::formOpen('userEditForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php if($this->getUrl(3)): ?> <?php if($this->getUrl(3)): ?>
@ -98,4 +99,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('userForgotForm'); ?> <?php echo template::formOpen('userForgotForm'); ?>
<div class="notranslate">
<?php echo template::text('userForgotId', [ <?php echo template::text('userForgotId', [
'label' => 'Identifiant' 'label' => 'Identifiant'
]); ?> ]); ?>
@ -17,4 +18,5 @@
]); ?> ]); ?>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,4 @@
<div class="row"> <div class="row notranslate">
<div class="col2"> <div class="col2">
<?php echo template::button('userAddBack', [ <?php echo template::button('userAddBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('userLoginForm'); ?> <?php echo template::formOpen('userLoginForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::text('userLoginId', [ <?php echo template::text('userLoginId', [
@ -36,4 +37,5 @@
]); ?> ]); ?>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,4 +1,5 @@
<?php echo template::formOpen('userResetForm'); ?> <?php echo template::formOpen('userResetForm'); ?>
<div class="notranslate">
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::password('userResetNewPassword', [ <?php echo template::password('userResetNewPassword', [
@ -18,4 +19,5 @@
]); ?> ]); ?>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>