11.2.00.5 aperçu contenu perso en-tête + aspect bloc zone de saisie
This commit is contained in:
parent
863169d32b
commit
f9109bb4a1
@ -45,7 +45,7 @@ class common {
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
||||
const ZWII_VERSION = '11.2.00.4';
|
||||
const ZWII_VERSION = '11.2.00.5';
|
||||
const ZWII_UPDATE_CHANNEL = "test";
|
||||
|
||||
public static $actions = [];
|
||||
|
@ -457,7 +457,7 @@ class theme extends common {
|
||||
'imageContainer' => $this->getInput('themeHeaderImageContainer'),
|
||||
'tinyHidden' => $this->getInput('themeHeaderTinyHidden', helper::FILTER_BOOLEAN),
|
||||
'feature' => $this->getInput('themeHeaderFeature'),
|
||||
'featureContent' => $this->getInput('themeHeaderContent', null)
|
||||
'featureContent' => $this->getInput('themeHeaderText', null)
|
||||
]]);
|
||||
// Modification de la position du menu selon la position de la bannière
|
||||
if ( $this->getData(['theme','header','position']) == 'site' )
|
||||
|
@ -15,4 +15,15 @@
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
||||
*/
|
||||
|
||||
/**
|
||||
* Titre zone TinyMCE
|
||||
*/
|
||||
.titleWysiwygContent {
|
||||
font-family: "Oswald",sans-serif;
|
||||
font-weight: normal;
|
||||
text-transform: none;
|
||||
font-size: 1.0em;
|
||||
margin: 10px;
|
||||
}
|
@ -140,14 +140,11 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>Contenu personnalisé</h4>
|
||||
<?php echo template::textarea('themeFooterText', [
|
||||
'label' => '<strong>Texte ou HTML</strong>',
|
||||
'value' => $this->getData(['theme', 'footer', 'text']),
|
||||
'class' => 'editorWysiwyg'
|
||||
]); ?>
|
||||
</div>
|
||||
<?php echo template::textarea('themeFooterText', [
|
||||
'label' => '<div class="titleWysiwygContent">Contenu personnalisé</div>',
|
||||
'value' => $this->getData(['theme', 'footer', 'text']),
|
||||
'class' => 'editorWysiwyg'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -14,4 +14,15 @@
|
||||
|
||||
/** NE PAS EFFACER
|
||||
* admin.css
|
||||
*/
|
||||
*/
|
||||
|
||||
/**
|
||||
* Titre zone TinyMCE
|
||||
*/
|
||||
.titleWysiwygContent {
|
||||
font-family: "Oswald",sans-serif;
|
||||
font-weight: normal;
|
||||
text-transform: none;
|
||||
font-size: 1.0em;
|
||||
margin: 10px;
|
||||
}
|
@ -205,15 +205,13 @@
|
||||
</div>
|
||||
<div class="row featureContainer">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
<h4>Contenu personnalisé</h4>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::textarea('themeHeaderContent', [
|
||||
'class' => 'editorWysiwyg',
|
||||
'value' => $this->getData(['theme', 'header', 'featureContent'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::textarea('themeHeaderText', [
|
||||
'label' => '<div class="titleWysiwygContent">Contenu personnalisé</div>',
|
||||
'class' => 'editorWysiwyg',
|
||||
'value' => $this->getData(['theme', 'header', 'featureContent'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
4
core/vendor/tinymce/init.js
vendored
4
core/vendor/tinymce/init.js
vendored
@ -20,6 +20,10 @@ tinymce.init({
|
||||
if (ed.id === 'themeFooterText') {
|
||||
$("#footerText").html(tinyMCE.get('themeFooterText').getContent());
|
||||
}
|
||||
if (ed.id === 'themeHeaderText') {
|
||||
$("#featureContent").html(tinyMCE.get('themeHeaderText').getContent());
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
// Langue
|
||||
|
Loading…
Reference in New Issue
Block a user