2020-11-16 18:39:32 +01:00
|
|
|
<?php echo template::formOpen('blogConfig'); ?>
|
|
|
|
<div class="row">
|
2022-02-12 17:10:59 +01:00
|
|
|
<div class="col2">
|
2020-11-16 18:39:32 +01:00
|
|
|
<?php echo template::button('blogConfigBack', [
|
|
|
|
'class' => 'buttonGrey',
|
2020-11-17 08:52:32 +01:00
|
|
|
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0), 'posts',
|
2022-02-12 17:10:59 +01:00
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
2020-11-16 18:39:32 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-02-12 17:10:59 +01:00
|
|
|
<div class="col2 offset6">
|
2022-01-20 10:25:20 +01:00
|
|
|
<?php echo template::button('blogConfigAdd', [
|
|
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/add',
|
2022-02-12 17:10:59 +01:00
|
|
|
'ico' => 'plus',
|
|
|
|
'value' => 'Article'
|
2022-01-17 19:32:06 +01:00
|
|
|
]); ?>
|
2020-11-16 18:39:32 +01:00
|
|
|
</div>
|
2022-02-12 17:10:59 +01:00
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::submit('blogConfigSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Paramètres du module</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('blogConfigShowFeeds', true, 'Lien du flux RSS', [
|
|
|
|
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'feeds']),
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('blogConfigFeedslabel', [
|
|
|
|
'label' => 'Texte de l\'étiquette',
|
|
|
|
'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' => 'Articles par page',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
2020-11-18 21:45:14 +01:00
|
|
|
<?php echo template::formClose(); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php if($module::$articles): ?>
|
2020-07-16 12:24:52 +02:00
|
|
|
<?php echo template::table([4, 4, 1, 1, 1, 1], $module::$articles, ['Titre', 'Date de publication', 'État', 'Commentaires', '','']); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php echo $module::$pages; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php echo template::speech('Aucun article.'); ?>
|
2019-02-14 15:17:03 +01:00
|
|
|
<?php endif; ?>
|
2019-11-26 19:09:12 +01:00
|
|
|
<div class="moduleVersion">Version n°
|
2021-02-09 18:04:24 +01:00
|
|
|
<?php echo $module::VERSION; ?>
|
2020-07-02 19:48:47 +02:00
|
|
|
</div>
|
2020-11-18 21:45:14 +01:00
|
|
|
|