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

72 lines
2.3 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>
<div class='row'>
2020-08-16 15:59:37 +02:00
<div class="col12">
<div class="block">
<h4>Paramètres du module</h4>
2020-08-16 15:59:37 +02:00
<div class="row">
2020-08-20 16:11:11 +02:00
<div class="col6">
2020-08-16 15:59:37 +02:00
<?php echo template::text('searchSubmitText', [
'label' => 'Texte du bouton',
2020-08-20 19:31:11 +02:00
'value' => $this->getData(['module', $this->getUrl(0), 'submitText'])
2020-08-16 15:59:37 +02:00
]); ?>
</div>
2020-08-20 16:11:11 +02:00
<div class="col6">
<?php echo template::select('searchPreviewLength', $module::$previewLength, [
'label' => 'Dimension de l\'aperçu',
'selected' => $this->getData(['module', $this->getUrl(0),'previewLength'])
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
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',
2020-08-20 19:31:11 +02:00
'value' => $this->getData(['module', $this->getUrl(0), 'placeHolder'])
2020-08-16 15:59:37 +02:00
]); ?>
</div>
2020-08-16 16:24:09 +02:00
<div class="col12">
2020-08-20 19:31:11 +02:00
<?php echo template::checkbox('searchResultHideContent', true, 'Masquer le contenu de la page dans les résultats', [
2020-08-16 16:24:09 +02:00
'checked' => $this->getData(['module', $this->getUrl(0), 'resultHideContent']),
]); ?>
</div>
</div>
2020-08-16 15:59:37 +02:00
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2020-08-20 15:56:48 +02:00
<h4>Thème
<?php echo template::help('Les paramètres du thème sont communs aux modules du même type.');
?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::text('searchKeywordColor', [
'class' => 'colorPicker',
2020-08-20 15:56:48 +02:00
'help' => 'Le curseur horizontal règle le niveau de transparence, le placer tout à la gauche pour un surlignement invisible.',
'label' => 'Surlignement',
'value' => $this->getData(['theme', 'search', 'keywordColor'])
]); ?>
</div>
</div>
</div>
</div>
</div>
2020-08-16 15:59:37 +02:00
<?php echo template::formClose(); ?>
<div class="moduleVersion">Version
<?php echo $module::SEARCH_VERSION; ?>
</div>