ZwiiCMS/module/blog/view/option/option.php

47 lines
1.4 KiB
PHP
Raw Normal View History

2022-01-20 09:53:40 +01:00
<?php echo template::formOpen('blogOption'); ?>
2022-01-17 19:32:06 +01:00
<div class="row">
2022-01-20 10:50:40 +01:00
<div class="col1">
2022-01-20 09:53:40 +01:00
<?php echo template::button('blogOptionBack', [
2022-01-17 19:32:06 +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:32:06 +01:00
]); ?>
</div>
2022-01-20 10:50:40 +01:00
<div class="col2 offset9">
2022-01-20 09:53:40 +01:00
<?php echo template::submit('blogOptionSubmit'); ?>
2022-01-17 19:32:06 +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 09:53:40 +01:00
<?php echo template::checkbox('blogOptionShowFeeds', true, 'Lien du flux RSS', [
2022-01-17 19:32:06 +01:00
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'feeds']),
]); ?>
</div>
<div class="col6">
2022-01-20 09:53:40 +01:00
<?php echo template::text('blogOptionFeedslabel', [
2022-01-17 19:32:06 +01:00
'label' => 'Texte de l\'étiquette',
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6 offset6">
2022-01-20 09:53:40 +01:00
<?php echo template::select('blogOptionItemsperPage', $module::$ItemsList, [
2022-01-17 19:32:06 +01:00
'label' => 'Articles par page',
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion">Version
<?php echo $module::VERSION; ?>
</div>