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">
|
2020-12-04 12:56:20 +01:00
|
|
|
<div class="block" id="flagsWrapper">
|
|
|
|
<h4>Affichage des drapeaux et sélection du mode de traduction</h4>
|
2020-11-26 12:09:06 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col4 offset4">
|
2020-12-04 12:56:20 +01:00
|
|
|
<?php echo template::select('translateFR', ['none'=>'Drapeau masqué','site'=>'Affiché'], [
|
2020-11-26 12:09:06 +01:00
|
|
|
'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',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'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',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'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',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'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',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'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',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'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',
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateFlagSelect',
|
2020-11-25 18:25:16 +01:00
|
|
|
'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>
|
2020-11-29 08:48:29 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Paramètres de la traduction automatique</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateScriptGoogle', true, 'Active le script de traduction automatique', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'scriptGoogle']),
|
|
|
|
'help' => 'Le script Google Translate assure la traduction automatique du site.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateCredits', true, 'Afficher les crédits du script Google', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'showCredits']),
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateGoogleScriptOption',
|
2020-11-29 08:48:29 +01:00
|
|
|
'help' => 'Option recommandée pour le respect du droit d\'auteur'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAutoDetect', true, 'Détection automatique de la langue', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'autoDetect']),
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateGoogleScriptOption',
|
2020-11-29 08:48:29 +01:00
|
|
|
'help' => 'Détecte la langue du navigateur, dans ce mode il n\'est pas nécessaire d\'afficher les drapeaux.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('translateAdmin', true, 'Traduction en mode connecté', [
|
|
|
|
'checked' => $this->getData(['config','translate', 'admin']),
|
2020-12-04 12:56:20 +01:00
|
|
|
'class' => 'translateGoogleScriptOption',
|
2020-11-29 08:48:29 +01:00
|
|
|
'help' => 'Traduit le site et l\'interface de ZwiiCMS quand un utilisateur est connecté'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-11 19:48:07 +01:00
|
|
|
<?php echo template::formClose(); ?>
|