11.2.00.5 aperçu contenu perso en-tête + aspect bloc zone de saisie
This commit is contained in:
parent
7c990e3def
commit
4721782368
@ -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' )
|
||||
|
@ -16,3 +16,14 @@
|
||||
/** 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,16 +140,13 @@
|
||||
</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>',
|
||||
'label' => '<div class="titleWysiwygContent">Contenu personnalisé</div>',
|
||||
'value' => $this->getData(['theme', 'footer', 'text']),
|
||||
'class' => 'editorWysiwyg'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
|
@ -15,3 +15,14 @@
|
||||
/** 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,11 +205,10 @@
|
||||
</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', [
|
||||
<?php echo template::textarea('themeHeaderText', [
|
||||
'label' => '<div class="titleWysiwygContent">Contenu personnalisé</div>',
|
||||
'class' => 'editorWysiwyg',
|
||||
'value' => $this->getData(['theme', 'header', 'featureContent'])
|
||||
]); ?>
|
||||
@ -217,7 +216,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="featureContent" class="displayNone">
|
||||
<?php echo $this->getData(['theme','header','featureContent']);?>
|
||||
</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