ZwiiCMS/core/module/translate/view/index/index.php

52 lines
1.6 KiB
PHP
Raw Normal View History

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-22 13:32:20 +01:00
<h4>Paramètres</h4>
2020-11-11 19:48:07 +01:00
<div class="row">
<div class="col6">
2020-11-22 13:32:20 +01:00
<?php echo template::checkbox('translateActivated', true, 'Activer le mode multi-langues', [
2020-11-24 09:19:26 +01:00
'checked' => $this->getData(['config','translate', 'activated'])
2020-11-11 19:48:07 +01:00
]); ?>
</div>
2020-11-22 13:32:20 +01:00
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Traduction automatique</h4>
<div class="row">
2020-11-11 19:48:07 +01:00
<div class="col6">
2020-11-22 13:32:20 +01:00
<?php echo template::checkbox('translateAutoDetect', true, 'Détection automatique de langue', [
2020-11-24 09:19:26 +01:00
'checked' => $this->getData(['config','translate', 'autoDetect']),
2020-11-22 13:32:20 +01:00
'help' => 'Détecte la langue du navigateur et effectue une traduction grâce à Google Translate.'
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('translateCredits', true, 'Afficher les crédits du script Google', [
2020-11-24 09:19:26 +01:00
'checked' => $this->getData(['config','translate', 'showCredits']),
2020-11-22 13:32:20 +01:00
'help' => 'Option vivement recommandée pour le respect du droit d\'auteur'
]); ?>
2020-11-11 19:48:07 +01:00
</div>
</div>
</div>
2020-11-22 13:32:20 +01:00
<div class="row">
</div>
2020-11-11 19:48:07 +01:00
</div>
</div>
<?php echo template::formClose(); ?>