ZwiiCMS/module/search/view/config/config.php

56 lines
1.8 KiB
PHP
Raw Normal View History

2020-08-16 15:59:37 +02:00
<?php echo template::formOpen('searchConfig'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('searchConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('searchConfigSubmit'); ?>
</div>
</div>
2020-08-16 15:59:37 +02:00
<div class="row">
<div class="col12">
<div class="block">
<h4>Paramètres</h4>
<div class="row">
<div class="col4">
<?php echo template::text('searchKeywordColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Mot-clef en évidence',
'value' => $this->getData(['module', 'search', 'keywordColor'])
]); ?>
</div>
<div class="col4">
2020-08-16 15:59:37 +02:00
<?php echo template::text('searchSubmitText', [
'label' => 'Texte du bouton',
'value' => $this->getData(['module', 'search', 'submitText']),
2020-08-16 16:24:09 +02:00
'placeholder' => $module::$defaultButtonText
2020-08-16 15:59:37 +02:00
]); ?>
</div>
<div class="col4">
2020-08-16 15:59:37 +02:00
<?php echo template::text('searchPlaceHolder', [
2020-08-16 16:24:09 +02:00
'label' => 'Aide dans la zone de saisie',
'value' => $this->getData(['module', 'search', 'placeHolder']),
2020-08-16 16:24:09 +02:00
'placeholder' => $module::$defaultPlaceHolder
2020-08-16 15:59:37 +02:00
]); ?>
</div>
</div>
2020-08-16 16:24:09 +02:00
<div class="row">
<div class="col12">
<?php echo template::checkbox('searchResultHideContent', true, 'Résultats : masquer le contenu de la page', [
'checked' => $this->getData(['module', $this->getUrl(0), 'resultHideContent']),
]); ?>
</div>
</div>
2020-08-16 15:59:37 +02:00
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion">Version
<?php echo $module::SEARCH_VERSION; ?>
</div>