Deltacms/module/search/view/config/config.php

116 lines
4.0 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php echo template::formOpen('searchConfig');
// Lexique
2022-07-05 08:16:26 +02:00
include('./module/search/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_search.php');
2022-03-06 13:35:21 +01:00
2022-03-18 07:50:13 +01:00
?>
<?php // drapeau pour la langue d'origine ou la langue en traduction rédigée
if( $this->getInput('DELTA_I18N_SITE') === '' || $this->getInput('DELTA_I18N_SITE')=== null || $this->getInput('DELTA_I18N_SITE') === 'base'){
$flag = $this->getData(['config', 'i18n', 'langBase']);
}
else{
$flag = $this->getInput('DELTA_I18N_SITE');
}
2022-03-06 13:35:21 +01:00
?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('searchConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
2022-07-05 08:16:26 +02:00
'value' => $text['search_view']['config'][0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col2 offset8">
2022-03-06 13:35:21 +01:00
<?php echo template::submit('searchConfigSubmit', [
2022-07-05 08:16:26 +02:00
'value'=> $text['search_view']['config'][1]
2022-03-06 13:35:21 +01:00
]); ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
<div class='row'>
<div class="col12">
<div class="block">
2022-07-05 08:16:26 +02:00
<h4><?php echo $text['search_view']['config'][6]; ?><?php echo ' '.template::flag($flag, '20px');?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
<?php echo template::text('searchSubmitText', [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][2],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'submitText'])
]); ?>
</div>
<div class="col6">
<?php echo template::select('searchPreviewLength', $module::$previewLength, [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][3],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'previewLength'])
]); ?>
</div>
</div>
<div class="row">
2022-03-06 13:35:21 +01:00
<div class="col6">
2022-01-31 09:10:49 +01:00
<?php echo template::text('searchPlaceHolder', [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][4],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'placeHolder'])
]); ?>
</div>
2022-03-06 13:35:21 +01:00
<div class="col6">
<?php echo template::text('searchNearWordText', [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][12],
2022-03-06 13:35:21 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'nearWordText'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::text('searchSuccessTitle', [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][13],
2022-03-06 13:35:21 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'successTitle'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('searchFailureTitle', [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][14],
2022-03-06 13:35:21 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'failureTitle'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::text('searchCommentFailureTitle', [
2022-07-05 08:16:26 +02:00
'label' => $text['search_view']['config'][15],
2022-03-06 13:35:21 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'commentFailureTitle'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
2022-07-05 08:16:26 +02:00
<?php echo template::checkbox('searchResultHideContent', true, $text['search_view']['config'][5], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'resultHideContent']),
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-07-05 08:16:26 +02:00
<h4><?php echo $text['search_view']['config'][7]; ?>
<?php echo template::help( $text['search_view']['config'][8] );
2022-01-31 09:10:49 +01:00
?>
</h4>
<div class="row">
<div class="col4">
<?php echo template::text('searchKeywordColor', [
'class' => 'colorPicker',
2022-07-05 08:16:26 +02:00
'help' => $text['search_view']['config'][9],
'label' => $text['search_view']['config'][10],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['module', $this->getUrl(0), 'theme', 'keywordColor'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
2022-07-05 08:16:26 +02:00
<div class="moduleVersion"><?php echo $text['search_view']['config'][11]; ?>
2022-01-31 09:10:49 +01:00
<?php echo $module::VERSION; ?>
</div>