348 lines
14 KiB
PHP
348 lines
14 KiB
PHP
<?php
|
|
// Lexique
|
|
$text = [];
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
switch ($val) {
|
|
case 'fr' :
|
|
$text[0] = 'Retour';
|
|
$text[1] = 'Aide';
|
|
$text[2] = 'Enregistrer';
|
|
$text[3] = 'Paramètres';
|
|
$text[4] = 'Position';
|
|
$text[5] = 'Largeur';
|
|
$text[6] = 'Bords arrondis';
|
|
$text[7] = 'Autour de la page sélectionnée';
|
|
$text[8] = 'Hauteur';
|
|
$text[9] = 'Alignement du contenu';
|
|
$text[10] = 'Aligner le menu avec le contenu';
|
|
$text[11] = 'Menu fixe';
|
|
$text[12] = 'Contenus';
|
|
$text[13] = 'Lien de connexion';
|
|
$text[14] = 'Barre de membre';
|
|
$text[15] = 'Icônes de gestion de compte et de déconnexion. Uniquement pour les membres connectés';
|
|
$text[16] = 'Affichage dans le menu burger';
|
|
$text[17] = 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.';
|
|
$text[18] = 'Sélectionner une image, ses dimensions seront adaptées automatiquement';
|
|
$text[19] = 'Logo du menu burger';
|
|
$text[20] = 'Couleurs';
|
|
$text[21] = 'Le curseur horizontal règle le niveau de transparence.';
|
|
$text[22] = 'Texte';
|
|
$text[23] = 'Le curseur horizontal règle le niveau de transparence.';
|
|
$text[24] = 'Arrière-plan';
|
|
$text[25] = 'Fond du sous-menu';
|
|
$text[26] = 'Texte page active';
|
|
$text[27] = 'La couleur de fond de la page active peut être définie automatique ou selon une couleur définie, comme par exemple celle de fond des pages.';
|
|
$text[28] = 'Couleur de fond de la page sélectionnée dans le menu.<br>Le curseur horizontal règle le niveau de transparence.';
|
|
$text[29] = 'Fond page active';
|
|
$text[30] = 'Mise en forme du texte';
|
|
$text[31] = 'Police';
|
|
$text[32] = 'Taille';
|
|
$text[33] = 'Proportionnelle à celle définie dans le site';
|
|
$text[34] = 'Style';
|
|
$text[35] = 'Casse';
|
|
$text[36] = 'Couleur de fond automatique';
|
|
$menuPositionsSite = $module::$menuPositionsSite;
|
|
$menuPositionsBody = $module::$menuPositionsBody;
|
|
$containerWides = $module::$containerWides;
|
|
$menuRadius = $module::$menuRadius;
|
|
$menuHeights = $module::$menuHeights;
|
|
$aligns = $module::$aligns;
|
|
$burgerContent = $module::$burgerContent;
|
|
$menuFontSizes = $module::$menuFontSizes;
|
|
$menuBurgerFontSizes = $module::$menuBurgerFontSizes;
|
|
$fontWeights = $module::$fontWeights;
|
|
$textTransforms = $module::$textTransforms;
|
|
break;
|
|
case 'en' :
|
|
$text[0] = 'Back';
|
|
$text[1] = 'Help';
|
|
$text[2] = 'Save';
|
|
$text[3] = 'Settings';
|
|
$text[4] = 'Position';
|
|
$text[5] = 'Width';
|
|
$text[6] = 'Rounded edges';
|
|
$text[7] = 'Around the selected page';
|
|
$text[8] = 'Height';
|
|
$text[9] = 'Alignment of content';
|
|
$text[10] = 'Align menu with content';
|
|
$text[11] = 'Fixed menu';
|
|
$text[12] = 'Contents';
|
|
$text[13] = 'Login link';
|
|
$text[14] = 'Member bar';
|
|
$text[15] = 'Account management and logout icons. Only for logged in members';
|
|
$text[16] = 'Display in burger menu';
|
|
$text[17] = 'The burger menu replaces the full menu when the screen width is not sufficient';
|
|
$text[18] = 'Select an image, its dimensions will be adapted automatically';
|
|
$text[19] = 'Logo of the burger menu';
|
|
$text[20] = 'Colors';
|
|
$text[21] = 'The horizontal slider sets the transparency level';
|
|
$text[22] = 'Text';
|
|
$text[23] = 'Horizontal slider sets transparency level';
|
|
$text[24] = 'Background';
|
|
$text[25] = 'Submenu background';
|
|
$text[26] = 'Text active page';
|
|
$text[27] = 'The background colour of the active page can be set automatically or according to a defined colour, such as the background colour of the pages.';
|
|
$text[28] = 'Background colour of the page selected in the menu.<br>The horizontal slider sets the transparency level.';
|
|
$text[29] = 'Active page background';
|
|
$text[30] = 'Text formatting';
|
|
$text[31] = 'Font';
|
|
$text[32] = 'Size';
|
|
$text[33] = 'Proportional to that defined in the site';
|
|
$text[34] = 'Style';
|
|
$text[35] = 'Character case';
|
|
$text[36] = 'Automatic background color';
|
|
$menuPositionsSite = $module::$menuPositionsSite_en;
|
|
$menuPositionsBody = $module::$menuPositionsBody_en;
|
|
$containerWides = $module::$containerWides_en;
|
|
$menuRadius = $module::$menuRadius_en;
|
|
$menuHeights = $module::$menuHeights_en;
|
|
$aligns = $module::$aligns_en;
|
|
$burgerContent = $module::$burgerContent_en;
|
|
$menuFontSizes = $module::$menuFontSizes_en;
|
|
$menuBurgerFontSizes = $module::$menuBurgerFontSizes_en;
|
|
$fontWeights = $module::$fontWeights_en;
|
|
$textTransforms = $module::$textTransforms_en;
|
|
break;
|
|
}
|
|
?>
|
|
<?php echo template::formOpen('themeMenuForm'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('themeMenuBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . 'theme',
|
|
'ico' => 'left',
|
|
'value' => $text[0]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::button('themeMenuHelp', [
|
|
'href' => 'https://doc.deltacms.fr/personnalisation-du-menu',
|
|
'target' => '_blank',
|
|
'ico' => 'help',
|
|
'value' => $text[1],
|
|
'class' => 'buttonHelp'
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset6">
|
|
<?php echo template::submit('themeMenuSubmit',[
|
|
'value' => $text[2]
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[3]; ?></h4>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php
|
|
if ( $this->getData(['theme', 'header', 'position']) == "site")
|
|
{ echo template::select('themeMenuPosition', $menuPositionsSite, [
|
|
'label' => $text[4],
|
|
'selected' => $this->getData(['theme', 'menu', 'position'])
|
|
]);
|
|
}else{
|
|
echo template::select('themeMenuPosition', $menuPositionsBody, [
|
|
'label' => $text[4],
|
|
'selected' => $this->getData(['theme', 'menu', 'position'])
|
|
]); }
|
|
?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('themeMenuWide', $containerWides, [
|
|
'label' => $text[5],
|
|
'selected' => $this->getData(['theme', 'menu', 'wide'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col4">
|
|
<?php echo template::select('themeMenuRadius', $menuRadius, [
|
|
'label' => $text[6],
|
|
'selected' => $this->getData(['theme', 'menu', 'radius']),
|
|
'help' => $text[7]
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('themeMenuHeight', $menuHeights, [
|
|
'label' => $text[8],
|
|
'selected' => $this->getData(['theme', 'menu', 'height'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('themeMenuTextAlign', $aligns, [
|
|
'label' => $text[9],
|
|
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div id="themeMenuPositionOptions" class="displayNone">
|
|
<?php echo template::checkbox('themeMenuMargin', true, $text[10], [
|
|
'checked' => $this->getData(['theme', 'menu', 'margin'])
|
|
]); ?>
|
|
</div>
|
|
<div id="themeMenuPositionFixed" class="displayNone">
|
|
<?php echo template::checkbox('themeMenuFixed', true, $text[11], [
|
|
'checked' => $this->getData(['theme', 'menu', 'fixed'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[12]; ?></h4>
|
|
<div class="row">
|
|
<div class="col3">
|
|
<?php echo template::checkbox('themeMenuLoginLink', true, $text[13], [
|
|
'checked' => $this->getData(['theme', 'menu', 'loginLink'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col3">
|
|
<?php echo template::checkbox('themeMenuMemberBar', true, $text[14], [
|
|
'checked' => $this->getData(['theme', 'menu', 'memberBar']),
|
|
'help' => $text[15]
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('themeMenuBurgerContent', $burgerContent, [
|
|
'label' => $text[16],
|
|
'selected' => $this->getData(['theme', 'menu', 'burgerContent']),
|
|
'help' => $text[17]
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div id="themeMenuBurgerTitle" class=" <?php if( $this->getData(['theme', 'menu', 'burgerContent']) !== 'title') echo 'displayNone';?>">
|
|
<div class="row">
|
|
<div class="col3 offset6">
|
|
<?php echo template::text('themeMenuBurgerTextColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[21],
|
|
'label' => $text[22],
|
|
'value' => $this->getData(['theme', 'menu', 'burgerTextColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col3">
|
|
<?php echo template::select('themeMenuBurgerFontSize', $menuBurgerFontSizes, [
|
|
'label' => $text[32],
|
|
'help' => $text[33],
|
|
'selected' => $this->getData(['theme', 'menu', 'burgerFontSize'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div id="themeMenuBurgerLogoId" class="col6 offset6 <?php if( $this->getData(['theme', 'menu', 'burgerContent']) !== 'logo') echo 'displayNone';?>">
|
|
<?php
|
|
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'menu', 'burgerLogo'])) ?
|
|
$this->getData(['theme', 'menu', 'burgerLogo']) : "";
|
|
echo template::file('themeMenuBurgerLogo', [
|
|
'help' => $text[18],
|
|
'label' => $text[19],
|
|
'type' => 1,
|
|
'value' => $imageFile
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[20]; ?></h4>
|
|
<div class="row">
|
|
<div class="col4">
|
|
<?php echo template::text('themeMenuTextColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[21],
|
|
'label' => $text[22],
|
|
'value' => $this->getData(['theme', 'menu', 'textColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::text('themeMenuBackgroundColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[23],
|
|
'label' => $text[24],
|
|
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::text('themeMenuBackgroundColorSub', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[23],
|
|
'label' => $text[25],
|
|
'value' => $this->getData(['theme', 'menu', 'backgroundColorSub'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col4">
|
|
<?php echo template::text('themeMenuActiveTextColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[23],
|
|
'label' => $text[26],
|
|
'value' => $this->getData(['theme', 'menu', 'activeTextColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4 verticalAlignBottom">
|
|
<?php
|
|
echo template::checkbox('themeMenuActiveColorAuto', true, $text[36], [
|
|
'checked' => $this->getData(['theme', 'menu', 'activeColorAuto']),
|
|
'help' => $text[27]
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::text('themeMenuActiveColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[28],
|
|
'label' => $text[29],
|
|
'value' => $this->getData(['theme', 'menu', 'activeColor'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[30]; ?></h4>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::select('themeMenuFont', $module::$fonts, [
|
|
'label' => $text[31],
|
|
'selected' => $this->getData(['theme', 'menu', 'font']),
|
|
'fonts' => true
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('themeMenuFontSize', $menuFontSizes, [
|
|
'label' => $text[32],
|
|
'help' => $text[33],
|
|
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::select('themeMenuFontWeight', $fontWeights, [
|
|
'label' => $text[34],
|
|
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('themeMenuTextTransform', $textTransforms, [
|
|
'label' => $text[35],
|
|
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|