$L->g('Advanced settings'), 'icon'=>'cogs')); HTML::formOpen(array('class'=>'uk-form-horizontal')); HTML::formInputHidden(array( 'name'=>'tokenCSRF', 'value'=>$Security->getTokenCSRF() )); HTML::legend(array('value'=>$L->g('General'), 'class'=>'first-child')); HTML::formSelect(array( 'name'=>'itemsPerPage', 'label'=>$L->g('Items per page'), 'options'=>array('1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8'), 'selected'=>$Site->itemsPerPage(), 'class'=>'uk-width-1-3 uk-form-medium', 'tip'=>$L->g('Number of items 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') )); HTML::legend(array('value'=>$L->g('Website or Blog'))); HTML::formSelect(array( 'name'=>'orderBy', 'label'=>$L->g('Order content By'), 'options'=>array('date'=>'Date','position'=>'Position'), 'selected'=>$Site->orderBy(), 'class'=>'uk-width-1-3 uk-form-medium', 'tip'=>$L->g('Order the content by date to create a Blog or order the content by position to create a Website') )); HTML::legend(array('value'=>$L->g('Special content'))); $options = array(); foreach($dbPages->db as $key=>$fields) { $page = buildPage($key); $options[$key] = $page->title(); } HTML::formSelect(array( 'name'=>'pageError', 'label'=>$L->g('404 Page Not Found'), 'options'=>$options, 'selected'=>$Site->pageError(), 'class'=>'uk-width-1-3 uk-form-medium', 'tip'=>$L->g('This page is showed only when the page does not exist anymore') )); HTML::formSelect(array( 'name'=>'pageAbout', 'label'=>$L->g('About page'), 'options'=>$options, 'addEmptySpace'=>true, 'selected'=>$Site->pageAbout(), 'class'=>'uk-width-1-3 uk-form-medium', 'tip'=>$L->g('This page is to define a history about you or the content of your site') )); HTML::formSelect(array( 'name'=>'pageContact', 'label'=>$L->g('Contact page'), 'options'=>$options, 'addEmptySpace'=>true, 'selected'=>$Site->pageContact(), 'class'=>'uk-width-1-3 uk-form-medium', 'tip'=>$L->g('Page for contact information') )); 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') )); 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 )); echo '
'; HTML::formClose();