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',
|
'timezone' => 'Europe/Paris',
|
||||||
'title' => 'Zwii, votre site en quelques clics !',
|
'title' => 'Zwii, votre site en quelques clics !',
|
||||||
'itemsperPage' => 10
|
'itemsperPage' => 10,
|
||||||
|
'contenLeft' => '',
|
||||||
|
'contentRight' => ''
|
||||||
],
|
],
|
||||||
'core' => [
|
'core' => [
|
||||||
'dataVersion' => 0,
|
'dataVersion' => 0,
|
||||||
@ -996,8 +998,8 @@ class common {
|
|||||||
// Version 9.0.0
|
// Version 9.0.0
|
||||||
if($this->getData(['core', 'dataVersion']) < 900) {
|
if($this->getData(['core', 'dataVersion']) < 900) {
|
||||||
$this->setData(['theme', 'site', 'blocks','100']);
|
$this->setData(['theme', 'site', 'blocks','100']);
|
||||||
$this->setData(['theme', 'site', 'contentLeft','']);
|
$this->setData(['config', 'contentLeft','']);
|
||||||
$this->setData(['theme', 'site', 'contentRight','']);
|
$this->setData(['config', 'contentRight','']);
|
||||||
$this->setData(['core', 'dataVersion', 900]);
|
$this->setData(['core', 'dataVersion', 900]);
|
||||||
$this->SaveData();
|
$this->SaveData();
|
||||||
}
|
}
|
||||||
|
@ -435,9 +435,10 @@ class theme extends common {
|
|||||||
'shadow' => $this->getInput('themeSiteShadow'),
|
'shadow' => $this->getInput('themeSiteShadow'),
|
||||||
'width' => $this->getInput('themeSiteWidth'),
|
'width' => $this->getInput('themeSiteWidth'),
|
||||||
'blocks' => $this->getInput('themeSiteBlocks'),
|
'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
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
@ -144,15 +144,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='row'>
|
<div class='row'>
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::textarea('themeSiteContentright', [
|
<?php echo template::textarea('configContentright', [
|
||||||
'class' => 'editorWysiwyg',
|
'class' => 'editorWysiwyg',
|
||||||
'value' => $this->getData(['theme', 'site', 'contentRight'])
|
'value' => $this->getData(['config', 'contentRight'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::textarea('themeSiteContentleft', [
|
<?php echo template::textarea('configContentleft', [
|
||||||
'class' => 'editorWysiwyg',
|
'class' => 'editorWysiwyg',
|
||||||
'value' => $this->getData(['theme', 'site', 'contentLeft'])
|
'value' => $this->getData(['config', 'contentLeft'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user