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

44 lines
986 B
PHP

<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Date';
$text[2] = 'Contenu';
$text[3] = 'Auteur';
$text[4] = 'Aucun commentaire.';
break;
case 'en' :
$text[0] = 'Return';
$text[1] = 'Date';
$text[2] = 'Content';
$text[3] = 'Author';
$text[4] = 'No comments';
break;
}
?>
<div class="row">
<div class="col2">
<?php echo template::button('blogCommentBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => $text[0]
]); ?>
</div>
<?php if($module::$comments): ?>
<div class="col2 offset8">
<?php echo $module::$commentsDelete; ?>
</div>
</div>
<?php echo template::table([3, 5, 2, 1, 1], $module::$comments, [$text[1], $text[2], $text[3], '', '']); ?>
<?php echo $module::$pages.'<br/>'; ?>
<?php else: ?>
</div>
<?php echo template::speech($text[4]); ?>
<?php endif; ?>