Merge branch 'master' into download
This commit is contained in:
commit
e6dc5dff75
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## version 10.4.02
|
||||||
|
- Corrections :
|
||||||
|
- Thème : aperçu du site amélioré.
|
||||||
|
- Thème : rétablissement du contrôle de l'import d'une version ancienne d'un thème.
|
||||||
|
- Éditeur de texte : couleur de fond parasite quand une image en arrière-plan est sélectionnée.
|
||||||
|
|
||||||
## version 10.4.01
|
## version 10.4.01
|
||||||
Corrections :
|
Corrections :
|
||||||
- Module form, erreur de syntaxe.
|
- Module form, erreur de syntaxe.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
# ZwiiCMS 10.4.00
|
# ZwiiCMS 10.4.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.4.01';
|
const ZWII_VERSION = '10.4.02';
|
||||||
const ZWII_UPDATE_CHANNEL = "v10";
|
const ZWII_UPDATE_CHANNEL = "v10";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
|
@ -972,8 +972,7 @@ class common {
|
||||||
$db->set($keys[0].'.'.$keys[1].'.'.$keys[2].'.'.$keys[3].'.'.$keys[4].'.'.$keys[5],$keys[6], true);
|
$db->set($keys[0].'.'.$keys[1].'.'.$keys[2].'.'.$keys[3].'.'.$keys[4].'.'.$keys[5],$keys[6], true);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
$db->set($keys[0].'.'.$keys[1].'.'.$keys[2].'.'.$keys[3].'.'.$keys[4].'.'.$keys[5].'.'.$keys[6],$keys[7] );
|
$db->set($keys[0].'.'.$keys[1].'.'.$keys[2].'.'.$keys[3].'.'.$keys[4].'.'.$keys[5].'.'.$keys[6],$keys[7], true );
|
||||||
$db->save();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -1659,15 +1658,18 @@ class core extends common {
|
||||||
} else {
|
} else {
|
||||||
// Pas d'image couleur du body
|
// Pas d'image couleur du body
|
||||||
$css .= 'html{background-color:' . $colors['normal'] . ';}';
|
$css .= 'html{background-color:' . $colors['normal'] . ';}';
|
||||||
|
// Même couleur dans le fond de l'éditeur
|
||||||
|
$css .= 'div.mce-edit-area{background-color:' . $colors['normal'] . ' !important}';
|
||||||
}
|
}
|
||||||
// Icône BacktoTop
|
// Icône BacktoTop
|
||||||
$css .= '#backToTop {background-color:' .$this->getData(['theme', 'body', 'toTopbackgroundColor']). ';color:'.$this->getData(['theme', 'body', 'toTopColor']).';}';
|
$css .= '#backToTop {background-color:' .$this->getData(['theme', 'body', 'toTopbackgroundColor']). ';color:'.$this->getData(['theme', 'body', 'toTopColor']).';}';
|
||||||
// Site
|
// Site
|
||||||
$colors = helper::colorVariants($this->getData(['theme', 'text', 'linkColor']));
|
$colors = helper::colorVariants($this->getData(['theme', 'text', 'linkColor']));
|
||||||
$css .= 'a{color:' . $colors['normal'] . '}';
|
$css .= 'a{color:' . $colors['normal'] . '}';
|
||||||
// Fond TinyMCe
|
// Couleurs de site dans TinyMCe
|
||||||
$css .= 'div.mce-edit-area{background-color:' . $colors['normal'] . ' !important}';
|
$css .= 'div.mce-edit-area{font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'text', 'font'])) . '",sans-serif}';
|
||||||
$css .= 'div.mce-edit-area{background-color:' . $colors['normal'] . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'text', 'font'])) . '",sans-serif}';
|
// Site dans TinyMCE
|
||||||
|
$css .= '.editorWysiwyg {background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';}';
|
||||||
//$css .= 'a:hover:not(.inputFile, button){color:' . $colors['darken'] . '}';
|
//$css .= 'a:hover:not(.inputFile, button){color:' . $colors['darken'] . '}';
|
||||||
$css .= 'body,.row > div{font-size:' . $this->getData(['theme', 'text', 'fontSize']) . '}';
|
$css .= 'body,.row > div{font-size:' . $this->getData(['theme', 'text', 'fontSize']) . '}';
|
||||||
$css .= 'body{color:' . $this->getData(['theme', 'text', 'textColor']) . '}';
|
$css .= 'body{color:' . $this->getData(['theme', 'text', 'textColor']) . '}';
|
||||||
|
@ -1681,7 +1683,6 @@ class core extends common {
|
||||||
$css .= $this->getData(['theme', 'site', 'width']) === '100%' ? '#site.light{margin:5% auto !important;}#site{margin:0 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;}': "#site.light{margin: 5% auto !important;}#site{margin: " . $margin . " 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']) === '100%' ? '#site.light{margin:5% auto !important;}#site{margin:0 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;}': "#site.light{margin: 5% auto !important;}#site{margin: " . $margin . " 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' ? '.button, button{font-size:0.8em;}' : '';
|
$css .= $this->getData(['theme', 'site', 'width']) === '750px' ? '.button, button{font-size:0.8em;}' : '';
|
||||||
$css .= '#site{background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';border-radius:' . $this->getData(['theme', 'site', 'radius']) . ';box-shadow:' . $this->getData(['theme', 'site', 'shadow']) . ' #212223;}';
|
$css .= '#site{background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';border-radius:' . $this->getData(['theme', 'site', 'radius']) . ';box-shadow:' . $this->getData(['theme', 'site', 'shadow']) . ' #212223;}';
|
||||||
$css .= '.editorWysiwyg {background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';}';
|
|
||||||
$colors = helper::colorVariants($this->getData(['theme', 'button', 'backgroundColor']));
|
$colors = helper::colorVariants($this->getData(['theme', 'button', 'backgroundColor']));
|
||||||
$css .= '.speechBubble,.button,.button:hover,button[type=\'submit\'],.pagination a,.pagination a:hover,input[type=\'checkbox\']:checked + label:before,input[type=\'radio\']:checked + label:before,.helpContent{background-color:' . $colors['normal'] . ';color:' . $colors['text'] . '}';
|
$css .= '.speechBubble,.button,.button:hover,button[type=\'submit\'],.pagination a,.pagination a:hover,input[type=\'checkbox\']:checked + label:before,input[type=\'radio\']:checked + label:before,.helpContent{background-color:' . $colors['normal'] . ';color:' . $colors['text'] . '}';
|
||||||
$css .= '.helpButton span{color:' . $colors['normal'] . '}';
|
$css .= '.helpButton span{color:' . $colors['normal'] . '}';
|
||||||
|
|
|
@ -746,7 +746,6 @@ class theme extends common {
|
||||||
foreach ($itemKeys as $key2 => $value) {
|
foreach ($itemKeys as $key2 => $value) {
|
||||||
// Données nulles ou vides instaurer la donnée par défaut
|
// Données nulles ou vides instaurer la donnée par défaut
|
||||||
if ($this->getData(['theme',$key1,$key2]) === NULL
|
if ($this->getData(['theme',$key1,$key2]) === NULL
|
||||||
OR empty($this->getData(['theme',$key1,$key2]) )
|
|
||||||
) {
|
) {
|
||||||
$this->setData(['theme',$key1,$key2,$value]);
|
$this->setData(['theme',$key1,$key2,$value]);
|
||||||
}
|
}
|
||||||
|
@ -761,7 +760,6 @@ class theme extends common {
|
||||||
foreach ($itemKeys as $key1 => $value) {
|
foreach ($itemKeys as $key1 => $value) {
|
||||||
// Données nulles ou vides instaurer la donnée par défaut
|
// Données nulles ou vides instaurer la donnée par défaut
|
||||||
if ($this->getData(['admin',$key1]) === NULL
|
if ($this->getData(['admin',$key1]) === NULL
|
||||||
OR empty($this->getData(['admin',$key1]) )
|
|
||||||
) {
|
) {
|
||||||
$this->setData(['admin',$key1,$value]);
|
$this->setData(['admin',$key1,$value]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,9 +92,20 @@ function previewDOM() {
|
||||||
//css += "#site{background-color:" + $("#themeSiteBackgroundColor").val() + ";border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
|
//css += "#site{background-color:" + $("#themeSiteBackgroundColor").val() + ";border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
|
||||||
|
|
||||||
css += "#site{border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
|
css += "#site{border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
|
||||||
|
|
||||||
|
// Couleur ou image de fond
|
||||||
var backgroundImage = <?php echo json_encode(helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme','body','image'])); ?>;
|
var backgroundImage = <?php echo json_encode(helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme','body','image'])); ?>;
|
||||||
|
console.log(backgroundImage);
|
||||||
var backgroundcolor = <?php echo json_encode($this->getdata(['theme','body','backgroundColor'])); ?>;
|
var backgroundcolor = <?php echo json_encode($this->getdata(['theme','body','backgroundColor'])); ?>;
|
||||||
css += "div.bodybackground{background-color:" + backgroundcolor + "; background-image: url(" + backgroundImage + ");background-size:cover;}";
|
if(backgroundImage) {
|
||||||
|
css += "div.bodybackground{background-image:url(" + backgroundImage + ");background-repeat:" + $("#themeBodyImageRepeat").val() + ";background-position:" + $("#themeBodyImagePosition").val() + ";background-attachment:" + $("#themeBodyImageAttachment").val() + ";background-size:" + $("#themeBodyImageSize").val() + "}";
|
||||||
|
css += "div.bodybackground{background-color:rgba(0,0,0,0);}";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
css += "div.bodybackground{background-image:none}";
|
||||||
|
}
|
||||||
|
css += '#backToTop {background-color:' + backgroundcolor + ';color:' + $("#themeBodyToTopColor").val() + ';}';
|
||||||
|
|
||||||
css += "div.bgPreview{padding: 5px;background-color:" + $("#themeSiteBackgroundColor").val() + ";}";
|
css += "div.bgPreview{padding: 5px;background-color:" + $("#themeSiteBackgroundColor").val() + ";}";
|
||||||
|
|
||||||
// Les blocs
|
// Les blocs
|
||||||
|
|
Loading…
Reference in New Issue