Merge branch '12300' into 12400

This commit is contained in:
Fred Tempez 2023-03-07 14:55:18 +01:00
commit e21933cd93
6 changed files with 409 additions and 347 deletions

View File

@ -742,6 +742,11 @@ class core extends common
'style' => file_get_contents($stylePath) 'style' => file_get_contents($stylePath)
]); ]);
} }
if ($output['style']) {
$this->addOutput([
'style' => file_get_contents($output['style'])
]);
}
// JS // JS
$scriptPath = $modulePath . self::MODULE_DIR . $moduleId . '/view/' . $output['view'] . '/' . $output['view'] . '.js.php'; $scriptPath = $modulePath . self::MODULE_DIR . $moduleId . '/view/' . $output['view'] . '/' . $output['view'] . '.js.php';
@ -890,26 +895,11 @@ class core extends common
break; break;
// Layout allégé // Layout allégé
case self::DISPLAY_LAYOUT_LIGHT: case self::DISPLAY_LAYOUT_LIGHT:
ob_start();
require 'core/layout/light.php'; require 'core/layout/light.php';
// Supprime les espaces, les sauts de ligne, les tabulations et autres caractères inutiles
$content = preg_replace('/\s+/u', ' ', ob_get_clean());
// Convertit la chaîne en UTF-8 pour conserver les caractères accentués
$content = mb_convert_encoding($content, 'UTF-8', 'UTF-8');
echo $content;
break; break;
// Layout principal // Layout principal
case self::DISPLAY_LAYOUT_MAIN: case self::DISPLAY_LAYOUT_MAIN:
ob_start();
require 'core/layout/main.php'; require 'core/layout/main.php';
// Supprime les espaces, les sauts de ligne, les tabulations et autres caractères inutiles
$content = preg_replace('/\s+/u', ' ', ob_get_clean());
// Convertit la chaîne en UTF-8 pour conserver les caractères accentués
$content = mb_convert_encoding($content, 'UTF-8', 'UTF-8');
echo $content;
break; break;
} }
} }

View File

@ -918,7 +918,9 @@ class init extends common
'directory' => self::FILE_DIR . 'source/galerie/landscape', 'directory' => self::FILE_DIR . 'source/galerie/landscape',
'homePicture' => 'iceberg.jpg', 'homePicture' => 'iceberg.jpg',
'sort' => 'SORT_ASC', 'sort' => 'SORT_ASC',
'position' => 1 'position' => 1,
'showPageContent' => false,
'fullScreen' => false
], ],
'legend' => [ 'legend' => [
'desertjpg' => 'Un désert', 'desertjpg' => 'Un désert',
@ -937,7 +939,9 @@ class init extends common
'directory' => self::FILE_DIR . 'source/galerie/space', 'directory' => self::FILE_DIR . 'source/galerie/space',
'homePicture' => 'nebula.jpg', 'homePicture' => 'nebula.jpg',
'sort' => 'SORT_ASC', 'sort' => 'SORT_ASC',
'position' => 2 'position' => 2,
'showPageContent' => false,
'fullScreen' => false
], ],
'legend' => [ 'legend' => [
'earthjpg' => 'La Terre et la Lune', 'earthjpg' => 'La Terre et la Lune',

View File

@ -1,5 +1,6 @@
# Version 3.8 # Version 3.8
- Version compare null, dataversion not initialize - Version compare null, dataversion not initialize
- Bug de positionnement des boutons de retour
# Version 3.7 # Version 3.7
- Multilinguisme - Multilinguisme
# Version 3.61 # Version 3.61

File diff suppressed because it is too large Load Diff

View File

@ -12,10 +12,3 @@
* @link http://zwiicms.fr/ * @link http://zwiicms.fr/
*/ */
#topBackPosition.bottom {
display: none;
}
#bottomBackPosition.top{
display: none;
}

View File

@ -1,8 +1,6 @@
<div class="row <?php echo $module::$config['backAlign'] . ' ' . $module::$config['backPositionTop'];?>">
<div id="topBackPosition" class="row <?php echo $module::$config['backPosition'] . ' ' . $module::$config['backAlign'];?>">
<div class="col1"> <div class="col1">
<?php echo template::button('galleryGalleryBack', [ <?php echo template::button('galleryGalleryBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0), 'href' => helper::baseUrl() . $this->getUrl(0),
'value' => template::ico('left') 'value' => template::ico('left')
]); ?> ]); ?>
@ -25,7 +23,7 @@
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<div id="bottomBackPosition" class="row <?php echo $module::$config['backPosition'] . ' ' . $module::$config['backAlign'];?>"> <div class="row <?php echo $module::$config['backAlign'] . ' ' . $module::$config['backPositionBottom'];?>">
<div class="col1"> <div class="col1">
<?php echo template::button('galleryGalleryBack', [ <?php echo template::button('galleryGalleryBack', [
'href' => helper::baseUrl() . $this->getUrl(0), 'href' => helper::baseUrl() . $this->getUrl(0),