forked from ZwiiCMS-Team/ZwiiCMS
données des blocs dans config plutôt que theme
This commit is contained in:
parent
e0e683f890
commit
d90bfd0253
@ -56,7 +56,9 @@ class common {
|
||||
],
|
||||
'timezone' => 'Europe/Paris',
|
||||
'title' => 'Zwii, votre site en quelques clics !',
|
||||
'itemsperPage' => 10
|
||||
'itemsperPage' => 10,
|
||||
'contenLeft' => '',
|
||||
'contentRight' => ''
|
||||
],
|
||||
'core' => [
|
||||
'dataVersion' => 0,
|
||||
@ -996,8 +998,8 @@ class common {
|
||||
// Version 9.0.0
|
||||
if($this->getData(['core', 'dataVersion']) < 900) {
|
||||
$this->setData(['theme', 'site', 'blocks','100']);
|
||||
$this->setData(['theme', 'site', 'contentLeft','']);
|
||||
$this->setData(['theme', 'site', 'contentRight','']);
|
||||
$this->setData(['config', 'contentLeft','']);
|
||||
$this->setData(['config', 'contentRight','']);
|
||||
$this->setData(['core', 'dataVersion', 900]);
|
||||
$this->SaveData();
|
||||
}
|
||||
|
@ -435,9 +435,10 @@ class theme extends common {
|
||||
'shadow' => $this->getInput('themeSiteShadow'),
|
||||
'width' => $this->getInput('themeSiteWidth'),
|
||||
'blocks' => $this->getInput('themeSiteBlocks'),
|
||||
'contentLeft' => (empty($this->getInput('themeSiteContentleft', null)) ? "<p></p>" : $this->getInput('themeSiteContentleft', null)),
|
||||
'contentRight' => (empty($this->getInput('themeSiteContentright', null)) ? "<p></p>" : $this->getInput('themeSiteContentright', null))
|
||||
|
||||
]]);
|
||||
$this->setData(['config', [
|
||||
'contentLeft' => (empty($this->getInput('configContentleft', null)) ? "<p></p>" : $this->getInput('configContentleft', null)),
|
||||
'contentRight' => (empty($this->getInput('configContentright', null)) ? "<p></p>" : $this->getInput('configContentright', null))
|
||||
]]);
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
|
@ -144,15 +144,15 @@
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class="col6">
|
||||
<?php echo template::textarea('themeSiteContentright', [
|
||||
<?php echo template::textarea('configContentright', [
|
||||
'class' => 'editorWysiwyg',
|
||||
'value' => $this->getData(['theme', 'site', 'contentRight'])
|
||||
'value' => $this->getData(['config', 'contentRight'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::textarea('themeSiteContentleft', [
|
||||
<?php echo template::textarea('configContentleft', [
|
||||
'class' => 'editorWysiwyg',
|
||||
'value' => $this->getData(['theme', 'site', 'contentLeft'])
|
||||
'value' => $this->getData(['config', 'contentLeft'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user