Bug nom de variable

This commit is contained in:
fredtempez 2021-11-15 08:12:43 +01:00
parent eccb64356a
commit 21c1535343
4 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ class theme extends common {
'Ubuntu' => 'Ubuntu',
'Vollkorn' => 'Vollkorn'
];
public static $widths = [
public static $containerWidths = [
'container' => 'Limitée au site',
'none' => 'Etendue sur la page'
];
@ -229,7 +229,7 @@ class theme extends common {
'uppercase' => 'Majuscules',
'capitalize' => 'Majuscule à chaque mot'
];
public static $headerMenuWidths = [
public static $siteWidths = [
'750px' => 'Petite (750 pixels)',
'960px' => 'Moyenne (960 pixels)',
'1170px' => 'Grande (1170 pixels)',

View File

@ -63,7 +63,7 @@
</div>
</div>
<div class="col4">
<?php echo template::select('themeHeaderWidth', $module::$widths, [
<?php echo template::select('themeHeaderWidth', $module::$containerWidths, [
'label' => 'Largeur',
'selected' => $this->getData(['theme', 'header', 'width'])
]); ?>

View File

@ -41,7 +41,7 @@
?>
</div>
<div class="col6">
<?php echo template::select('themeMenuWidth', $module::$widths, [
<?php echo template::select('themeMenuWidth', $module::$containerWidths, [
'label' => 'Largeur',
'selected' => $this->getData(['theme', 'menu', 'width'])
]); ?>

View File

@ -27,7 +27,7 @@
<h4>Paramètres</h4>
<div class="row">
<div class="col4">
<?php echo template::select('themeSiteWidth', $module::$widths, [
<?php echo template::select('themeSiteWidth', $module::$siteWidths, [
'label' => 'Largeur du site',
'selected' => $this->getData(['theme', 'site', 'width'])
]); ?>