include 'common.php';
include 'header.php';
include 'menu.php';
Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
?>
<?php include 'page-title.php'; ?>
<?php if ($page->draft && $page->draft['cid'] != $page->cid): ?>
<?php $pageModifyDate = new Typecho_Date($page->draft['modified']); ?>
<?php _e('当前正在编辑的是保存于%s的草稿, 你可以删除它', $pageModifyDate->word(),
$security->getIndex('/action/contents-page-edit?do=deleteDraft&cid=' . $page->cid)); ?>
<?php $permalink = Typecho_Common::url($options->routingTable['page']['url'], $options->index);
list ($scheme, $permalink) = explode(':', $permalink, 2);
$permalink = ltrim($permalink, '/');
$permalink = preg_replace("/\[([_a-z0-9-]+)[^\]]*\]/i", "{\\1}", $permalink);
if ($page->have()) {
$permalink = str_replace('{cid}', $page->cid, $permalink);
}
$input = '';
?>
<?php echo htmlspecialchars($page->text); ?>
<?php if ($options->markdown && (!$page->have() || $page->isMarkdown)): ?>
<?php Typecho_Plugin::factory('admin/write-page.php')->content($page); ?>
<?php $templates = $page->getTemplates(); foreach ($templates as $template => $name): ?>
template): ?> selected="true"<?php endif; ?>><?php echo $name; ?>
<?php Typecho_Plugin::factory('admin/write-page.php')->option($page); ?>
status == 'publish' || !$page->status): ?> selected<?php endif; ?>><?php _e('公开'); ?>
status == 'hidden'): ?> selected<?php endif; ?>><?php _e('隐藏'); ?>
- allow('comment')): ?>checked="true"<?php endif; ?> />
- allow('ping')): ?>checked="true"<?php endif; ?> />
- allow('feed')): ?>checked="true"<?php endif; ?> />
<?php Typecho_Plugin::factory('admin/write-page.php')->advanceOption($page); ?>
<?php if($page->have()): ?>
<?php $modified = new Typecho_Date($page->modified); ?>
—
<?php _e('本页面由 %s 创建',
Typecho_Common::url('manage-pages.php?uid=' . $page->author->uid, $options->adminUrl), $page->author->screenName); ?>
<?php _e('最后更新于 %s', $modified->word()); ?>
include 'copyright.php';
include 'common-js.php';
include 'form-js.php';
include 'write-js.php';
Typecho_Plugin::factory('admin/write-page.php')->trigger($plugged)->richEditor($page);
if (!$plugged) {
include 'editor-js.php';
}
include 'file-upload-js.php';
include 'custom-fields-js.php';
Typecho_Plugin::factory('admin/write-page.php')->bottom($page);
include 'footer.php';
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史