draft()) { echo '' . $L->g('Draft') . ''; } elseif ($page->published()) { echo '' . $L->g('Published') . ''; } elseif ($page->sticky()) { echo '' . $L->g('Sticky') . ''; } elseif ($page->isStatic()) { echo '' . $L->g('Static') . ''; } elseif ($page->unlisted()) { echo '' . $L->g('Unlisted') . ''; } } else { echo '' . $L->g('Draft') . ''; } ?>
customFields(); foreach ($customFields as $field=>$options) { if ( !isset($options['position']) || ($options['position']=='top') ) { if ($options['type']=="string") { echo Bootstrap::formInputTextBlock(array( 'name'=>'custom['.$field.']', 'label'=>(isset($options['label'])?$options['label']:''), 'value'=>(($pageKey && $page->custom($field))?$page->custom($field):''), 'tip'=>(isset($options['tip'])?$options['tip']:''), 'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''), 'class'=>'form-control-lg', 'data' => array('field' => $field) )); } elseif ($options['type']=="bool") { echo Bootstrap::formCheckbox(array( 'name'=>'custom['.$field.']', 'label'=>(isset($options['label'])?$options['label']:''), 'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''), 'checked'=>(($pageKey && $page->custom($field))?true:false), 'labelForCheckbox'=>(isset($options['tip'])?$options['tip']:''), 'data' => array('field' => $field) )); } } } ?>
customFields(); foreach ($customFields as $field=>$options) { if ( isset($options['position']) && ($options['position']=='bottom') ) { if ($options['type']=="string") { echo Bootstrap::formInputTextBlock(array( 'name'=>'custom['.$field.']', 'label'=>(isset($options['label'])?$options['label']:''), 'value'=>(($pageKey && $page->custom($field))?$page->custom($field):''), 'tip'=>(isset($options['tip'])?$options['tip']:''), 'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''), 'class'=>'form-control-lg', 'data' => array('field' => $field) )); } elseif ($options['type']=="bool") { echo Bootstrap::formCheckbox(array( 'name'=>'custom['.$field.']', 'label'=>(isset($options['label'])?$options['label']:''), 'placeholder'=>(isset($options['placeholder'])?$options['placeholder']:''), 'checked'=>(($pageKey && $page->custom($field))?true:false), 'labelForCheckbox'=>(isset($options['tip'])?$options['tip']:''), 'data' => array('field' => $field) )); } } } ?>
p('Cover Image') ?>
Cover image preview
p('Category') ?>
'category', 'name' => 'category', 'selected' => ($pageKey ? $page->categoryKey() : ''), 'options' => array_merge(array('' => $L->g('Uncategorized')), $categories->getKeyNameArray()) )); ?>
p('Tags') ?>
p('More options') ?>