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'));
|
|
|
|
|
2017-06-09 20:30:13 +02:00
|
|
|
HTML::formInputHidden(array(
|
|
|
|
'name'=>'tokenCSRF',
|
|
|
|
'value'=>$Security->getTokenCSRF()
|
|
|
|
));
|
|
|
|
|
2017-10-02 22:42:18 +02:00
|
|
|
HTML::legend(array('value'=>$L->g('Content')));
|
2017-06-09 20:30:13 +02:00
|
|
|
|
|
|
|
HTML::formSelect(array(
|
|
|
|
'name'=>'itemsPerPage',
|
|
|
|
'label'=>$L->g('Items per page'),
|
2017-10-04 00:00:54 +02:00
|
|
|
'options'=>array('1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8', '-1'=>$L->g('All content')),
|
2017-06-09 20:30:13 +02:00
|
|
|
'selected'=>$Site->itemsPerPage(),
|
|
|
|
'class'=>'uk-width-1-3 uk-form-medium',
|
|
|
|
'tip'=>$L->g('Number of items to show per page')
|
|
|
|
));
|
|
|
|
|
2017-10-02 22:42:18 +02:00
|
|
|
HTML::formSelect(array(
|
|
|
|
'name'=>'orderBy',
|
|
|
|
'label'=>$L->g('Order content by'),
|
|
|
|
'options'=>array('date'=>$L->g('Date'),'position'=>$L->g('Position')),
|
|
|
|
'selected'=>$Site->orderBy(),
|
|
|
|
'class'=>'uk-width-1-3 uk-form-medium',
|
|
|
|
'tip'=>$L->g('order-the-content-by-date-to-build-a-blog')
|
2017-06-09 20:30:13 +02:00
|
|
|
));
|
|
|
|
|
2017-09-04 19:09:37 +02:00
|
|
|
HTML::legend(array('value'=>$L->g('Predefined pages')));
|
2017-07-11 23:53:53 +02:00
|
|
|
|
|
|
|
HTML::formSelect(array(
|
|
|
|
'name'=>'homepage',
|
2017-09-24 01:17:37 +02:00
|
|
|
'label'=>$L->g('Homepage'),
|
2017-07-11 23:53:53 +02:00
|
|
|
'options'=>$homepageOptions,
|
|
|
|
'selected'=>$Site->homepage(),
|
|
|
|
'class'=>'uk-width-1-3 uk-form-medium',
|
2017-10-02 22:42:18 +02:00
|
|
|
'tip'=>$L->g('Returning page for the main page')
|
2017-07-11 23:53:53 +02:00
|
|
|
));
|
|
|
|
|
2017-10-02 22:42:18 +02:00
|
|
|
$homepageOptions[' '] = '- '.$L->g('Default message').' -';
|
2017-09-04 19:09:37 +02:00
|
|
|
HTML::formSelect(array(
|
|
|
|
'name'=>'pageNotFound',
|
|
|
|
'label'=>$L->g('Page not found'),
|
|
|
|
'options'=>$homepageOptions,
|
|
|
|
'selected'=>$Site->pageNotFound(),
|
|
|
|
'class'=>'uk-width-1-3 uk-form-medium',
|
2017-10-02 22:42:18 +02:00
|
|
|
'tip'=>$L->g('Returning page when the page doesnt exist')
|
2017-06-09 20:30:13 +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')
|
|
|
|
));
|
|
|
|
|
2017-10-02 22:42:18 +02:00
|
|
|
HTML::legend(array('value'=>$L->g('Site URL')));
|
|
|
|
|
|
|
|
HTML::formInputText(array(
|
|
|
|
'name'=>'url',
|
|
|
|
'label'=>'',
|
|
|
|
'value'=>$Site->url(),
|
|
|
|
'class'=>'uk-width-1-2 uk-form-medium',
|
|
|
|
'tip'=>$L->g('full-url-of-your-site'),
|
|
|
|
'placeholder'=>'https://'
|
|
|
|
));
|
|
|
|
|
2017-06-09 20:30:13 +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'=>DOMAIN_PAGES
|
|
|
|
));
|
|
|
|
|
|
|
|
HTML::formInputText(array(
|
|
|
|
'name'=>'uriTag',
|
|
|
|
'label'=>$L->g('Tags'),
|
|
|
|
'value'=>$Site->uriFilters('tag'),
|
|
|
|
'class'=>'uk-width-1-2 uk-form-medium',
|
|
|
|
'tip'=>DOMAIN_TAGS
|
|
|
|
));
|
|
|
|
|
|
|
|
HTML::formInputText(array(
|
|
|
|
'name'=>'uriCategory',
|
|
|
|
'label'=>$L->g('Category'),
|
|
|
|
'value'=>$Site->uriFilters('category'),
|
|
|
|
'class'=>'uk-width-1-2 uk-form-medium',
|
|
|
|
'tip'=>DOMAIN_CATEGORIES
|
|
|
|
));
|
|
|
|
|
2017-09-15 20:02:53 +02:00
|
|
|
HTML::formInputText(array(
|
|
|
|
'name'=>'uriBlog',
|
|
|
|
'label'=>$L->g('Blog'),
|
|
|
|
'value'=>$Site->uriFilters('blog'),
|
|
|
|
'class'=>'uk-width-1-2 uk-form-medium',
|
|
|
|
'tip'=>DOMAIN_BLOG
|
|
|
|
));
|
|
|
|
|
2017-06-09 20:30:13 +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>
|
2017-06-19 23:43:54 +02:00
|
|
|
<a class="uk-button" href="'.HTML_PATH_ADMIN_ROOT.'settings-advanced">'.$L->g('Cancel').'</a>
|
2017-06-09 20:30:13 +02:00
|
|
|
</div>
|
|
|
|
</div>';
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2015-10-25 02:04:57 +02:00
|
|
|
HTML::formClose();
|