forked from ZwiiCMS-Team/ZwiiCMS
Stockage des paramètres générique au module
This commit is contained in:
parent
711b3ffab9
commit
3feab64a17
@ -42,13 +42,12 @@ class search extends common {
|
||||
public function config() {
|
||||
if($this->isPost()) {
|
||||
// Soumission du formulaire
|
||||
$this->setData(['module', $this->getUrl(0), [
|
||||
$this->setData(['module', 'search', [
|
||||
'submitText' => $this->getInput('searchSubmitText'),
|
||||
'placeHolder' => $this->getInput('searchPlaceHolder'),
|
||||
'resultHideContent' => $this->getInput('searchResultHideContent',helper::FILTER_BOOLEAN),
|
||||
'keywordColor' => $this->getInput('searchKeywordColor')
|
||||
]]);
|
||||
|
||||
// Création des fichiers CSS
|
||||
$content = file_get_contents('module/search/ressource/vartheme.css');
|
||||
$themeCss = file_get_contents('module/search/ressource/theme.css');
|
||||
|
@ -22,20 +22,20 @@
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
||||
'label' => 'Mot-clef en évidence',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'keywordColor'])
|
||||
'value' => $this->getData(['module', 'search', 'keywordColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('searchSubmitText', [
|
||||
'label' => 'Texte du bouton',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'submitText']),
|
||||
'value' => $this->getData(['module', 'search', 'submitText']),
|
||||
'placeholder' => $module::$defaultButtonText
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<?php echo template::text('searchPlaceHolder', [
|
||||
'label' => 'Aide dans la zone de saisie',
|
||||
'value' => $this->getData(['module', $this->getUrl(0), 'placeHolder']),
|
||||
'value' => $this->getData(['module', 'search', 'placeHolder']),
|
||||
'placeholder' => $module::$defaultPlaceHolder
|
||||
]); ?>
|
||||
</div>
|
||||
|
@ -1,5 +1,5 @@
|
||||
.searchKeyword {
|
||||
--keywordColor: rgba(10, 183, 170, 0.46);
|
||||
--keywordColor: rgba(80, 237, 9, 0.88);
|
||||
}
|
||||
.searchTitle {
|
||||
font: caption;
|
||||
|
0
site/file/thumb/icones/loupe.png
Normal file → Executable file
0
site/file/thumb/icones/loupe.png
Normal file → Executable file
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in New Issue
Block a user