2020-11-17 09:47:45 +01:00
|
|
|
<?php echo template::formOpen('newsConfig'); ?>
|
|
|
|
<div class="row">
|
2022-02-12 17:10:59 +01:00
|
|
|
<div class="col2">
|
2020-11-17 09:47:45 +01:00
|
|
|
<?php echo template::button('newsConfigBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),'posts',
|
2022-02-12 17:10:59 +01:00
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
2020-11-17 09:47:45 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2022-02-12 17:10:59 +01:00
|
|
|
<div class="col2 offset6">
|
2022-01-21 10:58:13 +01:00
|
|
|
<?php echo template::button('newsConfigAdd', [
|
|
|
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/add',
|
2022-02-12 17:10:59 +01:00
|
|
|
'ico' => 'plus',
|
|
|
|
'value' => 'News'
|
2022-01-17 19:12:07 +01:00
|
|
|
]); ?>
|
2020-11-17 09:47:45 +01:00
|
|
|
</div>
|
2022-02-12 17:10:59 +01:00
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::submit('newsConfigSubmit'); ?>
|
|
|
|
</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('newsConfigShowFeeds', true, 'Lien du flux RSS', [
|
|
|
|
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'feeds']),
|
|
|
|
'help' => 'Flux limité aux articles de la première page.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('newsConfigFeedslabel', [
|
|
|
|
'label' => 'Etiquette RSS',
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('newsConfigItemsperCol', $module::$columns, [
|
|
|
|
'label' => 'Nombre de colonnes',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperCol'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('newsConfigItemsperPage', $module::$itemsList, [
|
|
|
|
'label' => 'Articles par page',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('newsConfigHeight', $module::$height, [
|
|
|
|
'label' => 'Abrégé de l\'article',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'height'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Thème du module</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::select('newsThemeBorderStyle', $module::$borderStyle, [
|
|
|
|
'label' => 'Bordure',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'theme', 'borderStyle'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::select('newsThemeBorderWidth', $module::$borderWidth, [
|
|
|
|
'label' => 'Epaisseur',
|
|
|
|
'selected' => $this->getData(['module', $this->getUrl(0),'theme', 'borderWidth'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::text('newsThemeBorderColor', [
|
|
|
|
'class' => 'colorPicker',
|
|
|
|
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
|
|
|
|
'label' => 'Couleur de la bordure',
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0),'theme', 'borderColor'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::text('newsThemeBackgroundColor', [
|
|
|
|
'class' => 'colorPicker',
|
|
|
|
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
|
|
|
|
'label' => 'Couleur du fond',
|
|
|
|
'value' => $this->getData(['module', $this->getUrl(0),'theme', 'backgroundColor'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-05 08:59:24 +02:00
|
|
|
</div>
|
2020-11-17 09:47:45 +01:00
|
|
|
<?php if($module::$news): ?>
|
2021-05-03 22:18:38 +02:00
|
|
|
<?php echo template::table([4, 2, 2, 2, 1, 1], $module::$news, ['Titre', 'Publication', 'Dépublication', 'État', '', '']); ?>
|
2020-11-17 09:47:45 +01:00
|
|
|
<?php echo $module::$pages; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php echo template::speech('Aucune news.'); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php echo template::formClose(); ?>
|
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; ?>
|
2019-02-14 17:54:02 +01:00
|
|
|
</div>
|