2022-03-06 13:35:21 +01:00
< ? 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 ;
2022-05-18 07:43:01 +02:00
$menuBurgerFontSizes = $module :: $menuBurgerFontSizes ;
2022-03-06 13:35:21 +01:00
$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 ;
2022-05-18 07:43:01 +02:00
$menuBurgerFontSizes = $module :: $menuBurgerFontSizes_en ;
2022-03-06 13:35:21 +01:00
$fontWeights = $module :: $fontWeights_en ;
$textTransforms = $module :: $textTransforms_en ;
break ;
}
?>
2022-01-31 09:10:49 +01:00
< ? php echo template :: formOpen ( 'themeMenuForm' ); ?>
< div class = " row " >
< div class = " col2 " >
< ? php echo template :: button ( 'themeMenuBack' , [
'class' => 'buttonGrey' ,
'href' => helper :: baseUrl () . 'theme' ,
'ico' => 'left' ,
2022-03-06 13:35:21 +01:00
'value' => $text [ 0 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col2 " >
< ? php echo template :: button ( 'themeMenuHelp' , [
'href' => 'https://doc.deltacms.fr/personnalisation-du-menu' ,
'target' => '_blank' ,
'ico' => 'help' ,
2022-03-06 13:35:21 +01:00
'value' => $text [ 1 ],
2022-01-31 09:10:49 +01:00
'class' => 'buttonHelp'
]); ?>
</ div >
< div class = " col2 offset6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: submit ( 'themeMenuSubmit' ,[
'value' => $text [ 2 ]
]); ?>
2022-01-31 09:10:49 +01:00
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-03-06 13:35:21 +01:00
< h4 >< ? php echo $text [ 3 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col6 " >
< ? php
if ( $this -> getData ([ 'theme' , 'header' , 'position' ]) == " site " )
2022-03-06 13:35:21 +01:00
{ echo template :: select ( 'themeMenuPosition' , $menuPositionsSite , [
'label' => $text [ 4 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'position' ])
]);
} else {
2022-03-06 13:35:21 +01:00
echo template :: select ( 'themeMenuPosition' , $menuPositionsBody , [
'label' => $text [ 4 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'position' ])
]); }
?>
</ div >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuWide' , $containerWides , [
'label' => $text [ 5 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'wide' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuRadius' , $menuRadius , [
'label' => $text [ 6 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'radius' ]),
2022-03-06 13:35:21 +01:00
'help' => $text [ 7 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuHeight' , $menuHeights , [
'label' => $text [ 8 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'height' ])
]); ?>
</ div >
< div class = " col4 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuTextAlign' , $aligns , [
'label' => $text [ 9 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'textAlign' ])
]); ?>
</ div >
</ div >
< div id = " themeMenuPositionOptions " class = " displayNone " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: checkbox ( 'themeMenuMargin' , true , $text [ 10 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'theme' , 'menu' , 'margin' ])
]); ?>
</ div >
< div id = " themeMenuPositionFixed " class = " displayNone " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: checkbox ( 'themeMenuFixed' , true , $text [ 11 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'theme' , 'menu' , 'fixed' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-03-06 13:35:21 +01:00
< h4 >< ? php echo $text [ 12 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col3 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: checkbox ( 'themeMenuLoginLink' , true , $text [ 13 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'theme' , 'menu' , 'loginLink' ])
]); ?>
</ div >
< div class = " col3 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: checkbox ( 'themeMenuMemberBar' , true , $text [ 14 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'theme' , 'menu' , 'memberBar' ]),
2022-03-06 13:35:21 +01:00
'help' => $text [ 15 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuBurgerContent' , $burgerContent , [
'label' => $text [ 16 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'burgerContent' ]),
2022-03-06 13:35:21 +01:00
'help' => $text [ 17 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
</ div >
2022-05-18 07:43:01 +02:00
< 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 >
2022-01-31 09:10:49 +01:00
< 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' , [
2022-03-06 13:35:21 +01:00
'help' => $text [ 18 ],
'label' => $text [ 19 ],
2022-01-31 09:10:49 +01:00
'type' => 1 ,
'value' => $imageFile
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-03-06 13:35:21 +01:00
< h4 >< ? php echo $text [ 20 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: text ( 'themeMenuTextColor' , [
'class' => 'colorPicker' ,
2022-03-06 13:35:21 +01:00
'help' => $text [ 21 ],
'label' => $text [ 22 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'menu' , 'textColor' ])
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: text ( 'themeMenuBackgroundColor' , [
'class' => 'colorPicker' ,
2022-03-06 13:35:21 +01:00
'help' => $text [ 23 ],
'label' => $text [ 24 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'menu' , 'backgroundColor' ])
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: text ( 'themeMenuBackgroundColorSub' , [
'class' => 'colorPicker' ,
2022-03-06 13:35:21 +01:00
'help' => $text [ 23 ],
'label' => $text [ 25 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'menu' , 'backgroundColorSub' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col4 " >
< ? php echo template :: text ( 'themeMenuActiveTextColor' , [
'class' => 'colorPicker' ,
2022-03-06 13:35:21 +01:00
'help' => $text [ 23 ],
'label' => $text [ 26 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'menu' , 'activeTextColor' ])
]); ?>
</ div >
< div class = " col4 verticalAlignBottom " >
< ? php
2022-03-06 13:35:21 +01:00
echo template :: checkbox ( 'themeMenuActiveColorAuto' , true , $text [ 36 ], [
2022-01-31 09:10:49 +01:00
'checked' => $this -> getData ([ 'theme' , 'menu' , 'activeColorAuto' ]),
2022-03-06 13:35:21 +01:00
'help' => $text [ 27 ]
2022-01-31 09:10:49 +01:00
]); ?>
</ div >
< div class = " col4 " >
< ? php echo template :: text ( 'themeMenuActiveColor' , [
'class' => 'colorPicker' ,
2022-03-06 13:35:21 +01:00
'help' => $text [ 28 ],
'label' => $text [ 29 ],
2022-01-31 09:10:49 +01:00
'value' => $this -> getData ([ 'theme' , 'menu' , 'activeColor' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2022-03-06 13:35:21 +01:00
< h4 >< ? php echo $text [ 30 ]; ?> </h4>
2022-01-31 09:10:49 +01:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: select ( 'themeMenuFont' , $module :: $fonts , [
2022-03-06 13:35:21 +01:00
'label' => $text [ 31 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'font' ]),
'fonts' => true
]); ?>
</ div >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuFontSize' , $menuFontSizes , [
'label' => $text [ 32 ],
'help' => $text [ 33 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'fontSize' ])
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuFontWeight' , $fontWeights , [
'label' => $text [ 34 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'fontWeight' ])
]); ?>
</ div >
< div class = " col6 " >
2022-03-06 13:35:21 +01:00
< ? php echo template :: select ( 'themeMenuTextTransform' , $textTransforms , [
'label' => $text [ 35 ],
2022-01-31 09:10:49 +01:00
'selected' => $this -> getData ([ 'theme' , 'menu' , 'textTransform' ])
]); ?>
</ div >
</ div >
</ div >
</ div >
</ div >
< ? php echo template :: formClose (); ?>