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

128 lines
4.5 KiB
PHP
Raw Normal View History

2022-12-04 08:19:08 +01:00
<?php echo template::formOpen('searchConfig');
2022-03-06 13:35:21 +01:00
// 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'){
2022-12-04 08:19:08 +01:00
$flag = $this->getData(['config', 'i18n', 'langBase']);
2022-03-18 07:50:13 +01:00
}
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>
2022-12-13 07:49:28 +01:00
<div class="col2">
<?php echo template::button('searchIndexHelp', [
'class' => 'buttonHelp',
'ico' => 'help',
'value' => $text['search_view']['config'][16]
]); ?>
</div>
<div class="col2 offset6">
2022-12-04 08:19:08 +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>
2022-12-13 07:49:28 +01:00
<!-- Aide à propos de la configuration de search, view config -->
<div class="helpDisplayContent">
<?php echo file_get_contents( $text['search_view']['config'][17]) ;?>
</div
2022-11-08 14:50:18 +01:00
<div class='row' <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo '<div style="display: none;">'; ?> >
2022-01-31 09:10:49 +01:00
<div class="col12">
<div class="block">
2022-12-04 08:19:08 +01:00
<div class="blockTitle"><?php echo $text['search_view']['config'][6]; ?><?php echo ' '.template::flag($flag, '20px');?></div>
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-12-04 08:19:08 +01:00
<div class="blockTitle"><?php echo $text['search_view']['config'][7]; ?>
<?php echo template::help( $text['search_view']['config'][8] );
2022-01-31 09:10:49 +01:00
?>
2022-12-04 08:19:08 +01:00
</div>
2022-01-31 09:10:49 +01:00
<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; ?>
2022-12-04 08:19:08 +01:00
</div>