Deltacms/module/blog/view/texts/texts.php
2022-03-18 07:50:13 +01:00

196 lines
6.2 KiB
PHP

<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Adapter ces textes dans la langue de vos visiteurs';
$text[2] = 'Enregistrer';
$text[3] = 'Pas encore de commentaire';
$text[4] = 'Ecrire un commentaire';
$text[5] = 'Nom';
$text[6] = 'Commentaire avec maximum';
$text[7] = 'caractères';
$text[8] = 'commentaire';
$text[9] = 'Commentaire déposé';
$text[10] = 'Commentaire déposé en attente d\'approbation';
$text[11] = 'Cet article ne reçoit pas de commentaire';
$text[13] = 'Connexion';
$text[15] ='Editer';
$text[16] ='Annuler';
$text[17] ='Envoyer';
$text[18] ='Vous avez atteint le maximum de';
$text[19] ='caractères restants';
$text[20] ='Vous alliez dépasser le maximum de ';
$text[25] ='Version n°';
break;
case 'en' :
$text[0] = 'Back';
$text[1] = 'Adapt these texts into the language of your visitors';
$text[2] = 'Save';
$text[3] = 'No comment yet';
$text[4] = 'Write a comment';
$text[5] = 'Name';
$text[6] = 'Comment with maximum';
$text[7] = 'characters';
$text[8] = 'comment';
$text[9] = 'Comment filed';
$text[10] = 'Comment submitted pending approval';
$text[11] = 'This article does not receive comments';
$text[13] = 'Login';
$text[15] = 'Edit';
$text[16] = 'Cancel';
$text[17] = 'Send';
$text[18] = 'You have reached the maximum of';
$text[19] = 'characters left';
$text[20] = 'You were about to exceed the maximum of ';
$text[25] = 'Version no.';
break;
}
?>
<?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');
}
?>
<?php echo template::formOpen('blogTexts'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('blogTextsBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0). '/config',
'ico' => 'left',
'value' => $text[0]
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('blogTextsSubmit',[
'value' => $text[2]
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text[1]; ?><?php echo ' '.template::flag($flag, '20px');?></h4>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsNoComment', [
'label' => $text[3],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'NoComment'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsWrite', [
'label' => $text[4],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Write'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsName', [
'label' => $text[5],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Name'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsMaxi', [
'label' => $text[6],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Maxi'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsCara', [
'label' => $text[7],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Cara'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsComment', [
'label' => $text[8],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Comment'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsCommentOK', [
'label' => $text[9],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'CommentOK'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsWaiting', [
'label' => $text[10],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Waiting'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsArticleNoComment', [
'label' => $text[11],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'ArticleNoComment'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsConnection', [
'label' => $text[13],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Connection'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsEdit', [
'label' => $text[15],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Edit'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsCancel', [
'label' => $text[16],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Cancel'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsSend', [
'label' => $text[17],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'Send'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsTinymceMaxi', [
'label' => $text[18],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'TinymceMaxi'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('blogTextsTinymceCara', [
'label' => $text[19],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'TinymceCara'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsTinymceExceed', [
'label' => $text[20],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'TinymceExceed'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion"><?php echo $text[25]; ?>
<?php echo $module::VERSION; ?>
</div>