11.2.00.5 aperçu contenu perso en-tête + aspect bloc zone de saisie

This commit is contained in:
Fred Tempez 2021-11-21 10:28:06 +01:00 committed by fredtempez
parent 7c990e3def
commit 4721782368
7 changed files with 42 additions and 21 deletions

View File

@ -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 = [];

View File

@ -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' )

View File

@ -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;
}

View File

@ -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">

View File

@ -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;
}

View File

@ -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>

View File

@ -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