$L->g('Settings'), 'icon'=>'cog')); ?> 'dynamicTabContent', 'class'=>'tab-content mt-4' )); // Token CSRF echo Bootstrap::formInputHidden(array( 'name'=>'tokenCSRF', 'value'=>$security->getTokenCSRF() )); // Homepage echo Bootstrap::formInputHidden(array( 'name'=>'homepage', 'value'=>$site->homepage() )); ?>
'title', 'label'=>$L->g('Site title'), 'value'=>$site->title(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('use-this-field-to-name-your-site') )); echo Bootstrap::formInputText(array( 'name'=>'slogan', 'label'=>$L->g('Site slogan'), 'value'=>$site->slogan(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('use-this-field-to-add-a-catchy-phrase') )); echo Bootstrap::formInputText(array( 'name'=>'description', 'label'=>$L->g('Site description'), 'value'=>$site->description(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('you-can-add-a-site-description-to-provide') )); echo Bootstrap::formInputText(array( 'name'=>'footer', 'label'=>$L->g('Footer text'), 'value'=>$site->footer(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('you-can-add-a-small-text-on-the-bottom') )); echo '
'.$L->g('Cancel').'
'; ?>
$L->g('Content'))); echo Bootstrap::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', '-1'=>$L->g('All content')), 'selected'=>$site->itemsPerPage(), 'class'=>'', 'tip'=>$L->g('Number of items to show per page') )); echo Bootstrap::formSelect(array( 'name'=>'orderBy', 'label'=>$L->g('Order content by'), 'options'=>array('date'=>$L->g('Date'),'position'=>$L->g('Position')), 'selected'=>$site->orderBy(), 'class'=>'', 'tip'=>$L->g('order-the-content-by-date-to-build-a-blog') )); echo Bootstrap::formTitle(array('title'=>$L->g('Predefined pages'))); // Homepage try { $homeKey = $site->homepage(); $home = new Page($homeKey); $homeValue = $home->title(); } catch (Exception $e) { $homeValue = ''; } echo Bootstrap::formInputText(array( 'name'=>'homepageTMP', 'label'=>$L->g('Homepage'), 'value'=>$homeValue, 'class'=>'', 'placeholder'=>$L->g('Start typing a page title to see a list of suggestions.'), 'tip'=>$L->g('Returning page for the main page') )); $homepageOptions[' '] = '- '.$L->g('Default message').' -'; echo Bootstrap::formSelect(array( 'name'=>'pageNotFound', 'label'=>$L->g('Page not found'), 'options'=>$homepageOptions, 'selected'=>$site->pageNotFound(), 'class'=>'', 'tip'=>$L->g('Returning page when the page doesnt exist') )); echo Bootstrap::formTitle(array('title'=>$L->g('Email account settings'))); echo Bootstrap::formInputText(array( 'name'=>'emailFrom', 'label'=>$L->g('Sender email'), 'value'=>$site->emailFrom(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Emails will be sent from this address') )); echo Bootstrap::formTitle(array('title'=>$L->g('Autosave'))); echo Bootstrap::formInputText(array( 'name'=>'autosaveInterval', 'label'=>$L->g('Interval'), 'value'=>$site->autosaveInterval(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Number in minutes for every execution of autosave') )); echo Bootstrap::formTitle(array('title'=>$L->g('Site URL'))); echo Bootstrap::formInputText(array( 'name'=>'url', 'label'=>'URL', 'value'=>$site->url(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('full-url-of-your-site'), 'placeholder'=>'https://' )); echo Bootstrap::formTitle(array('title'=>$L->g('URL Filters'))); echo Bootstrap::formInputText(array( 'name'=>'uriPage', 'label'=>$L->g('Pages'), 'value'=>$site->uriFilters('page'), 'class'=>'', 'placeholder'=>'', 'tip'=>DOMAIN_PAGES )); echo Bootstrap::formInputText(array( 'name'=>'uriTag', 'label'=>$L->g('Tags'), 'value'=>$site->uriFilters('tag'), 'class'=>'', 'placeholder'=>'', 'tip'=>DOMAIN_TAGS )); echo Bootstrap::formInputText(array( 'name'=>'uriCategory', 'label'=>$L->g('Category'), 'value'=>$site->uriFilters('category'), 'class'=>'', 'placeholder'=>'', 'tip'=>DOMAIN_CATEGORIES )); echo Bootstrap::formInputText(array( 'name'=>'uriBlog', 'label'=>$L->g('Blog'), 'value'=>$site->uriFilters('blog'), 'class'=>'', 'placeholder'=>'', 'tip'=>DOMAIN.$site->uriFilters('blog'), 'disabled'=>Text::isEmpty($site->uriFilters('blog')) )); echo '
'.$L->g('Cancel').'
'; ?>
$L->g('Extreme friendly URL'))); echo Bootstrap::formSelect(array( 'name'=>'extremeFriendly', 'label'=>$L->g('Allow Unicode'), 'options'=>array('true'=>$L->g('Enabled'), 'false'=>$L->g('Disabled')), 'selected'=>($site->extremeFriendly()?'true':'false'), 'class'=>'', 'tip'=>$L->g('Allow unicode characters in the URL and some part of the system.') )); echo Bootstrap::formTitle(array('title'=>$L->g('Title formats'))); echo Bootstrap::formInputText(array( 'name'=>'titleFormatHomepage', 'label'=>$L->g('Homepage'), 'value'=>$site->titleFormatHomepage(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Variables allowed').' {{site-title}} {{site-slogan}} {{site-description}}', 'placeholder'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'titleFormatPages', 'label'=>$L->g('Pages'), 'value'=>$site->titleFormatPages(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Variables allowed').' {{page-title}} {{page-description}} {{site-title}} {{site-slogan}} {{site-description}}', 'placeholder'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'titleFormatCategory', 'label'=>$L->g('Category'), 'value'=>$site->titleFormatCategory(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Variables allowed').' {{category-name}} {{site-title}} {{site-slogan}} {{site-description}}', 'placeholder'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'titleFormatTag', 'label'=>$L->g('Tag'), 'value'=>$site->titleFormatTag(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Variables allowed').' {{tag-name}} {{site-title}} {{site-slogan}} {{site-description}}', 'placeholder'=>'' )); echo '
'.$L->g('Cancel').'
'; ?>
'twitter', 'label'=>'Twitter', 'value'=>$site->twitter(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'facebook', 'label'=>'Facebook', 'value'=>$site->facebook(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'codepen', 'label'=>'CodePen', 'value'=>$site->codepen(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'googlePlus', 'label'=>'Google+', 'value'=>$site->googlePlus(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'instagram', 'label'=>'Instagram', 'value'=>$site->instagram(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'gitlab', 'label'=>'GitLab', 'value'=>$site->gitlab(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'github', 'label'=>'GitHub', 'value'=>$site->github(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'linkedin', 'label'=>'LinkedIn', 'value'=>$site->linkedin(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo Bootstrap::formInputText(array( 'name'=>'mastodon', 'label'=>'Mastodon', 'value'=>$site->mastodon(), 'class'=>'', 'placeholder'=>'', 'tip'=>'' )); echo '
'.$L->g('Cancel').'
'; ?>
'language', 'label'=>$L->g('Language'), 'options'=>$L->getLanguageList(), 'selected'=>$site->language(), 'class'=>'', 'tip'=>$L->g('select-your-sites-language') )); echo Bootstrap::formSelect(array( 'name'=>'timezone', 'label'=>$L->g('Timezone'), 'options'=>Date::timezoneList(), 'selected'=>$site->timezone(), 'class'=>'', 'tip'=>$L->g('select-a-timezone-for-a-correct') )); echo Bootstrap::formInputText(array( 'name'=>'locale', 'label'=>$L->g('Locale'), 'value'=>$site->locale(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('with-the-locales-you-can-set-the-regional-user-interface') )); echo Bootstrap::formTitle(array('title'=>$L->g('Date and time formats'))); echo Bootstrap::formInputText(array( 'name'=>'dateFormat', 'label'=>$L->g('Date format'), 'value'=>$site->dateFormat(), 'class'=>'', 'placeholder'=>'', 'tip'=>$L->g('Current format').': '.Date::current($site->dateFormat()) )); echo '
'.$L->g('Cancel').'
'; ?>