ZwiiCMS/module/news/view/config/config.php

81 lines
3.0 KiB
PHP
Raw Normal View History

2020-11-17 09:47:45 +01:00
<?php echo template::formOpen('newsConfig'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('newsConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),'posts',
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::button('newsConfigAdd', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/add',
'ico' => 'plus',
'value' => 'News'
]); ?>
</div>
<div class="col2">
<?php echo template::submit('newsConfigSubmit'); ?>
</div>
2018-04-02 08:29:19 +02:00
</div>
2020-11-17 09:47:45 +01:00
<div class="row">
2021-04-05 08:59:24 +02:00
<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">
2021-04-09 13:29:11 +02:00
<div class="col3">
<?php echo template::select('newsConfigItemsperCol', $module::$columns, [
2021-04-05 08:59:24 +02:00
'label' => 'Pagination',
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperCol']),
'help' => 'Nombre de colonnes par page'
]); ?>
</div>
2021-04-09 13:29:11 +02:00
<div class="col3">
<?php echo template::select('newsConfigItemsperPage', $module::$itemsList, [
2021-04-05 08:59:24 +02:00
'label' => 'Articles par page',
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])
]); ?>
</div>
2021-04-09 13:29:11 +02:00
<div class="col3">
<?php echo template::select('newsConfigItemsHeight', $module::$itemsHeight, [
2021-04-05 08:59:24 +02:00
'label' => 'Hauteur',
2021-04-09 14:42:21 +02:00
'selected' => $this->getData(['module', $this->getUrl(0),'theme', 'itemsHeight']),
'help' => 'Limite la hauteur de l\'article, cette option est utile lorsque la pagination en colonnes est activée.'
2021-04-05 08:59:24 +02:00
]); ?>
2020-11-17 09:47:45 +01:00
</div>
2021-04-09 13:29:11 +02:00
<div class="col3">
<?php echo template::select('newsConfigItemsBlur', $module::$itemsBlur, [
'label' => 'Effet flou',
2021-04-09 14:42:21 +02:00
'selected' => $this->getData(['module', $this->getUrl(0),'theme', 'itemsBlur']),
'help' => 'Effet appliqué en bas de l\'article afin d\'éviter une coupure brutale quand la hauteur de l\'article n\'est pas définie sur Article Complet'
2021-04-09 13:29:11 +02:00
]); ?>
</div>
2020-11-17 09:47:45 +01:00
</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(); ?>
<div class="moduleVersion">Version
2021-02-09 18:04:24 +01:00
<?php echo $module::VERSION; ?>
2019-02-14 17:54:02 +01:00
</div>