mirror of
https://github.com/typecho/typecho.git
synced 2025-03-25 12:29:43 +01:00
Merge branch 'master' of https://github.com/typecho/typecho-replica
This commit is contained in:
commit
4242c50e9a
@ -1,5 +1,5 @@
|
||||
<?php if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<div class="typecho-foot">
|
||||
<div class="typecho-foot" role="contentinfo">
|
||||
<div class="copyright">
|
||||
<?php _e('由 <a href="http://typecho.org">%s</a> 强力驱动, 版本 %s (%s)', $options->software, $prefixVersion, $suffixVersion); ?>
|
||||
</div>
|
||||
|
@ -346,9 +346,8 @@ button {
|
||||
font-weight: bold; }
|
||||
|
||||
#typecho-nav-list .child {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 36px;
|
||||
top: -9999em;
|
||||
margin: 0;
|
||||
min-width: 160px;
|
||||
max-width: 240px;
|
||||
@ -357,7 +356,7 @@ button {
|
||||
z-index: 250; }
|
||||
|
||||
#typecho-nav-list .root:hover .child {
|
||||
display: block; }
|
||||
top: 36px; }
|
||||
|
||||
#typecho-nav-list .child li a {
|
||||
color: #BBB;
|
||||
@ -701,10 +700,12 @@ a.operate-reply {
|
||||
color: #B94A48; }
|
||||
|
||||
.typecho-list-table tr td .hidden-by-mouse {
|
||||
visibility: hidden; }
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
|
||||
opacity: 0; }
|
||||
|
||||
.typecho-list-table tr:hover td .hidden-by-mouse {
|
||||
visibility: visible; }
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
||||
opacity: 1; }
|
||||
|
||||
/**
|
||||
* 评论管理
|
||||
@ -870,7 +871,9 @@ a.operate-reply {
|
||||
font-size: .92857em; }
|
||||
|
||||
.typecho-post-area #advance-panel-btn {
|
||||
color: #999; }
|
||||
padding: 0 10px;
|
||||
height: 26px;
|
||||
font-size: .92857em; }
|
||||
|
||||
.typecho-post-area #advance-panel {
|
||||
display: none; }
|
||||
|
@ -9,7 +9,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
<div class="container typecho-dashboard">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-mb-12 col-tb-3 typecho-dashboard-nav">
|
||||
<div class="col-mb-12 col-tb-3 typecho-dashboard-nav" role="main">
|
||||
<p class="intro"><?php _e('欢迎使用 Typecho, 您可以使用下面的链接开始您的 Blog 之旅:'); ?></p>
|
||||
|
||||
<ul class="intro-link">
|
||||
@ -54,7 +54,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-mb-12 col-tb-6 typecho-dashboard-main">
|
||||
<div class="col-mb-12 col-tb-6 typecho-dashboard-main" role="complementary">
|
||||
<section>
|
||||
<h3><?php _e('最近发表的文章'); ?></h3>
|
||||
<?php Typecho_Widget::widget('Widget_Contents_Post_Recent', 'pageSize=7')->to($posts); ?>
|
||||
@ -90,7 +90,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-mb-12 col-tb-3 typecho-dashboard-nav">
|
||||
<div class="col-mb-12 col-tb-3 typecho-dashboard-nav" role="complementary">
|
||||
<?php $version = Typecho_Cookie::get('__typecho_check_version'); ?>
|
||||
<?php if ($version && $version['available']): ?>
|
||||
<div class="update-check">
|
||||
|
@ -24,9 +24,15 @@ Typecho_Cookie::delete('__typecho_remember_name');
|
||||
|
||||
<div class="typecho-login">
|
||||
<h1>Typecho</h1>
|
||||
<form action="<?php $options->loginAction(); ?>" method="post" name="login">
|
||||
<p><input type="text" id="name" name="name" value="<?php echo $rememberName; ?>" placeholder="<?php _e('用户名'); ?>" class="text-l w-100" /></p>
|
||||
<p><input type="password" id="password" name="password" class="text-l w-100" placeholder="<?php _e('密码'); ?>" /></p>
|
||||
<form action="<?php $options->loginAction(); ?>" method="post" name="login" role="form">
|
||||
<p>
|
||||
<label for="name" class="visuallyhidden"><?php _e('用户名'); ?></label>
|
||||
<input type="text" id="name" name="name" value="<?php echo $rememberName; ?>" placeholder="<?php _e('用户名'); ?>" class="text-l w-100" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="password" class="visuallyhidden"><?php _e('密码'); ?></label>
|
||||
<input type="password" id="password" name="password" class="text-l w-100" placeholder="<?php _e('密码'); ?>" />
|
||||
</p>
|
||||
<p class="submit">
|
||||
<!-- <label for="remember"><input type="checkbox" name="remember" class="checkbox" value="1" id="remember" /> <?php _e('记住我'); ?></label> -->
|
||||
<button type="submit" class="btn-l w-100 primary"><?php _e('登录'); ?></button>
|
||||
|
@ -10,7 +10,7 @@ $isAllComments = ('on' == $request->get('__typecho_all_comments') || 'on' == Typ
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="main">
|
||||
<div class="col-mb-12 typecho-list">
|
||||
<ul class="typecho-option-tabs clearfix">
|
||||
<li<?php if(!isset($request->status) || 'approved' == $request->get('status')): ?> class="current"<?php endif; ?>><a href="<?php $options->adminUrl('manage-comments.php'
|
||||
@ -58,7 +58,7 @@ $isAllComments = ('on' == $request->get('__typecho_all_comments') || 'on' == Typ
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="search" role="search">
|
||||
<?php if ('' != $request->keywords || '' != $request->category): ?>
|
||||
<a href="<?php $options->adminUrl('manage-comments.php'
|
||||
. (isset($request->status) || isset($request->cid) ? '?' .
|
||||
@ -243,7 +243,7 @@ $(document).ready(function () {
|
||||
} else {
|
||||
var form = $('<form method="post" action="'
|
||||
+ t.attr('rel') + '" class="comment-reply">'
|
||||
+ '<p><textarea name="text" class="w-90" rows="3"></textarea></p>'
|
||||
+ '<p><label for="text" class="visuallyhidden"><?php _e('内容'); ?></label><textarea id="text" name="text" class="w-90" rows="3"></textarea></p>'
|
||||
+ '<p><button type="submit" class="btn-s primary"><?php _e('回复'); ?></button> <button type="button" class="btn-s cancel"><?php _e('取消'); ?></button></p>'
|
||||
+ '</form>').insertBefore($('.comment-action', td));
|
||||
|
||||
|
@ -10,7 +10,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="main">
|
||||
<div class="col-mb-12">
|
||||
|
||||
<div class="typecho-list-operate clearfix">
|
||||
@ -24,7 +24,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="search" role="search">
|
||||
<?php if ('' != $request->keywords): ?>
|
||||
<a href="<?php $options->adminUrl('manage-medias.php'); ?>"><?php _e('« 取消筛选'); ?></a>
|
||||
<?php endif; ?>
|
||||
|
@ -15,7 +15,7 @@ include 'menu.php';
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-mb-12 col-tb-8">
|
||||
<div class="col-mb-12 col-tb-8" role="main">
|
||||
<?php if(!isset($request->type) || 'category' == $request->get('type')): ?>
|
||||
<?php Typecho_Widget::widget('Widget_Metas_Category_List')->to($categories); ?>
|
||||
|
||||
@ -123,7 +123,7 @@ include 'menu.php';
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-4 typecho-mini-panel typecho-radius-topleft typecho-radius-topright typecho-radius-bottomleft typecho-radius-bottomright">
|
||||
<div class="col-mb-12 col-tb-4" role="form">
|
||||
<?php if(!isset($request->type) || 'category' == $request->get('type')): ?>
|
||||
<?php Typecho_Widget::widget('Widget_Metas_Category_Edit')->form()->render(); ?>
|
||||
<?php else: ?>
|
||||
|
@ -8,7 +8,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="main">
|
||||
<div class="col-mb-12 typecho-list">
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<form method="get">
|
||||
@ -21,7 +21,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="search" role="search">
|
||||
<?php if ('' != $request->keywords): ?>
|
||||
<a href="<?php $options->adminUrl('manage-pages.php'); ?>"><?php _e('« 取消筛选'); ?></a>
|
||||
<?php endif; ?>
|
||||
|
@ -8,7 +8,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="main">
|
||||
<div class="col-mb-12 typecho-list">
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<form method="get">
|
||||
@ -21,7 +21,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="search" role="search">
|
||||
<?php if ('' != $request->keywords || '' != $request->category): ?>
|
||||
<a href="<?php $options->adminUrl('manage-posts.php' . (isset($request->uid) ? '?uid=' . htmlspecialchars($request->get('uid')) : '')); ?>"><?php _e('« 取消筛选'); ?></a>
|
||||
<?php endif; ?>
|
||||
|
@ -6,7 +6,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="main">
|
||||
<div class="col-mb-12 typecho-list">
|
||||
<div class="typecho-list-operate clearfix">
|
||||
<form method="get">
|
||||
@ -19,7 +19,7 @@ include 'menu.php';
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="search" role="search">
|
||||
<?php if ('' != $request->keywords): ?>
|
||||
<a href="<?php $options->adminUrl('manage-users.php'); ?>"><?php _e('« 取消筛选'); ?></a>
|
||||
<?php endif; ?>
|
||||
|
@ -10,7 +10,7 @@ Typecho_Widget::widget('Widget_Contents_Attachment_Edit')->to($attachment);
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-mb-12 col-tb-8">
|
||||
<div class="col-mb-12 col-tb-8" role="main">
|
||||
<?php if ($attachment->attachment->isImage): ?>
|
||||
<p><img src="<?php $attachment->attachment->url(); ?>" alt="<?php $attachment->attachment->name(); ?>" class="typecho-attachment-photo" /></p>
|
||||
<?php endif; ?>
|
||||
@ -31,7 +31,7 @@ Typecho_Widget::widget('Widget_Contents_Attachment_Edit')->to($attachment);
|
||||
<ul id="file-list"></ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-4 edit-media">
|
||||
<div class="col-mb-12 col-tb-4 edit-media" role="form">
|
||||
<?php $attachment->form()->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<div class="typecho-head-nav clearfix">
|
||||
<div class="typecho-head-nav clearfix" role="navigation">
|
||||
<nav id="typecho-nav-list">
|
||||
<?php $menu->output(); ?>
|
||||
</nav>
|
||||
|
@ -7,7 +7,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<?php Typecho_Widget::widget('Widget_Options_Discussion')->form()->render(); ?>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<?php Typecho_Widget::widget('Widget_Options_General')->form()->render(); ?>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<?php Typecho_Widget::widget('Widget_Options_Permalink')->form()->render(); ?>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<?php Typecho_Widget::widget('Widget_Plugins_Config')->config()->render(); ?>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<?php Typecho_Widget::widget('Widget_Options_Reading')->form()->render(); ?>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@ include 'menu.php';
|
||||
<li class="current"><a href="<?php $options->adminUrl('options-theme.php'); ?>"><?php _e('设置外观'); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
|
||||
<div class="col-mb-12 col-tb-8 col-tb-offset-2" role="form">
|
||||
<?php Typecho_Widget::widget('Widget_Themes_Config')->config()->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -23,7 +23,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
?></p>
|
||||
</div>
|
||||
|
||||
<div class="col-mb-12 col-tb-6 col-tb-offset-1 typecho-content-panel">
|
||||
<div class="col-mb-12 col-tb-6 col-tb-offset-1 typecho-content-panel" role="form">
|
||||
<section>
|
||||
<h3><?php _e('个人资料'); ?></h3>
|
||||
<?php Typecho_Widget::widget('Widget_Users_Profile')->profileForm()->render(); ?>
|
||||
|
@ -40,9 +40,15 @@ Typecho_Cookie::delete('__typecho_remember_mail');
|
||||
|
||||
<div class="typecho-login">
|
||||
<h1>Typecho</h1>
|
||||
<form action="<?php $options->registerAction(); ?>" method="post" name="register">
|
||||
<p><input type="text" id="name" name="name" placeholder="<?php _e('用户名'); ?>" value="<?php echo $rememberName; ?>" class="text-l w-100" /></p>
|
||||
<p><input type="email" id="mail" name="mail" placeholder="<?php _e('Email'); ?>" value="<?php echo $rememberMail; ?>" class="text-l w-100" /></p>
|
||||
<form action="<?php $options->registerAction(); ?>" method="post" name="register" role="form">
|
||||
<p>
|
||||
<label for="name" class="visuallyhidden"><?php _e('用户名'); ?></label>
|
||||
<input type="text" id="name" name="name" placeholder="<?php _e('用户名'); ?>" value="<?php echo $rememberName; ?>" class="text-l w-100" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="mail" class="visuallyhidden"><?php _e('Email'); ?></label>
|
||||
<input type="email" id="mail" name="mail" placeholder="<?php _e('Email'); ?>" value="<?php echo $rememberMail; ?>" class="text-l w-100" />
|
||||
</p>
|
||||
<p class="submit">
|
||||
<!-- <label for="remember"><input type="checkbox" name="remember" class="checkbox" value="1" id="remember" /> <?php _e('记住我'); ?></label> -->
|
||||
<button type="submit" class="btn-l w-100 primary"><?php _e('注册'); ?></button>
|
||||
|
@ -52,9 +52,8 @@
|
||||
}
|
||||
|
||||
#typecho-nav-list .child {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 36px;
|
||||
top: -9999em;
|
||||
margin: 0;
|
||||
min-width: 160px;
|
||||
max-width: 240px;
|
||||
@ -64,7 +63,7 @@
|
||||
}
|
||||
|
||||
#typecho-nav-list .root:hover .child {
|
||||
display: block;
|
||||
top: 36px;
|
||||
}
|
||||
|
||||
#typecho-nav-list .child li a {
|
||||
|
@ -434,11 +434,11 @@ a.operate-reply {
|
||||
|
||||
|
||||
.typecho-list-table tr td .hidden-by-mouse {
|
||||
visibility: hidden;
|
||||
@include opacity(0);
|
||||
}
|
||||
|
||||
.typecho-list-table tr:hover td .hidden-by-mouse {
|
||||
visibility: visible;
|
||||
@include opacity(1);
|
||||
}
|
||||
|
||||
|
||||
@ -650,7 +650,9 @@ a.operate-reply {
|
||||
}
|
||||
|
||||
.typecho-post-area #advance-panel-btn {
|
||||
color: #999;
|
||||
padding: 0 10px;
|
||||
height: 26px;
|
||||
font-size: .92857em;
|
||||
}
|
||||
|
||||
.typecho-post-area #advance-panel {
|
||||
|
@ -30,6 +30,7 @@ Typecho_Widget::widget('Widget_Themes_Files')->to($files);
|
||||
<div class="col-mb-12 col-tb-8 col-9 content">
|
||||
<form method="post" name="theme" id="theme" action="<?php $options->index('/action/themes-edit'); ?>">
|
||||
<p>
|
||||
<label for="content" class="visuallyhidden"><?php _e('编辑源码'); ?></label>
|
||||
<textarea name="content" id="content" class="w-100 mono" <?php if(!$files->currentIsWriteable()): ?>readonly<?php endif; ?>><?php echo $files->currentContent(); ?></textarea>
|
||||
</p>
|
||||
<p class="submit">
|
||||
|
@ -8,7 +8,7 @@ include 'menu.php';
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main">
|
||||
<div class="col-group typecho-page-main" role="form">
|
||||
<div class="col-mb-12 col-tb-6 col-tb-offset-3">
|
||||
<?php Typecho_Widget::widget('Widget_Users_Edit')->form()->render(); ?>
|
||||
</div>
|
||||
|
@ -7,27 +7,34 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main typecho-post-area">
|
||||
<div class="col-group typecho-page-main typecho-post-area" role="form">
|
||||
<form action="<?php $options->index('/action/contents-page-edit'); ?>" method="post" name="write_page">
|
||||
<div class="col-mb-12 col-tb-9">
|
||||
<div class="col-mb-12 col-tb-9" role="main">
|
||||
<?php if ($page->draft && $page->draft['cid'] != $page->cid): ?>
|
||||
<?php $pageModifyDate = new Typecho_Date($page->draft['modified']); ?>
|
||||
<cite class="edit-draft-notice"><?php _e('当前正在编辑的是保存于%s的草稿, 你可以<a href="%s">删除它</a>', $pageModifyDate->word(),
|
||||
Typecho_Common::url('/action/contents-page-edit?do=deleteDraft&cid=' . $page->cid, $options->index)); ?></cite>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="title"><input type="text" id="title" name="title" autocomplete="off" value="<?php echo htmlspecialchars($page->title); ?>" placeholder="<?php _e('标题'); ?>" class="w-100 text title" /></p>
|
||||
<?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 = '<input type="text" id="slug" name="slug" autocomplete="off" value="' . htmlspecialchars($page->slug) . '" class="mono" />';
|
||||
?>
|
||||
<p class="mono url-slug"><?php echo preg_replace("/\{slug\}/i", $input, $permalink); ?></p>
|
||||
<p class="title">
|
||||
<label for="title" class="visuallyhidden"><?php _e('标题'); ?></label>
|
||||
<input type="text" id="title" name="title" autocomplete="off" value="<?php echo htmlspecialchars($page->title); ?>" placeholder="<?php _e('标题'); ?>" class="w-100 text title" />
|
||||
</p>
|
||||
<?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 = '<input type="text" id="slug" name="slug" autocomplete="off" value="' . htmlspecialchars($page->slug) . '" class="mono" />';
|
||||
?>
|
||||
<p class="mono url-slug">
|
||||
<label for="slug" class="visuallyhidden"><?php _e('网址缩略名'); ?></label>
|
||||
<?php echo preg_replace("/\{slug\}/i", $input, $permalink); ?>
|
||||
</p>
|
||||
<p>
|
||||
<label for="text" class="visuallyhidden"><?php _e('页面内容'); ?></label>
|
||||
<textarea style="height: <?php $options->editorSize(); ?>px" autocomplete="off" id="text" name="text" class="w-100 mono"><?php echo htmlspecialchars($page->text); ?></textarea>
|
||||
</p>
|
||||
|
||||
@ -46,8 +53,8 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-3">
|
||||
<section class="typecho-post-option">
|
||||
<div class="col-mb-12 col-tb-3" role="complementary">
|
||||
<section class="typecho-post-option" role="application">
|
||||
<label for="date" class="typecho-label"><?php _e('发布日期'); ?></label>
|
||||
<p><input class="typecho-date w-100" type="text" name="date" id="date" value="<?php $page->have() ? $page->date('Y-m-d H:i') : ''; ?>" /></p>
|
||||
</section>
|
||||
@ -72,6 +79,8 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
|
||||
</section>
|
||||
|
||||
<?php Typecho_Plugin::factory('admin/write-page.php')->option($page); ?>
|
||||
|
||||
<button type="button" id="advance-panel-btn"><?php _e('高级选项'); ?></button>
|
||||
<div id="advance-panel">
|
||||
<section class="typecho-post-option allow-option">
|
||||
<label class="typecho-label"><?php _e('权限控制'); ?></label>
|
||||
@ -87,7 +96,6 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
|
||||
|
||||
<?php Typecho_Plugin::factory('admin/write-page.php')->advanceOption($page); ?>
|
||||
</div>
|
||||
<a href="###" id="advance-panel-btn"><?php _e('高级选项'); ?></a>
|
||||
<?php if($page->have()): ?>
|
||||
<?php $modified = new Typecho_Date($page->modified); ?>
|
||||
<section class="typecho-post-option">
|
||||
|
@ -7,16 +7,19 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
<div class="main">
|
||||
<div class="body container">
|
||||
<?php include 'page-title.php'; ?>
|
||||
<div class="col-group typecho-page-main typecho-post-area">
|
||||
<div class="col-group typecho-page-main typecho-post-area" role="form">
|
||||
<form action="<?php $options->index('/action/contents-post-edit'); ?>" method="post" name="write_post">
|
||||
<div class="col-mb-12 col-tb-9">
|
||||
<div class="col-mb-12 col-tb-9" role="main">
|
||||
<?php if ($post->draft && $post->draft['cid'] != $post->cid): ?>
|
||||
<?php $postModifyDate = new Typecho_Date($post->draft['modified']); ?>
|
||||
<cite class="edit-draft-notice"><?php _e('你正在编辑的是保存于 %s 的草稿, 你也可以 <a href="%s">删除它</a>', $postModifyDate->word(),
|
||||
Typecho_Common::url('/action/contents-post-edit?do=deleteDraft&cid=' . $post->cid, $options->index)); ?></cite>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="title"><input type="text" id="title" name="title" autocomplete="off" value="<?php echo htmlspecialchars($post->title); ?>" placeholder="<?php _e('标题'); ?>" class="w-100 text title" /></p>
|
||||
<p class="title">
|
||||
<label for="title" class="visuallyhidden"><?php _e('标题'); ?></label>
|
||||
<input type="text" id="title" name="title" autocomplete="off" value="<?php echo htmlspecialchars($post->title); ?>" placeholder="<?php _e('标题'); ?>" class="w-100 text title" />
|
||||
</p>
|
||||
<?php $permalink = Typecho_Common::url($options->routingTable['post']['url'], $options->index);
|
||||
list ($scheme, $permalink) = explode(':', $permalink, 2);
|
||||
$permalink = ltrim($permalink, '/');
|
||||
@ -30,9 +33,12 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
}
|
||||
$input = '<input type="text" id="slug" name="slug" autocomplete="off" value="' . htmlspecialchars($post->slug) . '" class="mono" />';
|
||||
?>
|
||||
<p class="mono url-slug"><?php echo preg_replace("/\{slug\}/i", $input, $permalink); ?></p>
|
||||
|
||||
<p class="mono url-slug">
|
||||
<label for="slug" class="visuallyhidden"><?php _e('网址缩略名'); ?></label>
|
||||
<?php echo preg_replace("/\{slug\}/i", $input, $permalink); ?>
|
||||
</p>
|
||||
<p>
|
||||
<label for="text" class="visuallyhidden"><?php _e('文章内容'); ?></label>
|
||||
<textarea style="height: <?php $options->editorSize(); ?>px" autocomplete="off" id="text" name="text" class="w-100 mono"><?php echo htmlspecialchars($post->text); ?></textarea>
|
||||
</p>
|
||||
|
||||
@ -51,8 +57,8 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-mb-12 col-tb-3">
|
||||
<section class="typecho-post-option">
|
||||
<div class="col-mb-12 col-tb-3" role="complementary">
|
||||
<section class="typecho-post-option" role="application">
|
||||
<label for="date" class="typecho-label"><?php _e('发布日期'); ?></label>
|
||||
<p><input class="typecho-date w-100" type="text" name="date" id="date" value="<?php $post->have() ? $post->date('Y-m-d H:i') : ''; ?>" /></p>
|
||||
</section>
|
||||
@ -82,6 +88,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
|
||||
<?php Typecho_Plugin::factory('admin/write-post.php')->option($post); ?>
|
||||
|
||||
<button type="button" id="advance-panel-btn"><?php _e('高级选项'); ?></button>
|
||||
<div id="advance-panel">
|
||||
<?php if($user->pass('editor', true)): ?>
|
||||
<section class="typecho-post-option visibility-option">
|
||||
@ -116,7 +123,6 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
</section>
|
||||
<?php Typecho_Plugin::factory('admin/write-post.php')->advanceOption($post); ?>
|
||||
</div><!-- end #advance-panel -->
|
||||
<a href="###" id="advance-panel-btn"><?php _e('高级选项'); ?></a>
|
||||
|
||||
<?php if($post->have()): ?>
|
||||
<?php $modified = new Typecho_Date($post->modified); ?>
|
||||
|
@ -34,7 +34,7 @@
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<p>
|
||||
<!-- <label for="textarea" class="required"><?php _e('内容'); ?></label> -->
|
||||
<label for="textarea" class="required"><?php _e('内容'); ?></label>
|
||||
<textarea rows="8" cols="50" name="text" class="textarea"><?php $this->remember('text'); ?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
|
@ -6,7 +6,6 @@
|
||||
* @update 2013-10-28
|
||||
* --------------------------------- */
|
||||
|
||||
|
||||
/* ------------------
|
||||
* Gobal style
|
||||
* --------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user