2020-11-11 19:48:07 +01:00
|
|
|
<?php echo template::formOpen('translateForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('translateFormBack', [
|
|
|
|
'class' => 'buttonGrey',
|
2020-11-14 14:52:18 +01:00
|
|
|
'href' => helper::baseUrl(),
|
2020-11-11 19:48:07 +01:00
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?php echo template::submit('translateFormSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2020-11-25 18:25:16 +01:00
|
|
|
<h4>Traduction automatique</h4>
|
2020-11-11 19:48:07 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
2020-11-25 18:25:16 +01:00
|
|
|
<?php echo template::checkbox('translateScriptGoogle', true, 'Active le script de traduction automatique', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'scriptGoogle'])
|
2020-11-24 19:00:23 +01:00
|
|
|
]); ?>
|
2020-11-25 18:25:16 +01:00
|
|
|
</div>
|
2020-11-26 11:59:51 +01:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateCredits', true, 'Afficher les crédits du script Google', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'showCredits']),
|
|
|
|
'help' => 'Option vivement recommandée pour le respect du droit d\'auteur'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAutoDetect', true, 'Détection automatique de la langue', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'autoDetect']),
|
|
|
|
'help' => 'Détecte la langue du navigateur.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAdmin', true, 'Traduction de l\'interface du CMS', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'admin'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
2020-11-25 18:25:16 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Drapeaux des langues supportées</h4>
|
2020-11-26 12:09:06 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col4 offset4">
|
|
|
|
<?php echo template::select('translateFR', ['non'=>'Masqué','site'=>'Affiché'], [
|
|
|
|
'label' => 'Français',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'fr'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="col8 offset2">
|
|
|
|
<?php echo template::select('translateDE', $module::$typeTranslate, [
|
|
|
|
'label' => 'Allemand',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'de'])
|
2020-11-24 15:29:47 +01:00
|
|
|
]); ?>
|
2020-11-25 14:04:04 +01:00
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
|
|
|
<?php echo template::select('translateEN', $module::$typeTranslate, [
|
|
|
|
'label' => 'Anglais',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'en'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
|
|
|
<?php echo template::select('translateES', $module::$typeTranslate, [
|
|
|
|
'label' => 'Espagnol',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'es'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-24 15:29:47 +01:00
|
|
|
</div>
|
2020-11-24 19:00:23 +01:00
|
|
|
<div class="col6">
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
|
|
|
<?php echo template::select('translateIT', $module::$typeTranslate, [
|
|
|
|
'label' => 'Italien',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'it'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
|
|
|
<?php echo template::select('translateNL', $module::$typeTranslate, [
|
|
|
|
'label' => 'Néerlandais',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'nl'])
|
2020-11-25 14:04:04 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2020-11-25 18:25:16 +01:00
|
|
|
<div class="col8 offset2">
|
|
|
|
<?php echo template::select('translatePT', $module::$typeTranslate, [
|
|
|
|
'label' => 'Portugais',
|
|
|
|
'selected' => $this->getData(['config', 'translate' , 'pt'])
|
2020-11-24 19:00:23 +01:00
|
|
|
]); ?>
|
2020-11-25 14:04:04 +01:00
|
|
|
</div>
|
2020-11-24 13:44:31 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-22 13:32:20 +01:00
|
|
|
</div>
|
2020-11-11 19:48:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::formClose(); ?>
|