Stockage des paramètres générique au module

This commit is contained in:
Fred Tempez 2020-08-19 20:34:40 +02:00
parent 711b3ffab9
commit 3feab64a17
4 changed files with 5 additions and 6 deletions

View File

@ -42,13 +42,12 @@ class search extends common {
public function config() { public function config() {
if($this->isPost()) { if($this->isPost()) {
// Soumission du formulaire // Soumission du formulaire
$this->setData(['module', $this->getUrl(0), [ $this->setData(['module', 'search', [
'submitText' => $this->getInput('searchSubmitText'), 'submitText' => $this->getInput('searchSubmitText'),
'placeHolder' => $this->getInput('searchPlaceHolder'), 'placeHolder' => $this->getInput('searchPlaceHolder'),
'resultHideContent' => $this->getInput('searchResultHideContent',helper::FILTER_BOOLEAN), 'resultHideContent' => $this->getInput('searchResultHideContent',helper::FILTER_BOOLEAN),
'keywordColor' => $this->getInput('searchKeywordColor') 'keywordColor' => $this->getInput('searchKeywordColor')
]]); ]]);
// Création des fichiers CSS // Création des fichiers CSS
$content = file_get_contents('module/search/ressource/vartheme.css'); $content = file_get_contents('module/search/ressource/vartheme.css');
$themeCss = file_get_contents('module/search/ressource/theme.css'); $themeCss = file_get_contents('module/search/ressource/theme.css');

View File

@ -22,20 +22,20 @@
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Mot-clef en évidence', 'label' => 'Mot-clef en évidence',
'value' => $this->getData(['module', $this->getUrl(0), 'keywordColor']) 'value' => $this->getData(['module', 'search', 'keywordColor'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::text('searchSubmitText', [ <?php echo template::text('searchSubmitText', [
'label' => 'Texte du bouton', 'label' => 'Texte du bouton',
'value' => $this->getData(['module', $this->getUrl(0), 'submitText']), 'value' => $this->getData(['module', 'search', 'submitText']),
'placeholder' => $module::$defaultButtonText 'placeholder' => $module::$defaultButtonText
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::text('searchPlaceHolder', [ <?php echo template::text('searchPlaceHolder', [
'label' => 'Aide dans la zone de saisie', 'label' => 'Aide dans la zone de saisie',
'value' => $this->getData(['module', $this->getUrl(0), 'placeHolder']), 'value' => $this->getData(['module', 'search', 'placeHolder']),
'placeholder' => $module::$defaultPlaceHolder 'placeholder' => $module::$defaultPlaceHolder
]); ?> ]); ?>
</div> </div>

View File

@ -1,5 +1,5 @@
.searchKeyword { .searchKeyword {
--keywordColor: rgba(10, 183, 170, 0.46); --keywordColor: rgba(80, 237, 9, 0.88);
} }
.searchTitle { .searchTitle {
font: caption; font: caption;

0
site/file/thumb/icones/loupe.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB