$L->g('Site')));
echo Bootstrap::formInputText(array(
'name' => 'title',
'label' => $L->g('Site title'),
'value' => $site->title(),
'tip' => $L->g('use-this-field-to-name-your-site'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'slogan',
'label' => $L->g('Site slogan'),
'value' => $site->slogan(),
'tip' => $L->g('use-this-field-to-add-a-catchy-phrase'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'description',
'label' => $L->g('Site description'),
'value' => $site->description(),
'tip' => $L->g('you-can-add-a-site-description-to-provide'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'footer',
'label' => $L->g('Footer text'),
'value' => $site->footer(),
'tip' => $L->g('you-can-add-a-small-text-on-the-bottom'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Dark Mode')));
echo Bootstrap::formSelect(array(
'name' => 'darkModeAdmin',
'label' => $L->g('Admin panel'),
'options' => array('true' => $L->g('Enabled'), 'false' => $L->g('Disabled')),
'selected' => ($site->darkModeAdmin() ? 'true' : 'false'),
'tip' => $L->g('Enable dark mode for the admin panel. The theme has to support this feature.'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Autosave')));
echo Bootstrap::formInputText(array(
'name' => 'autosaveInterval',
'label' => $L->g('Interval'),
'value' => $site->autosaveInterval(),
'tip' => $L->g('Number in minutes for every execution of autosave'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $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(),
'tip' => $L->g('Number of items to show per page'),
'data' => array('save' => 'true')
));
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(),
'tip' => $L->g('order-the-content-by-date-to-build-a-blog'),
'data' => array('save' => 'true')
));
?>
$L->g('Page content')));
echo Bootstrap::formSelect(array(
'name' => 'markdownParser',
'label' => $L->g('Markdown parser'),
'options' => array('true' => $L->g('Enabled'), 'false' => $L->g('Disabled')),
'selected' => ($site->markdownParser() ? 'true' : 'false'),
'tip' => $L->g('Enable the markdown parser for the content of the page.'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Predefined pages')));
try {
$options = array();
if (!empty($site->homepage())) {
$tmp = new Page($site->homepage());
$options = array($site->homepage()=>$tmp->title());
}
} catch (Exception $e) {
// continue
}
echo Bootstrap::formSelect(array(
'name' => 'homepage',
'label' => $L->g('Homepage'),
'options' => $options, // Complete via Ajax
'selected' => false,
'tip' => $L->g('Returning page for the main page'),
'data' => array('save' => 'true')
));
try {
$options = array();
if (!empty($site->pageNotFound())) {
$tmp = new Page($site->pageNotFound());
$options = array($site->pageNotFound()=>$tmp->title());
}
} catch (Exception $e) {
// continue
}
echo Bootstrap::formSelect(array(
'name' => 'pageNotFound',
'label' => $L->g('Page not found'),
'options' => $options, // Complete via Ajax
'selected' => false,
'tip' => $L->g('Returning page when the page doesnt exist'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Email account settings')));
echo Bootstrap::formInputText(array(
'name' => 'emailFrom',
'label' => $L->g('Sender email'),
'value' => $site->emailFrom(),
'tip' => $L->g('Emails will be sent from this address'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Site URL')));
echo Bootstrap::formInputText(array(
'name' => 'url',
'label' => 'URL',
'value' => $site->url(),
'tip' => $L->g('full-url-of-your-site'),
'placeholder' => 'https://',
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('URL Filters')));
echo Bootstrap::formInputText(array(
'name' => 'uriPage',
'label' => $L->g('Pages'),
'value' => $site->uriFilters('page'),
'tip' => DOMAIN_PAGES,
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'uriTag',
'label' => $L->g('Tags'),
'value' => $site->uriFilters('tag'),
'tip' => DOMAIN_TAGS,
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'uriCategory',
'label' => $L->g('Category'),
'value' => $site->uriFilters('category'),
'tip' => DOMAIN_CATEGORIES,
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'uriBlog',
'label' => $L->g('Blog'),
'value' => $site->uriFilters('blog'),
'tip' => DOMAIN . $site->uriFilters('blog'),
'disabled' => Text::isEmpty($site->uriFilters('blog')),
'data' => array('save' => 'true')
));
?>
$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'),
'tip' => $L->g('Allow unicode characters in the URL and some part of the system.'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Title formats')));
echo Bootstrap::formInputText(array(
'name' => 'titleFormatHomepage',
'label' => $L->g('Homepage'),
'value' => $site->titleFormatHomepage(),
'tip' => $L->g('Variables allowed') . ' {{site-title}}
{{site-slogan}}
{{site-description}}
',
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'titleFormatPages',
'label' => $L->g('Pages'),
'value' => $site->titleFormatPages(),
'tip' => $L->g('Variables allowed') . ' {{page-title}}
{{page-description}}
{{site-title}}
{{site-slogan}}
{{site-description}}
',
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'titleFormatCategory',
'label' => $L->g('Category'),
'value' => $site->titleFormatCategory(),
'class' => '',
'tip' => $L->g('Variables allowed') . ' {{category-name}}
{{site-title}}
{{site-slogan}}
{{site-description}}
',
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'titleFormatTag',
'label' => $L->g('Tag'),
'value' => $site->titleFormatTag(),
'tip' => $L->g('Variables allowed') . ' {{tag-name}}
{{site-title}}
{{site-slogan}}
{{site-description}}
',
'data' => array('save' => 'true')
));
?>
$L->g('Social Networks')));
echo Bootstrap::formInputText(array(
'name' => 'youtube',
'label' => 'YouTube',
'value' => $site->youtube(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'twitter',
'label' => 'Twitter',
'value' => $site->twitter(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'facebook',
'label' => 'Facebook',
'value' => $site->facebook(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'discord',
'label' => 'Discord',
'value' => $site->discord(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'codepen',
'label' => 'CodePen',
'value' => $site->codepen(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'instagram',
'label' => 'Instagram',
'value' => $site->instagram(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'gitlab',
'label' => 'GitLab',
'value' => $site->gitlab(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'github',
'label' => 'GitHub',
'value' => $site->github(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'linkedin',
'label' => 'LinkedIn',
'value' => $site->linkedin(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'xing',
'label' => 'Xing',
'value' => $site->xing(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'mastodon',
'label' => 'Mastodon',
'value' => $site->mastodon(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'dribbble',
'label' => 'Dribbble',
'value' => $site->dribbble(),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'vk',
'label' => 'VK',
'value' => $site->vk(),
'data' => array('save' => 'true')
));
?>
$L->g('Thumbnail small')));
echo Bootstrap::formInputText(array(
'name' => 'thumbnailSmallWidth',
'label' => $L->g('Width'),
'value' => $site->thumbnailSmallWidth(),
'tip' => $L->g('Thumbnail width in pixels'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'thumbnailSmallHeight',
'label' => $L->g('Height'),
'value' => $site->thumbnailSmallHeight(),
'tip' => $L->g('Thumbnail height in pixels'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'thumbnailSmallQuality',
'label' => $L->g('Quality'),
'value' => $site->thumbnailSmallQuality(),
'tip' => $L->g('Thumbnail quality in percentage'),
'data' => array('save' => 'true')
));
echo Bootstrap::formTitle(array('title' => $L->g('Thumbnail medium')));
echo Bootstrap::formInputText(array(
'name' => 'thumbnailMediumWidth',
'label' => $L->g('Width'),
'value' => $site->thumbnailMediumWidth(),
'tip' => $L->g('Thumbnail width in pixels'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'thumbnailMediumHeight',
'label' => $L->g('Height'),
'value' => $site->thumbnailMediumHeight(),
'tip' => $L->g('Thumbnail height in pixels'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'thumbnailMediumQuality',
'label' => $L->g('Quality'),
'value' => $site->thumbnailMediumQuality(),
'tip' => $L->g('Thumbnail quality in percentage'),
'data' => array('save' => 'true')
));
?>
$L->g('Language and timezone')));
echo Bootstrap::formSelect(array(
'name' => 'language',
'label' => $L->g('Language'),
'options' => $L->getLanguageList(),
'selected' => $site->language(),
'tip' => $L->g('select-your-sites-language'),
'data' => array('save' => 'true')
));
echo Bootstrap::formSelect(array(
'name' => 'timezone',
'label' => $L->g('Timezone'),
'options' => Date::timezoneList(),
'selected' => $site->timezone(),
'tip' => $L->g('select-a-timezone-for-a-correct'),
'data' => array('save' => 'true')
));
echo Bootstrap::formInputText(array(
'name' => 'locale',
'label' => $L->g('Locale'),
'value' => $site->locale(),
'tip' => $L->g('with-the-locales-you-can-set-the-regional-user-interface'),
'data' => array('save' => 'true')
));
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(),
'tip' => $L->g('Current format') . ': ' . Date::current($site->dateFormat()),
'data' => array('save' => 'true')
));
?>
$L->g('Custom fields')));
echo Bootstrap::formTextarea(array(
'name' => 'customFields',
'label' => 'JSON Format',
'value' => json_encode($site->customFields(), JSON_PRETTY_PRINT),
'tip' => $L->g('define-custom-fields-for-the-content'),
'rows' => 15,
'data' => array('save' => 'true')
));
?>