97 lines
3.2 KiB
PHP
Executable File
97 lines
3.2 KiB
PHP
Executable File
<?php echo template::formOpen('translateForm'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('translateFormBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl(),
|
|
'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">
|
|
<h4>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'])
|
|
]); ?>
|
|
</div>
|
|
<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">
|
|
<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'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4>Drapeaux des langues supportées</h4>
|
|
<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'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col8 offset2">
|
|
<?php echo template::select('translateEN', $module::$typeTranslate, [
|
|
'label' => 'Anglais',
|
|
'selected' => $this->getData(['config', 'translate' , 'en'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col8 offset2">
|
|
<?php echo template::select('translateES', $module::$typeTranslate, [
|
|
'label' => 'Espagnol',
|
|
'selected' => $this->getData(['config', 'translate' , 'es'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="col6">
|
|
<div class="col8 offset2">
|
|
<?php echo template::select('translateIT', $module::$typeTranslate, [
|
|
'label' => 'Italien',
|
|
'selected' => $this->getData(['config', 'translate' , 'it'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col8 offset2">
|
|
<?php echo template::select('translateNL', $module::$typeTranslate, [
|
|
'label' => 'Néerlandais',
|
|
'selected' => $this->getData(['config', 'translate' , 'nl'])
|
|
]); ?>
|
|
</div>
|
|
<div class="col8 offset2">
|
|
<?php echo template::select('translatePT', $module::$typeTranslate, [
|
|
'label' => 'Portugais',
|
|
'selected' => $this->getData(['config', 'translate' , 'pt'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|