109 lines
3.0 KiB
PHP
109 lines
3.0 KiB
PHP
<?php
|
|
// Lexique
|
|
$text = [];
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
switch ($val) {
|
|
case 'fr' :
|
|
$text[0] = 'Retour';
|
|
$text[1] = 'Article';
|
|
$text[2] = 'Enregistrer';
|
|
$text[3] = 'Paramètres du module';
|
|
$text[4] = 'Lien du flux RSS';
|
|
$text[5] = 'Texte de l\'étiquette';
|
|
$text[6] = 'Articles par page';
|
|
$text[7] = 'Titre';
|
|
$text[8] = 'Date de publication';
|
|
$text[9] = 'Etat';
|
|
$text[10] = 'Commentaires';
|
|
$text[11] = 'Aucun article.';
|
|
$text[12] = 'Version n°';
|
|
$text[13] = 'Textes';
|
|
break;
|
|
case 'en' :
|
|
$text[0] = 'Back';
|
|
$text[1] = 'Article';
|
|
$text[2] = 'Save';
|
|
$text[3] = 'Module settings';
|
|
$text[4] = 'RSS feed link';
|
|
$text[5] = 'Label text';
|
|
$text[6] = 'Articles per page';
|
|
$text[7] = 'Title';
|
|
$text[8] = 'Date published';
|
|
$text[9] = 'Status';
|
|
$text[10] = 'Comments';
|
|
$text[11] = 'No article';
|
|
$text[12] = 'Version No.';
|
|
$text[13] = 'Texts';
|
|
break;
|
|
}
|
|
?>
|
|
<?php echo template::formOpen('blogConfig'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('blogConfigBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0), 'posts',
|
|
'ico' => 'left',
|
|
'value' => $text[0]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset4">
|
|
<?php echo template::button('blogConfigTexts', [
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/texts',
|
|
'ico' => '',
|
|
'value' => $text[13]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::button('blogConfigAdd', [
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/add',
|
|
'ico' => 'plus',
|
|
'value' => $text[1]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::submit('blogConfigSubmit',[
|
|
'value' => $text[2]
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[3]; ?></h4>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::checkbox('blogConfigShowFeeds', true, $text[4], [
|
|
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'feeds']),
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::text('blogConfigFeedslabel', [
|
|
'label' => $text[5],
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col6 offset6">
|
|
<?php echo template::select('blogConfigItemsperPage', $module::$ItemsList, [
|
|
'label' => $text[6],
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|
|
<?php if($module::$articles): ?>
|
|
<?php echo template::table([4, 4, 1, 1, 1, 1], $module::$articles, [$text[7], $text[8], $text[9], $text[10], '','']); ?>
|
|
<?php echo $module::$pages; ?>
|
|
<?php else: ?>
|
|
<?php echo template::speech($text[11]); ?>
|
|
<?php endif; ?>
|
|
<div class="moduleVersion"><?php echo $text[12]; ?>
|
|
<?php echo $module::VERSION; ?>
|
|
</div>
|
|
|