bludit/bl-kernel/admin/views/settings-advanced.php

85 lines
2.5 KiB
PHP
Raw Normal View History

2015-10-19 00:45:58 +02:00
<?php
2015-10-25 02:20:01 +02:00
HTML::title(array('title'=>$L->g('Advanced settings'), 'icon'=>'cogs'));
2015-10-19 00:45:58 +02:00
HTML::formOpen(array('class'=>'uk-form-horizontal'));
HTML::formInputHidden(array(
2015-10-20 05:14:28 +02:00
'name'=>'tokenCSRF',
'value'=>$Security->getTokenCSRF()
2015-10-19 00:45:58 +02:00
));
2015-11-30 01:45:30 +01:00
HTML::legend(array('value'=>$L->g('General'), 'class'=>'first-child'));
2015-10-19 00:45:58 +02:00
HTML::formSelect(array(
2017-05-17 00:04:53 +02:00
'name'=>'itemsPerPage',
'label'=>$L->g('Items per page'),
2015-10-19 00:45:58 +02:00
'options'=>array('1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8'),
2017-05-17 00:04:53 +02:00
'selected'=>$Site->itemsPerPage(),
2015-10-19 00:45:58 +02:00
'class'=>'uk-width-1-3 uk-form-medium',
'tip'=>$L->g('number-of-posts-to-show-per-page')
));
HTML::formInputText(array(
'name'=>'url',
'label'=>$L->g('Site URL'),
'value'=>$Site->url(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('the-url-of-your-site')
));
2017-05-17 00:04:53 +02:00
HTML::legend(array('value'=>$L->g('Website or Blog')));
2017-05-19 00:45:14 +02:00
HTML::formSelect(array(
2017-05-17 00:04:53 +02:00
'name'=>'orderBy',
2017-05-19 00:45:14 +02:00
'label'=>$L->g('Order Pages By'),
'options'=>array('date'=>'Date','position'=>'Position'),
'selected'=>$Site->orderBy(),
'class'=>'uk-width-1-3 uk-form-medium',
'tip'=>$L->g('Order the pages by date to create a Blog or order the pages by position to create a Website')
2017-05-17 00:04:53 +02:00
));
2015-10-20 05:14:28 +02:00
HTML::legend(array('value'=>$L->g('Email account settings')));
HTML::formInputText(array(
'name'=>'emailFrom',
'label'=>$L->g('Sender email'),
'value'=>$Site->emailFrom(),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>$L->g('Emails will be sent from this address')
));
2015-10-19 00:45:58 +02:00
HTML::legend(array('value'=>$L->g('URL Filters')));
HTML::formInputText(array(
'name'=>'uriPage',
'label'=>$L->g('Pages'),
'value'=>$Site->uriFilters('page'),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
HTML::formInputText(array(
'name'=>'uriTag',
'label'=>$L->g('Tags'),
'value'=>$Site->uriFilters('tag'),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2017-05-03 21:10:03 +02:00
HTML::formInputText(array(
'name'=>'uriCategory',
'label'=>$L->g('Category'),
'value'=>$Site->uriFilters('category'),
'class'=>'uk-width-1-2 uk-form-medium',
'tip'=>''
));
2017-05-17 00:04:53 +02:00
2015-10-19 00:45:58 +02:00
echo '<div class="uk-form-row">
<div class="uk-form-controls">
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
</div>
</div>';
2015-10-25 02:04:57 +02:00
HTML::formClose();