ajustement des messages

This commit is contained in:
fredtempez 2019-01-03 20:47:00 +01:00
parent 617bf3b9f6
commit 0e73bf3cfe
3 changed files with 16 additions and 13 deletions

View File

@ -131,11 +131,11 @@
break; break;
case 2 : // 2 blocks case 2 : // 2 blocks
if ($blocks[0] < $blocks[1]) { // détermine la position de la colonne if ($blocks[0] < $blocks[1]) { // détermine la position de la colonne
$blockright = 'col'. $blocks[0]; $blockleft = 'col'. $blocks[0];
$content = 'col'. $blocks[1] ; $content = 'col'. $blocks[1] ;
} else { } else {
$content = 'col' . $blocks[0]; $content = 'col' . $blocks[0];
$blockleft = 'col' . $blocks[1]; $blockright = 'col' . $blocks[1];
} }
break; break;
case 3 : // 3 blocks case 3 : // 3 blocks

View File

@ -204,12 +204,12 @@ class theme extends common {
]; ];
public static $siteBlocks = [ public static $siteBlocks = [
'12' => 'Une colonne', '12' => 'Un seul bloc, uniquement le site',
'4-8' => 'Deux colonnes : 1/3 - 2/3', '4-8' => 'Deux blocs : 1/3 - 2/3',
'8-4' => 'Deux colonnes : 2/3 - 1/3', '8-4' => 'Deux blocs : 2/3 - 1/3',
'3-9' => 'Deux colonnes : 1/4 - 3/4', '3-9' => 'Deux blocs : 1/4 - 3/4',
'9-3' => 'Deux colonnes : 3/4 - 1/2', '9-3' => 'Deux blocs : 3/4 - 1/2',
'3-6-3' => 'Trois colonnes : 1/4 - 1/2 - 1/4' '3-6-3' => 'Trois blocs : 1/4 - 1/2 - 1/4'
]; ];

View File

@ -133,11 +133,12 @@
</div> </div>
<div class="row"> <div class="row">
<div class="block"> <div class="block">
<h4>Mise en page</h4> <h4>Mise en page </h4>
<div class='row'> <div class='row'>
<div class="col3"> <div class="col3">
<?php echo template::select('themeSiteBlocks', $module::$siteBlocks, [ <?php echo template::select('themeSiteBlocks', $module::$siteBlocks, [
'label' => 'Colonnes', 'label' => 'Répartition des blocs :',
'help' => 'Le bloc la plus large abrite le contenu du site',
'selected' => $this->getData(['theme', 'site', 'blocks']) 'selected' => $this->getData(['theme', 'site', 'blocks'])
]); ?> ]); ?>
</div> </div>
@ -145,12 +146,14 @@
<div class='row'> <div class='row'>
<div class="col6"> <div class="col6">
<?php echo template::textarea('themeBlockContentLeft', [ <?php echo template::textarea('themeBlockContentLeft', [
'label' => 'Contenu du bloc à gauche :',
'class' => 'editorWysiwyg', 'class' => 'editorWysiwyg',
'value' => $this->getData(['theme','block', 'contentLeft']) 'value' => $this->getData(['theme','block', 'contentLeft'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::textarea('themeBlockContentRight', [ <?php echo template::textarea('themeBlockContentRight', [
'label' => 'Contenu du bloc à droite :',
'class' => 'editorWysiwyg', 'class' => 'editorWysiwyg',
'value' => $this->getData(['theme','block', 'contentRight']) 'value' => $this->getData(['theme','block', 'contentRight'])
]); ?> ]); ?>