320 lines
10 KiB
PHP
320 lines
10 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] = 'Largeur du site';
|
|
$text[5] = 'Arrondi des angles';
|
|
$text[6] = 'Ombre sur les bords du site';
|
|
$text[7] = 'Pas de marge au-dessus et en-dessous du site';
|
|
$text[8] = 'Couleurs';
|
|
$text[9] = 'Le curseur horizontal règle le niveau de transparence.';
|
|
$text[10] = 'Arrière-plan';
|
|
$text[11] = 'Texte';
|
|
$text[12] = 'Titres';
|
|
$text[13] = 'Liens';
|
|
$text[14] = 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.';
|
|
$text[15] = 'Arrière-plan des blocs';
|
|
$text[16] = 'Bordure des blocs';
|
|
$text[17] = 'Arrondi des angles du bloc';
|
|
$text[18] = 'Ombre sur les bords du bloc';
|
|
$text[19] = 'Arrière-plan du titre des blocs';
|
|
$text[20] = 'Boutons';
|
|
$text[21] = 'Titre';
|
|
$text[22] = 'Sous-titre';
|
|
$text[23] = 'Bouton';
|
|
$text[24] = 'Bloc';
|
|
$text[25] = 'Mise en forme du texte';
|
|
$text[26] = 'Police';
|
|
$text[27] = 'Style';
|
|
$text[28] = 'Casse';
|
|
$text[29] = 'Taille';
|
|
$text[30] = 'Taille de référence pour le site. Les tailles des polices de la bannière, de menu et de pied de page sont proportionnelles à cette taille.';
|
|
$text[31] = 'Mise en forme des titres';
|
|
$siteWidths = $module::$siteWidths;
|
|
$radius = $module::$radius;
|
|
$shadows = $module::$shadows;
|
|
$blockShadows = $module::$blockShadows;
|
|
$fontWeights = $module::$fontWeights;
|
|
$textTransforms = $module::$textTransforms;
|
|
break;
|
|
case 'en' :
|
|
$text[0] = 'Back';
|
|
$text[1] = 'Help';
|
|
$text[2] = 'Save';
|
|
$text[3] = 'Settings';
|
|
$text[4] = 'Site width';
|
|
$text[5] = 'Rounding of corners';
|
|
$text[6] = 'Shadow on site edges';
|
|
$text[7] = 'No margin above and below site';
|
|
$text[8] = 'Colors';
|
|
$text[9] = 'Horizontal slider sets transparency level';
|
|
$text[10] = 'Background';
|
|
$text[11] = 'Text';
|
|
$text[12] = 'Title';
|
|
$text[13] = 'Links';
|
|
$text[14] = 'Color visible in the absence of an image';
|
|
$text[15] = 'Background of blocks';
|
|
$text[16] = 'Block border';
|
|
$text[17] = 'Block corner rounding';
|
|
$text[18] = 'Shadow on block edges';
|
|
$text[19] = 'Block title background';
|
|
$text[20] = 'Buttons';
|
|
$text[21] = 'Title';
|
|
$text[22] = 'Subtitle';
|
|
$text[23] = 'Button';
|
|
$text[24] = 'Block';
|
|
$text[25] = 'Text formatting';
|
|
$text[26] = 'Font';
|
|
$text[27] = 'Style';
|
|
$text[28] = 'Character case';
|
|
$text[29] = 'Size';
|
|
$text[30] = 'Reference size for the site. The font sizes of the banner, menu and footer are proportional to this size';
|
|
$text[31] = 'Title formatting';
|
|
$siteWidths = $module::$siteWidths_en;
|
|
$radius = $module::$radius_en;
|
|
$shadows = $module::$shadows_en;
|
|
$blockShadows = $module::$blockShadows_en;
|
|
$fontWeights = $module::$fontWeights_en;
|
|
$textTransforms = $module::$textTransforms_en;
|
|
break;
|
|
}
|
|
?>
|
|
<?php echo template::formOpen('themeSiteForm'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('themeSiteBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . 'theme',
|
|
'ico' => 'left',
|
|
'value' => $text[0]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::button('themeSiteHelp', [
|
|
'href' => 'https://doc.deltacms.fr/personnalisation-du-site',
|
|
'target' => '_blank',
|
|
'ico' => 'help',
|
|
'value' => $text[1],
|
|
'class' => 'buttonHelp'
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset6">
|
|
<?php echo template::submit('themeSiteSubmit',[
|
|
'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="col4">
|
|
<?php echo template::select('themeSiteWidth', $siteWidths, [
|
|
'label' => $text[4],
|
|
'selected' => $this->getData(['theme', 'site', 'width'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('themeSiteRadius', $radius, [
|
|
'label' => $text[5],
|
|
'selected' => $this->getData(['theme', 'site', 'radius'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('themeSiteShadow', $shadows, [
|
|
'label' => $text[6],
|
|
'selected' => $this->getData(['theme', 'site', 'shadow'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::checkbox('themeSiteMargin',true, $text[7], [
|
|
'checked' => $this->getData(['theme', 'site', 'margin'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[8]; ?></h4>
|
|
<div class="row">
|
|
<div class="col8">
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::text('themeSiteBackgroundColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[9],
|
|
'label' => $text[10],
|
|
'value' => $this->getData(['theme', 'site', 'backgroundColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::text('themeTextTextColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[9],
|
|
'label' => $text[11],
|
|
'value' => $this->getData(['theme', 'text', 'textColor'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::text('themeTitleTextColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[9],
|
|
'label' => $text[12],
|
|
'value' => $this->getData(['theme', 'title', 'textColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::text('themeTextLinkColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[9],
|
|
'label' => $text[13],
|
|
'value' => $this->getData(['theme', 'text', 'linkColor'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::text('themeBlockBackgroundColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[14],
|
|
'label' => $text[15],
|
|
'value' => $this->getData(['theme', 'block', 'backgroundColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::text('themeBlockBorderColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[14],
|
|
'label' => $text[16],
|
|
'value' => $this->getData(['theme', 'block', 'borderColor'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<!-- Plus -->
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::select('themeBlockBorderRadius', $radius, [
|
|
'label' => $text[17],
|
|
'selected' => $this->getData(['theme', 'block', 'blockBorderRadius'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('themeBlockBorderShadow', $blockShadows, [
|
|
'label' => $text[18],
|
|
'selected' => $this->getData(['theme', 'block', 'blockBorderShadow'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::text('themeBlockBackgroundTitleColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[14],
|
|
'label' => $text[19],
|
|
'value' => $this->getData(['theme', 'block', 'backgroundTitleColor'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::text('themeButtonBackgroundColor', [
|
|
'class' => 'colorPicker',
|
|
'help' => $text[9],
|
|
'label' => $text[20],
|
|
'value' => $this->getData(['theme', 'button', 'backgroundColor'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<!-- Fin -->
|
|
</div>
|
|
<div class="col4 bodybackground">
|
|
<div class="bgPreview">
|
|
<div class="row">
|
|
<div class="col6">
|
|
<h1 class="headerPreview"><?php echo $text[21]; ?></h1>
|
|
<h2 class="headerPreview"><?php echo $text[22]; ?></h2>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::button('themeSiteSubmitButtonPreview', [
|
|
'class' => 'buttonSubmitPreview',
|
|
'value' => $text[23]
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block preview">
|
|
<h4 class="preview"><?php echo $text[24]; ?></h4> <p class="textPreview">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
<p><a href="#" class="urlPreview">Lorem ipsum dolor sit amet.</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<div class="block">
|
|
<h4><?php echo $text[25]; ?></h4>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::select('themeTextFont', $module::$fonts, [
|
|
'label' => $text[26],
|
|
'selected' => $this->getData(['theme', 'text', 'font']),
|
|
'fonts' => true
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::select('themeTextFontSize', $module::$siteFontSizes, [
|
|
'label' => $text[29],
|
|
'help' => $text[30],
|
|
'selected' => $this->getData(['theme', 'text', 'fontSize'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col6">
|
|
<div class="block">
|
|
<h4><?php echo $text[31]; ?></h4>
|
|
<div class="row">
|
|
<div class="col4">
|
|
<?php echo template::select('themeTitleFont', $module::$fonts, [
|
|
'label' => $text[26],
|
|
'selected' => $this->getData(['theme', 'title', 'font']),
|
|
'fonts' => true
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('themeTitleFontWeight', $fontWeights, [
|
|
'label' => $text[27],
|
|
'selected' => $this->getData(['theme', 'title', 'fontWeight'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('themeTitleTextTransform', $textTransforms, [
|
|
'label' => $text[28],
|
|
'selected' => $this->getData(['theme', 'title', 'textTransform'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|