'jsform', 'class'=>'tab-content mt-1' )); // Token CSRF echo Bootstrap::formInputHidden(array( 'name'=>'tokenCSRF', 'value'=>$security->getTokenCSRF() )); // Parent echo Bootstrap::formInputHidden(array( 'name'=>'parent', 'value'=>$page->parent() )); // UUID echo Bootstrap::formInputHidden(array( 'name'=>'uuid', 'value'=>$page->uuid() )); // Status = published, draft, sticky, static echo Bootstrap::formInputHidden(array( 'name'=>'type', 'value'=>$page->type() )); // Page current key echo Bootstrap::formInputHidden(array( 'name'=>'key', 'value'=>$page->key() )); // Cover image echo Bootstrap::formInputHidden(array( 'name'=>'coverImage', 'value'=>$page->coverImage() )); // Content echo Bootstrap::formInputHidden(array( 'name'=>'content', 'value'=>'' )); ?>
draft()): ?>
p('the-content-is-saved-as-a-draft-to-publish-it') ?>
p('Cancel') ?> children())===0) { echo ''; } ?>

p('Cover image') ?>

coverImage(false); $externalCoverImage = ''; if (filter_var($coverImage, FILTER_VALIDATE_URL)) { $coverImage = ''; $externalCoverImage = $page->coverImage(false); } ?> coverImagePreview $L->g('External Cover image'))); echo Bootstrap::formInputTextBlock(array( 'name'=>'externalCoverImage', 'placeholder'=>'https://', 'value'=>$externalCoverImage, 'tip'=>$L->g('Set a cover image from external URL, such as a CDN or some server dedicated for images.') )); ?>

p('General') ?>

'', 'label'=>$L->g('User'), 'placeholder'=>'', 'value'=>$page->username(), 'tip'=>'', 'disabled'=>true )); // Date echo Bootstrap::formInputText(array( 'name'=>'date', 'label'=>$L->g('Date'), 'placeholder'=>'', 'value'=>$page->dateRaw(), 'tip'=>$L->g('date-format-format') )); // Type echo Bootstrap::formSelect(array( 'name'=>'typeTMP', 'label'=>$L->g('Type'), 'selected'=>$page->type(), 'options'=>array( 'published'=>'- '.$L->g('Default').' -', 'sticky'=>$L->g('Sticky'), 'static'=>$L->g('Static') ), 'tip'=>'' )); // Parent try { $parentKey = $page->parent(); $parent = new Page($parentKey); $parentOption = $parent->title(); } catch (Exception $e) { $parentOption = ''; } echo Bootstrap::formInputText(array( 'name'=>'parentTMP', 'label'=>$L->g('Parent'), 'placeholder'=>'', 'tip'=>$L->g('Start typing a page title to see a list of suggestions.'), 'value'=>$parentOption )); // Position echo Bootstrap::formInputText(array( 'name'=>'position', 'label'=>$L->g('Position'), 'tip'=>$L->g('Field used when ordering content by position'), 'value'=>$page->position() )); // Template echo Bootstrap::formInputText(array( 'name'=>'template', 'label'=>$L->g('Template'), 'placeholder'=>'', 'value'=>$page->template(), 'tip'=>$L->g('Write a template name to filter the page in the theme and change the style of the page.') )); echo Bootstrap::formTitle(array('title'=>'SEO')); // Tags echo Bootstrap::formInputText(array( 'name'=>'tags', 'label'=>$L->g('Tags'), 'placeholder'=>'', 'value'=>$page->tags(), 'tip'=>$L->g('Write the tags separated by comma') )); // Friendly URL echo Bootstrap::formInputText(array( 'name'=>'slug', 'tip'=>$L->g('URL associated with the content'), 'label'=>$L->g('Friendly URL'), 'placeholder'=>$L->g('Leave empty for autocomplete by Bludit.'), 'value'=>$page->slug() )); echo Bootstrap::formCheckbox(array( 'name'=>'noindex', 'label'=>'Robots', 'labelForCheckbox'=>$L->g('apply-code-noindex-code-to-this-page'), 'placeholder'=>'', 'class'=>'mt-4', 'checked'=>$page->noindex(), 'tip'=>$L->g('This tells search engines not to show this page in their search results.') )); echo Bootstrap::formCheckbox(array( 'name'=>'nofollow', 'label'=>'', 'labelForCheckbox'=>$L->g('apply-code-nofollow-code-to-this-page'), 'placeholder'=>'', 'checked'=>$page->nofollow(), 'tip'=>$L->g('This tells search engines not to follow links on this page.') )); echo Bootstrap::formCheckbox(array( 'name'=>'noarchive', 'label'=>'', 'labelForCheckbox'=>$L->g('apply-code-noarchive-code-to-this-page'), 'placeholder'=>'', 'checked'=>$page->noarchive(), 'tip'=>$L->g('This tells search engines not to save a cached copy of this page.') )); ?>
$L->g('Delete'), 'buttonPrimaryClass'=>'jsbuttonDeleteAccept', 'buttonSecondary'=>$L->g('Cancel'), 'buttonSecondaryClass'=>'', 'modalTitle'=>$L->g('Delete content'), 'modalText'=>$L->g('Are you sure you want to delete this page'), 'modalId'=>'jsdeletePageModal' )); ?>