ZwiiCMS/module/news/view/option/option.php

95 lines
3.4 KiB
PHP
Raw Normal View History

2022-01-20 10:37:00 +01:00
<?php echo template::formOpen('newsOption'); ?>
2022-01-17 19:12:07 +01:00
<div class="row">
2022-01-20 10:50:40 +01:00
<div class="col1">
2022-01-20 10:37:00 +01:00
<?php echo template::button('newsOptionBack', [
2022-01-17 19:12:07 +01:00
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
2022-01-20 10:50:40 +01:00
'value' => template::ico('left')
2022-01-17 19:12:07 +01:00
]); ?>
</div>
2022-01-20 10:50:40 +01:00
<div class="col2 offset9">
2022-01-20 10:37:00 +01:00
<?php echo template::submit('newsOptionSubmit'); ?>
2022-01-17 19:12:07 +01:00
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Paramètres du module</h4>
<div class="row">
<div class="col6">
2022-01-20 10:37:00 +01:00
<?php echo template::checkbox('newsOptionShowFeeds', true, 'Lien du flux RSS', [
2022-01-17 19:12:07 +01:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'feeds']),
'help' => 'Flux limité aux articles de la première page.'
]); ?>
</div>
<div class="col6">
2022-01-20 10:37:00 +01:00
<?php echo template::text('newsOptionFeedslabel', [
2022-01-17 19:12:07 +01:00
'label' => 'Etiquette RSS',
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
2022-01-20 10:37:00 +01:00
<?php echo template::select('newsOptionItemsperCol', $module::$columns, [
2022-01-17 19:12:07 +01:00
'label' => 'Nombre de colonnes',
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperCol'])
]); ?>
</div>
<div class="col4">
2022-01-20 10:37:00 +01:00
<?php echo template::select('newsOptionItemsperPage', $module::$itemsList, [
2022-01-17 19:12:07 +01:00
'label' => 'Articles par page',
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])
]); ?>
</div>
<div class="col4">
2022-01-20 10:37:00 +01:00
<?php echo template::select('newsOptionHeight', $module::$height, [
2022-01-17 19:12:07 +01:00
'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>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion">Version
<?php echo $module::VERSION; ?>
</div>