forked from ZwiiCMS-Team/ZwiiCMS
Simplification des libellés
This commit is contained in:
parent
e4d3b100a8
commit
67fc3740f5
@ -42,6 +42,15 @@ class helper
|
|||||||
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// La traduction existe déjà dans le core
|
||||||
|
/*
|
||||||
|
if (array_key_exists($text, core::$dialog) === false && !empty($text)) {
|
||||||
|
$dialogues = json_decode(file_get_contents('core/module/install/ressource/i18n/fr_FR.json' ), true);
|
||||||
|
$data = array_merge($dialogues,[$text => '']);
|
||||||
|
file_put_contents ('core/module/install/ressource/i18n/fr_FR.json', json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX);
|
||||||
|
}
|
||||||
|
*/
|
||||||
return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text);
|
return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2668,7 +2668,7 @@ class core extends common
|
|||||||
$css .= 'header span{color:' . $colors['normal'] . ';font-family:' . $fonts[$this->getData(['theme', 'header', 'font'])] . ';font-weight:' . $this->getData(['theme', 'header', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'header', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'header', 'textTransform']) . '}';
|
$css .= 'header span{color:' . $colors['normal'] . ';font-family:' . $fonts[$this->getData(['theme', 'header', 'font'])] . ';font-weight:' . $this->getData(['theme', 'header', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'header', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'header', 'textTransform']) . '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bannière au contenu personnalisé
|
// Bannière au Contenu HTML
|
||||||
if ($this->getData(['theme', 'header', 'feature']) === 'feature') {
|
if ($this->getData(['theme', 'header', 'feature']) === 'feature') {
|
||||||
// Hauteur de la taille du contenu perso
|
// Hauteur de la taille du contenu perso
|
||||||
$css .= 'header {height:' . $this->getData(['theme', 'header', 'height']) . '; min-height:' . $this->getData(['theme', 'header', 'height']) . ';overflow: hidden;}';
|
$css .= 'header {height:' . $this->getData(['theme', 'header', 'height']) . '; min-height:' . $this->getData(['theme', 'header', 'height']) . ';overflow: hidden;}';
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -2,15 +2,15 @@
|
|||||||
"languages": {
|
"languages": {
|
||||||
"fr_FR": {
|
"fr_FR": {
|
||||||
"version": 12300,
|
"version": 12300,
|
||||||
"date": 1676363607
|
"date": 1677838293
|
||||||
},
|
},
|
||||||
"es": {
|
"es": {
|
||||||
"version": 12300,
|
"version": 12300,
|
||||||
"date": 1676888793
|
"date": 1677838293
|
||||||
},
|
},
|
||||||
"en_EN": {
|
"en_EN": {
|
||||||
"version": 12300,
|
"version": 12300,
|
||||||
"date": 1676888793
|
"date": 1677838293
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -119,7 +119,7 @@ class theme extends common
|
|||||||
];
|
];
|
||||||
public static $headerFeatures = [
|
public static $headerFeatures = [
|
||||||
'wallpaper' => 'Couleur unie ou papier-peint',
|
'wallpaper' => 'Couleur unie ou papier-peint',
|
||||||
'feature' => 'Contenu personnalisé'
|
'feature' => 'Contenu HTML'
|
||||||
];
|
];
|
||||||
public static $imagePositions = [
|
public static $imagePositions = [
|
||||||
'top left' => 'En haut à gauche',
|
'top left' => 'En haut à gauche',
|
||||||
|
@ -209,7 +209,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::textarea('themeHeaderText', [
|
<?php echo template::textarea('themeHeaderText', [
|
||||||
'label' => '<div class="titleWysiwygContent">' . helper::translate('Contenu personnalisé') . '</div>',
|
'label' => '<div class="titleWysiwygContent">' . helper::translate('Contenu HTML') . '</div>',
|
||||||
'class' => 'editorWysiwyg',
|
'class' => 'editorWysiwyg',
|
||||||
'value' => $this->getData(['theme', 'header', 'featureContent'])
|
'value' => $this->getData(['theme', 'header', 'featureContent'])
|
||||||
]); ?>
|
]); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user