forked from ZwiiCMS-Team/ZwiiCMS
10502 Erreur de marge
This commit is contained in:
parent
e54edf6fe1
commit
52b10d1382
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## version 10.5.02
|
||||||
|
- Correction :
|
||||||
|
- Erreur de positionnement de marge dans le thème du site.
|
||||||
|
|
||||||
## version 10.5.01
|
## version 10.5.01
|
||||||
- Modifications :
|
- Modifications :
|
||||||
- Rechargement du fichier de style common.css et du jeu d'icônes du système après une mise à jour.
|
- Rechargement du fichier de style common.css et du jeu d'icônes du système après une mise à jour.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
# ZwiiCMS 10.5.01
|
# ZwiiCMS 10.5.02
|
||||||
|
|
||||||
Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.
|
Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ class common {
|
|||||||
const ACCESS_TIMER = 1800;
|
const ACCESS_TIMER = 1800;
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.5.01';
|
const ZWII_VERSION = '10.5.02';
|
||||||
const ZWII_UPDATE_CHANNEL = "v10";
|
const ZWII_UPDATE_CHANNEL = "v10";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
@ -1577,9 +1577,13 @@ class common {
|
|||||||
$this->setData(['core', 'dataVersion', 10400]);
|
$this->setData(['core', 'dataVersion', 10400]);
|
||||||
|
|
||||||
}
|
}
|
||||||
// Version 10.4.05
|
// Version 10.5.02
|
||||||
if ($this->getData(['core', 'dataVersion']) < 10405) {
|
if ($this->getData(['core', 'dataVersion']) < 10502) {
|
||||||
$this->setData(['core', 'dataVersion', 10405]);
|
// Forcer la régénération du thème
|
||||||
|
if (file_exists(self::DATA_DIR.'theme.css')) {
|
||||||
|
unlink (self::DATA_DIR.'theme.css');
|
||||||
|
}
|
||||||
|
$this->setData(['core', 'dataVersion', 10502]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1706,7 +1710,7 @@ class core extends common {
|
|||||||
$marginBottomLarge = $margin;
|
$marginBottomLarge = $margin;
|
||||||
}
|
}
|
||||||
$css .= $this->getData(['theme', 'site', 'width']) === '100%'
|
$css .= $this->getData(['theme', 'site', 'width']) === '100%'
|
||||||
? '@media (min-width: 769px) {#site{margin:0 auto 0 ' . $marginBottomLarge . ' !important;}}@media (max-width: 768px) {#site{margin:0 auto 0 ' . $marginBottomSmall . ' !important;}}#site.light{margin:5% auto !important;} body{margin:0 auto !important;} #bar{margin:0 auto !important;} body > header{margin:0 auto !important;} body > nav {margin: 0 auto !important;} body > footer {margin:0 auto !important;}'
|
? '@media (min-width: 769px) {#site{margin:0 auto ' . $marginBottomLarge . ' 0 !important;}}@media (max-width: 768px) {#site{margin:0 auto ' . $marginBottomSmall . ' 0 !important;}}#site.light{margin:5% auto !important;} body{margin:0 auto !important;} #bar{margin:0 auto !important;} body > header{margin:0 auto !important;} body > nav {margin: 0 auto !important;} body > footer {margin:0 auto !important;}'
|
||||||
: '@media (min-width: 769px) {#site{margin: ' . $margin . ' auto ' . $marginBottomLarge . ' auto !important;}}@media (max-width: 768px) {#site{margin: ' . $margin . ' auto ' . $marginBottomSmall . ' auto !important;}}#site.light{margin: 5% auto !important;} body{margin:0px 10px;} #bar{margin: 0 -10px;} body > header{margin: 0 -10px;} body > nav {margin: 0 -10px;} body > footer {margin: 0 -10px;} ';
|
: '@media (min-width: 769px) {#site{margin: ' . $margin . ' auto ' . $marginBottomLarge . ' auto !important;}}@media (max-width: 768px) {#site{margin: ' . $margin . ' auto ' . $marginBottomSmall . ' auto !important;}}#site.light{margin: 5% auto !important;} body{margin:0px 10px;} #bar{margin: 0 -10px;} body > header{margin: 0 -10px;} body > nav {margin: 0 -10px;} body > footer {margin: 0 -10px;} ';
|
||||||
$css .= $this->getData(['theme', 'site', 'width']) === '750px'
|
$css .= $this->getData(['theme', 'site', 'width']) === '750px'
|
||||||
? '.button, button{font-size:0.8em;}'
|
? '.button, button{font-size:0.8em;}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user