福中山庄 wribao.php230.com,write-page.php

这是一个关于使用WebIDE编辑博客页面的代码示例。内容包括加载公共文件、头部、菜单,展示页面编辑状态,处理草稿,显示编辑选项,如内容、模板选择、权限设置等。还涉及到了Markdown支持、附件管理、自定义字段、高级选项和编辑器功能。
摘要由CSDN通过智能技术生成

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

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值