Browse Source

[9.2.17] Body Image responsive

pull/5/head
Prof Langues 2 years ago
parent
commit
09d9ae219c
  1. 7
      CHANGES.md
  2. 6
      core/module/theme/theme.php
  3. 2
      core/module/theme/view/body/body.php

7
CHANGES.md

@ -1,8 +1,11 @@
# Changelog
## version 9.2.17
- Corretion :
- Affiche le nom du la page plutôt que son id dans le fil d'ariane
- Corretions :
- Affiche le nom du la page plutôt que son id dans le fil d'ariane.
- Petites corrections.
- Modifications :
- Image du fond (body), options responsive cover et contain.
## version 9.2.16
- Optimisation :

6
core/module/theme/theme.php

@ -207,9 +207,11 @@ class theme extends common {
'15px' => '15 pixels',
'16px' => '16 pixels'
];
public static $sizes = [
public static $bodySizes = [
'auto' => 'Automatique',
'100% 100%' => 'Image étirée'
'100% 100%' => 'Image étirée (100% 100%)',
'cover' => 'Responsive (cover)',
'contain' => 'Responsive (contain)'
];
public static $textTransforms = [
'none' => 'Standard',

2
core/module/theme/view/body/body.php

@ -57,7 +57,7 @@
]); ?>
</div>
<div class="col6">
<?php echo template::select('themeBodyImageSize', $module::$sizes, [
<?php echo template::select('themeBodyImageSize', $module::$bodySizes, [
'label' => 'Taille',
'selected' => $this->getData(['theme', 'body', 'imageSize'])
]); ?>

Loading…
Cancel
Save