forked from ZwiiCMS-Team/ZwiiCMS
Fix css if page with module WIP
This commit is contained in:
parent
36692b8f35
commit
9544c3305d
@ -3003,12 +3003,13 @@ class core extends common
|
|||||||
)
|
)
|
||||||
and $access
|
and $access
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'content' => $this->getPage($this->getUrl(0), self::$i18nContent) .
|
'content' => $this->getPage($this->getUrl(0), self::$i18nContent) .
|
||||||
// Concatène avec les paramètres avancés.
|
($this->getData(['page', $this->getUrl(0), 'css']) === null ? '' : $this->getData(['page', $this->getUrl(0), 'css']) ).
|
||||||
$this->getData(['page', $this->getUrl(0), 'css']) .
|
($this->getData(['page', $this->getUrl(0), 'js']) === null ? '' : $this->getData(['page', $this->getUrl(0), 'js']) ),
|
||||||
$this->getData(['page', $this->getUrl(0), 'js']),
|
|
||||||
'metaDescription' => $this->getData(['page', $this->getUrl(0), 'metaDescription']),
|
'metaDescription' => $this->getData(['page', $this->getUrl(0), 'metaDescription']),
|
||||||
'metaTitle' => $this->getData(['page', $this->getUrl(0), 'metaTitle']),
|
'metaTitle' => $this->getData(['page', $this->getUrl(0), 'metaTitle']),
|
||||||
'typeMenu' => $this->getData(['page', $this->getUrl(0), 'typeMenu']),
|
'typeMenu' => $this->getData(['page', $this->getUrl(0), 'typeMenu']),
|
||||||
@ -3016,15 +3017,16 @@ class core extends common
|
|||||||
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
||||||
'contentRight' => $this->getData(['page', $this->getUrl(0), 'barRight'])
|
'contentRight' => $this->getData(['page', $this->getUrl(0), 'barRight'])
|
||||||
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barRight']), self::$i18nContent) .
|
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barRight']), self::$i18nContent) .
|
||||||
$this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barRight']), 'css']) .
|
($this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barRight']), 'css']) == null ?'' : $this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barRight']), 'css'])) .
|
||||||
$this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barRight']), 'js'])
|
($this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barRight']), 'js']) === null ? '' : $this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barRight']), 'js']))
|
||||||
: '',
|
: '',
|
||||||
'contentLeft' => $this->getData(['page', $this->getUrl(0), 'barLeft'])
|
'contentLeft' => $this->getData(['page', $this->getUrl(0), 'barLeft'])
|
||||||
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barLeft']), self::$i18nContent) .
|
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barLeft']), self::$i18nContent) .
|
||||||
$this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barLeft']), 'css']) .
|
($this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barLeft']), 'css']) === null ? '' : $this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barLeft']), 'css'])) .
|
||||||
$this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barLeft']), 'js'])
|
($this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barLeft']), 'js']) === null ? '' : $this->getData(['page', $this->getData(['page', $this->getUrl(0), 'barLeft']), 'js']))
|
||||||
: ''
|
: ''
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
// Importe le module
|
// Importe le module
|
||||||
else {
|
else {
|
||||||
@ -3043,13 +3045,15 @@ class core extends common
|
|||||||
'iconUrl' => $this->getData(['page', $this->getUrl(0), 'iconUrl']),
|
'iconUrl' => $this->getData(['page', $this->getUrl(0), 'iconUrl']),
|
||||||
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
'disable' => $this->getData(['page', $this->getUrl(0), 'disable']),
|
||||||
'contentRight' => $this->getData(['page', $this->getUrl(0), 'barRight'])
|
'contentRight' => $this->getData(['page', $this->getUrl(0), 'barRight'])
|
||||||
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barRight']), self::$i18nContent)
|
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barRight']), self::$i18nContent)
|
||||||
: '',
|
: '',
|
||||||
'contentLeft' => $this->getData(['page', $this->getUrl(0), 'barLeft'])
|
'contentLeft' => $this->getData(['page', $this->getUrl(0), 'barLeft'])
|
||||||
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barLeft']), self::$i18nContent)
|
? $this->getPage($this->getData(['page', $this->getUrl(0), 'barLeft']), self::$i18nContent)
|
||||||
: ''
|
: ''
|
||||||
]);
|
]);
|
||||||
$pageContent = $this->getPage($this->getUrl(0), self::$i18nContent);
|
$pageContent = $this->getPage($this->getUrl(0), self::$i18nContent) .
|
||||||
|
($this->getData(['page', $this->getUrl(0), 'css']) === null ? '' : $this->getData(['page', $this->getUrl(0), 'css']) ).
|
||||||
|
($this->getData(['page', $this->getUrl(0), 'js']) === null ? '' : $this->getData(['page', $this->getUrl(0), 'js']) );
|
||||||
} else {
|
} else {
|
||||||
$moduleId = $this->getUrl(0);
|
$moduleId = $this->getUrl(0);
|
||||||
$pageContent = '';
|
$pageContent = '';
|
||||||
|
@ -563,7 +563,7 @@ class page extends common
|
|||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
if ($this->isPost()) {
|
||||||
// Supprime les balises styles si elles ont été saisies
|
// Supprime les balises styles si elles ont été saisies
|
||||||
$css = $this->getInput('pageCssEditorContent', null);
|
$css = $this->getInput('pageCssEditorContent') === null ? '': $this->getInput('pageCssEditorContent');
|
||||||
// Enregistre le CSS
|
// Enregistre le CSS
|
||||||
$this->setData([
|
$this->setData([
|
||||||
'page', $this->getUrl(2), 'css',
|
'page', $this->getUrl(2), 'css',
|
||||||
@ -594,7 +594,7 @@ class page extends common
|
|||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
if ($this->isPost()) {
|
||||||
// Supprime les balises scripts si elles ont été saisies
|
// Supprime les balises scripts si elles ont été saisies
|
||||||
$js = $this->getInput('pageJsEditorContent', null);
|
$js = $this->getInput('pageJsEditorContent') === null ? '' : $this->getInput('pageJsEditorContent');
|
||||||
// Enregistre le JS
|
// Enregistre le JS
|
||||||
$this->setData([
|
$this->setData([
|
||||||
'page', $this->getUrl(2), 'js',
|
'page', $this->getUrl(2), 'js',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user