2022-03-06 13:35:21 +01:00
|
|
|
<?php echo template::formOpen('searchConfig');
|
|
|
|
// Lexique
|
|
|
|
$text = [];
|
|
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
|
|
switch ($val) {
|
|
|
|
case 'fr' :
|
|
|
|
$text[0] = 'Retour';
|
|
|
|
$text[1] = 'Enregistrer';
|
|
|
|
$text[2] = 'Texte du bouton';
|
|
|
|
$text[3] = 'Dimension de l\'aperçu en caractères';
|
|
|
|
$text[4] = 'Aide dans la zone de saisie';
|
|
|
|
$text[5] = 'Masquer le contenu de la page dans les résultats';
|
2022-03-18 07:50:13 +01:00
|
|
|
$text[6] = 'Adapter ces textes dans la langue de vos visiteurs';
|
2022-03-06 13:35:21 +01:00
|
|
|
$text[7] = 'Thème';
|
|
|
|
$text[8] = 'Les paramètres du thème sont communs aux modules du même type.';
|
|
|
|
$text[9] = 'Le curseur horizontal règle le niveau de transparence, le placer tout à la gauche pour un surlignement invisible.';
|
|
|
|
$text[10] = 'Surlignement';
|
|
|
|
$text[11] = 'Version n°';
|
|
|
|
$text[12] = 'Texte pour l\'option mots approchants';
|
|
|
|
$text[13] = 'Titre des résultats en cas de succès';
|
|
|
|
$text[14] = 'Titre des résultats en cas d\'échec';
|
|
|
|
$text[15] = 'Commentaire en cas d\'échec';
|
|
|
|
break;
|
|
|
|
case 'en' :
|
|
|
|
$text[0] = 'Back';
|
|
|
|
$text[1] = 'Submit';
|
|
|
|
$text[2] = 'Button text';
|
|
|
|
$text[3] = 'Size of the overview in characters';
|
|
|
|
$text[4] = 'Help in the input field';
|
|
|
|
$text[5] = 'Hide page content in results';
|
2022-03-18 07:50:13 +01:00
|
|
|
$text[6] = 'Adapt these texts into the language of your visitors';
|
2022-03-06 13:35:21 +01:00
|
|
|
$text[7] = 'Theme';
|
|
|
|
$text[8] = 'The theme parameters are common to modules of the same type.';
|
|
|
|
$text[9] = 'The horizontal slider adjusts the level of transparency, placing it to the far left for invisible highlighting.';
|
|
|
|
$text[10] = 'Highlighting';
|
|
|
|
$text[11] = 'Version no.';
|
|
|
|
$text[12] = 'Text for the \'closes words\' option';
|
|
|
|
$text[13] = 'Title of results in case of success';
|
|
|
|
$text[14] = 'Title of results in case of failure';
|
|
|
|
$text[15] = 'Comment on failure';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
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-03-06 13:35:21 +01:00
|
|
|
'value' => $text[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', [
|
|
|
|
'value'=> $text[1]
|
|
|
|
]); ?>
|
2022-01-31 09:10:49 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='row'>
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2022-03-18 07:50:13 +01:00
|
|
|
<h4><?php echo $text[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-03-06 13:35:21 +01:00
|
|
|
'label' => $text[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-03-06 13:35:21 +01:00
|
|
|
'label' => $text[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-03-06 13:35:21 +01:00
|
|
|
'label' => $text[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', [
|
|
|
|
'label' => $text[12],
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'nearWordText'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('searchSuccessTitle', [
|
|
|
|
'label' => $text[13],
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'successTitle'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('searchFailureTitle', [
|
|
|
|
'label' => $text[14],
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'failureTitle'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('searchCommentFailureTitle', [
|
|
|
|
'label' => $text[15],
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'commentFailureTitle'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('searchResultHideContent', true, $text[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-03-06 13:35:21 +01:00
|
|
|
<h4><?php echo $text[7]; ?>
|
|
|
|
<?php echo template::help( $text[8] );
|
2022-01-31 09:10:49 +01:00
|
|
|
?>
|
|
|
|
</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::text('searchKeywordColor', [
|
|
|
|
'class' => 'colorPicker',
|
2022-03-06 13:35:21 +01:00
|
|
|
'help' => $text[9],
|
|
|
|
'label' => $text[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-03-06 13:35:21 +01:00
|
|
|
<div class="moduleVersion"><?php echo $text[11]; ?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<?php echo $module::VERSION; ?>
|
|
|
|
</div>
|