Deltacms/module/gallery/view/theme/theme.php

220 lines
9.0 KiB
PHP
Raw Normal View History

2022-03-18 07:50:13 +01:00
<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Enregistrer';
$text[2] = 'Vignettes';
$text[3] = 'Les paramètres du thème sont communs aux modules du même type.';
$text[4] = 'Largeur';
$text[5] = 'Hauteur';
$text[6] = 'Alignement';
$text[7] = 'Marge';
$text[8] = 'Bordure';
$text[9] = 'Le curseur horizontal règle le niveau de transparence.';
$text[10] = 'Couleur de la bordure';
$text[11] = 'Arrondi des angles';
$text[12] = 'Ombre';
$text[14] = 'Couleur de l\'ombre';
$text[15] = 'Opacité au survol';
$text[17] = 'Légendes';
$text[19] = 'Texte';
$text[21] = 'Arrière-plan';
$text[22] = 'Hauteur';
$text[23] = 'Alignement';
$text[24] = 'Version n°';
$galleryThemeSizeWidth =$module::$galleryThemeSizeWidth;
$galleryThemeSizeHeight = $module::$galleryThemeSizeHeight;
$galleryThemeFlexAlign = $module::$galleryThemeFlexAlign;
$galleryThemeMargin = $module::$galleryThemeMargin;
$galleryThemeBorder = $module::$galleryThemeBorder;
$galleryThemeRadius = $module::$galleryThemeRadius;
$galleryThemeShadows = $module::$galleryThemeShadows;
$galleryThemeOpacity = $module::$galleryThemeOpacity;
$galleryThemeLegendHeight = $module::$galleryThemeLegendHeight;
$galleryThemeAlign = $module::$galleryThemeAlign;
break;
case 'en' :
$text[0] = 'Back';
$text[1] = 'Save';
$text[2] = 'Thumbnails';
$text[3] = 'Theme settings are common to modules of the same type';
$text[4] = 'Width';
$text[5] = 'Height';
$text[6] = 'Alignment';
$text[7] = 'Margin';
$text[8] = 'Border';
$text[9] = 'Horizontal cursor sets transparency level';
$text[10] = 'Border color';
$text[11] = 'Rounding of corners';
$text[12] = 'Shadow';
$text[14] = 'Shadow colour';
$text[15] = 'Hover opacity';
$text[17] = 'Legends';
$text[19] = 'Text';
$text[21] = 'Background';
$text[22] = 'Height';
$text[23] = 'Alignment';
$text[24] = 'Version No.';
$galleryThemeSizeWidth =$module::$galleryThemeSizeWidth_en;
$galleryThemeSizeHeight = $module::$galleryThemeSizeHeight_en;
$galleryThemeFlexAlign = $module::$galleryThemeFlexAlign_en;
$galleryThemeMargin = $module::$galleryThemeMargin_en;
$galleryThemeBorder = $module::$galleryThemeBorder_en;
$galleryThemeRadius = $module::$galleryThemeRadius_en;
$galleryThemeShadows = $module::$galleryThemeShadows_en;
$galleryThemeOpacity = $module::$galleryThemeOpacity_en;
$galleryThemeLegendHeight = $module::$galleryThemeLegendHeight_en;
$galleryThemeAlign = $module::$galleryThemeAlign_en;
break;
}
?>
2022-01-31 09:10:49 +01:00
<?php echo template::formOpen('galleryThemeForm'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('galleryThemeBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
2022-03-18 07:50:13 +01:00
'value' => $text[0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col2 offset8">
2022-03-18 07:50:13 +01:00
<?php echo template::submit('galleryThemeBack',[
'value' => $text[1]
]); ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-18 07:50:13 +01:00
<h4>
2022-01-31 09:10:49 +01:00
<?php
2022-03-18 07:50:13 +01:00
echo $text[2]; echo template::help($text[3]);
2022-01-31 09:10:49 +01:00
?>
</h4>
<div class="row">
<div class="col3">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbWidth', $galleryThemeSizeWidth, [
'label' => $text[4],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbWidth'])
]); ?>
</div>
<div class="col3">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbHeight', $galleryThemeSizeHeight, [
'label' => $text[5],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbHeight'])
]); ?>
</div>
<div class="col4">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbAlign', $galleryThemeFlexAlign, [
'label' => $text[6],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbAlign'])
]); ?>
</div>
<div class="col2">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbMargin', $galleryThemeMargin, [
'label' => $text[7],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbMargin'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbBorder', $galleryThemeBorder, [
'label' => $text[8],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbBorder'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('galleryThemeThumbBorderColor', [
'class' => 'colorPicker',
2022-03-18 07:50:13 +01:00
'help' => $text[9],
'label' => $text[10],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'theme','thumbBorderColor'])
]); ?>
</div>
<div class="col4">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbRadius', $galleryThemeRadius, [
'label' => $text[11],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbRadius'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbShadows', $galleryThemeShadows, [
'label' => $text[12],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbShadows'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('galleryThemeThumbShadowsColor', [
'class' => 'colorPicker',
2022-03-18 07:50:13 +01:00
'help' => $text[9],
'label' => $text[14],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'theme','thumbShadowsColor'])
]); ?>
</div>
<div class="col4">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeThumbOpacity', $galleryThemeOpacity, [
'label' => $text[15],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbOpacity'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-03-18 07:50:13 +01:00
<h4>
2022-01-31 09:10:49 +01:00
<?php
2022-03-18 07:50:13 +01:00
echo $text[17];
echo template::help($text[3]);
2022-01-31 09:10:49 +01:00
?>
</h4>
<div class="row">
<div class="col3">
<?php echo template::text('galleryThemeLegendTextColor', [
'class' => 'colorPicker',
2022-03-18 07:50:13 +01:00
'help' => $text[9],
'label' => $text[19],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'theme','legendTextColor'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('galleryThemeLegendBgColor', [
'class' => 'colorPicker',
2022-03-18 07:50:13 +01:00
'help' => $text[9],
'label' => $text[21],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'theme','legendBgColor'])
]); ?>
</div>
<div class="col3">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeLegendHeight', $galleryThemeLegendHeight, [
'label' => $text[22],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','legendHeight'])
]); ?>
</div>
<div class="col3">
2022-03-18 07:50:13 +01:00
<?php echo template::select('galleryThemeLegendAlign', $galleryThemeAlign, [
'label' => $text[23],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','legendAlign'])
]); ?>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
2022-03-18 07:50:13 +01:00
<div class="moduleVersion"><?php echo $text[24]; echo $module::VERSION; ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
</div>