This commit is contained in:
joyqi 2013-10-15 15:58:52 +08:00
commit e545168101
2 changed files with 84 additions and 82 deletions

View File

@ -679,15 +679,16 @@ margin-top: 25px;
background: #292D33;
}
.typecho-nav-list {
}
#typecho-nav-list ul {
list-style: none;
margin: 0;
padding: 0;
}
#typecho-nav-list ul:first-child {
border-left: 1px solid #383D45;
}
#typecho-nav-list .root {
position: relative;
float: left;
@ -698,30 +699,36 @@ margin-top: 25px;
}
#typecho-nav-list .parent a {
color: #FFF;
display: block;
float: left;
padding: 0 20px;
border-right: 1px solid #383D45;
height: 36px;
line-height: 36px;
display: block;
padding: 0 20px;
float: left;
color: #BBB;
}
#typecho-nav-list .parent a:hover,
#typecho-nav-list .focus .parent a,
#typecho-nav-list .root:hover .parent a {
background: #202328;
color: #FFF;
text-decoration: none;
}
#typecho-nav-list .focus .parent a {
font-weight: bold;
}
#typecho-nav-list .child {
display: none;
position: absolute;
top: 36px;
margin: 0;
width: 160px;
background: #202328;
overflow: hidden;
z-index: 250;
width: 160px;
}
#typecho-nav-list .root:hover .child {
@ -737,18 +744,9 @@ margin-top: 25px;
#typecho-nav-list .child li.last {
}
#typecho-nav-list .child li a:hover,
#typecho-nav-list .child li.focus a,
#typecho-nav-list .child li.focus a:hover {
background: #292D33;
}
#typecho-nav-list .child li.focus a {
color: #6DA1BB;
}
#typecho-nav-list .child li a {
text-decoration: none;
color: #FFF;
color: #BBB;
display: block;
padding: 0 20px;
overflow: hidden;
@ -758,6 +756,15 @@ margin-top: 25px;
line-height: 36px;
}
#typecho-nav-list .child li a:hover {
background: #292D33;
color: #FFF;
}
#typecho-nav-list .child li.focus a {
color: #6DA1BB;
font-weight: bold;
}
.typecho-head-nav .operate {
position: absolute;
top: 0px;
@ -1554,7 +1561,7 @@ ul.typecho-list-notable li .loading {
.typecho-post-area .typecho-label {
display: block;
margin-bottom: -0.5em;
margin: 1em 0 -0.5em;
font-weight: bold;
}
@ -1681,6 +1688,17 @@ ul.typecho-list-notable li .loading {
font-size: 1.17em;
font-weight: bold;
}
.typecho-post-area .url-slug {
margin-top: -0.5em;
color: #AAA;
font-size: .92857em;
}
.typecho-post-area #slug {
padding: 2px;
border: none;
background: #FFFBCC;
color: #666;
}
.typecho-post-area textarea#text {
}
@ -1731,11 +1749,6 @@ ul.typecho-list-notable li .loading {
padding: 0;
}
.visibility-option {
float: left;
width: 50%;
}
/*.typecho-post-area .advance, .typecho-post-area .attach, .typecho-post-area .media {
font-weight: bold;
color: #333;
@ -1988,15 +2001,15 @@ ul.typecho-list-notable li .loading {
* Upload
*/
#upload-panel {
padding: 10px 15px;
padding: 15px;
border: 1px dashed #D9D9D6;
background-color: #FFF;
color: #999;
font-size: .92857em;
}
#upload-panel.drag {
background-color: #FFF9E8;
#upload-panel.drag, .tDnD_whileDrag {
background-color: #FFFBCC;
}
#file-list {
@ -2083,12 +2096,6 @@ ul.typecho-list-notable li .loading {
#ui-datepicker-div button { height: 28px; }
#ui-datepicker-div .ui-datepicker-current {
float: left;
border-color: #F3F3F0;
color: #467B96;
background: #F3F3F0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
#ui-datepicker-div .ui-datepicker-close { float: right; }

View File

@ -10,14 +10,14 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<div class="col-group typecho-page-main typecho-post-area">
<form action="<?php $options->index('/action/contents-post-edit'); ?>" method="post" name="write_post">
<div class="col-mb-12 col-tb-9">
<label for="title" class="typecho-label"><?php _e('标题'); ?>
<?php if ($post->draft && $post->draft['cid'] != $post->cid): ?>
<?php $postModifyDate = new Typecho_Date($post->draft['modified']); ?>
<cite><?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; ?>
</label>
<p class="title"><input type="text" id="title" name="title" value="<?php echo htmlspecialchars($post->title); ?>" class="w-100 text title" /></p>
<?php if ($post->draft && $post->draft['cid'] != $post->cid): ?>
<?php $postModifyDate = new Typecho_Date($post->draft['modified']); ?>
<cite><?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" value="<?php echo htmlspecialchars($post->title); ?>" placeholder="<?php _e('标题'); ?>" class="w-100 text title" /></p>
<p class="mono url-slug"><?php _e('缩略名'); ?> http://xxxxxxxxxxxx.com/2011/08/29/<input type="text" id="slug" name="slug" value="<?php $post->slug(); ?>" class="mono" />/</p>
<p class="editor">
<span class="btnBold">bold</span><!--
@ -43,7 +43,6 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<?php Typecho_Plugin::factory('admin/write-post.php')->content($post); ?>
<p class="submit">
<span class="left">
<a href="###" id="advance-panel-btn"><?php _e('高级选项'); ?></a>
<span id="auto-save-message">保存于 1 分钟前</span>
</span>
@ -62,7 +61,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
</section>
<section class="typecho-post-option category-option">
<label class="typecho-label"><?php _e('所属分类'); ?></label>
<label class="typecho-label"><?php _e('分类'); ?></label>
<?php Typecho_Widget::widget('Widget_Metas_Category_List')->to($category); ?>
<ul>
<?php
@ -80,15 +79,44 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
</section>
<section class="typecho-post-option">
<label for="tags" class="typecho-label"><?php _e('标签'); ?></label>
<label for="token-input-tags" class="typecho-label"><?php _e('标签'); ?></label>
<p><input id="tags" name="tags" type="text" value="<?php $post->tags(',', false); ?>" class="w-100 text" /></p>
</section>
<section class="typecho-post-option">
<label for="slug" class="typecho-label"><?php _e('URL 缩略名'); ?></label>
<p><input type="text" id="slug" name="slug" value="<?php $post->slug(); ?>" class="mini w-100" /></p>
<p class="description"><?php _e('为这篇日志自定义链接地址, 有利于搜索引擎收录'); ?></p>
</section>
<a href="###" id="advance-panel-btn"><?php _e('高级选项'); ?></a>
<div id="advance-panel">
<?php if($user->pass('editor', true)): ?>
<section class="typecho-post-option visibility-option">
<label class="typecho-label"><?php _e('公开度'); ?></label>
<ul>
<li><input id="publish" value="publish" name="visibility" type="radio"<?php if (($post->status == 'publish' && !$post->password) || !$post->status) { ?> checked="true"<?php } ?> /> <label for="publish"><?php _e('公开'); ?></label></li>
<li><input id="password" value="password" name="visibility" type="radio"<?php if ($post->password) { ?> checked="true"<?php } ?> /> <label for="password">密码保护 <input type="text" id="post-password" name="post-password" class="text-s" value="<?php $post->password(); ?>" size="16" /></label></li>
<li><input id="private" value="private" name="visibility" type="radio"<?php if ($post->status == 'private') { ?> checked="true"<?php } ?> /> <label for="private">私密</label></li>
<li><input id="waiting" value="waiting" name="visibility" type="radio"<?php if ($post->status == 'waiting') { ?> checked="true"<?php } ?> /> <label for="waiting">待审核</label></li>
</ul>
</section>
<?php endif; ?>
<section class="typecho-post-option">
<label for="trackback" class="typecho-label"><?php _e('引用通告'); ?></label>
<p><textarea id="trackback" class="w-100 mono" name="trackback" rows="3"></textarea></p>
<p class="description"><?php _e('每一行一个引用地址, 用回车隔开'); ?></p>
<?php Typecho_Plugin::factory('admin/write-post.php')->advanceOptionLeft($post); ?>
</section>
<section class="typecho-post-option allow-option">
<label class="typecho-label"><?php _e('权限控制'); ?></label>
<ul>
<li><input id="allowComment" name="allowComment" type="checkbox" value="1" <?php if($post->allow('comment')): ?>checked="true"<?php endif; ?> />
<label for="allowComment"><?php _e('允许评论'); ?></label></li>
<li><input id="allowPing" name="allowPing" type="checkbox" value="1" <?php if($post->allow('ping')): ?>checked="true"<?php endif; ?> />
<label for="allowPing"><?php _e('允许被引用'); ?></label></li>
<li><input id="allowFeed" name="allowFeed" type="checkbox" value="1" <?php if($post->allow('feed')): ?>checked="true"<?php endif; ?> />
<label for="allowFeed"><?php _e('允许在聚合中出现'); ?></label></li>
<?php Typecho_Plugin::factory('admin/write-post.php')->advanceOptionRight($post); ?>
</ul>
</section>
</div><!-- end #advance-panel -->
<?php Typecho_Plugin::factory('admin/write-post.php')->option($post); ?>
<?php if($post->have()): ?>
@ -103,39 +131,6 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
</section>
<?php endif; ?>
</div>
<div id="advance-panel" class="col-mb-12 col-tb-9">
<section class="typecho-post-option">
<label for="trackback" class="typecho-label"><?php _e('引用通告'); ?></label>
<p><textarea id="trackback" class="w-100 mono" name="trackback" rows="3"></textarea></p>
<p class="description"><?php _e('每一行一个引用地址, 用回车隔开'); ?></p>
<?php Typecho_Plugin::factory('admin/write-post.php')->advanceOptionLeft($post); ?>
</section>
<?php if($user->pass('editor', true)): ?>
<section class="typecho-post-option visibility-option">
<label class="typecho-label"><?php _e('公开度'); ?></label>
<ul>
<li><input id="publish" value="publish" name="visibility" type="radio"<?php if (($post->status == 'publish' && !$post->password) || !$post->status) { ?> checked="true"<?php } ?> /> <label for="publish"><?php _e('公开'); ?></label></li>
<li><input id="password" value="password" name="visibility" type="radio"<?php if ($post->password) { ?> checked="true"<?php } ?> /> <label for="password">密码保护 <input type="text" id="post-password" name="post-password" class="text-s" value="<?php $post->password(); ?>" size="16" /></label></li>
<li><input id="private" value="private" name="visibility" type="radio"<?php if ($post->status == 'private') { ?> checked="true"<?php } ?> /> <label for="private">私密</label></li>
<li><input id="waiting" value="waiting" name="visibility" type="radio"<?php if ($post->status == 'waiting') { ?> checked="true"<?php } ?> /> <label for="waiting">待审核</label></li>
</ul>
</section>
<?php endif; ?>
<section class="typecho-post-option allow-option">
<label class="typecho-label"><?php _e('权限控制'); ?></label>
<ul>
<li><input id="allowComment" name="allowComment" type="checkbox" value="1" <?php if($post->allow('comment')): ?>checked="true"<?php endif; ?> />
<label for="allowComment"><?php _e('允许评论'); ?></label></li>
<li><input id="allowPing" name="allowPing" type="checkbox" value="1" <?php if($post->allow('ping')): ?>checked="true"<?php endif; ?> />
<label for="allowPing"><?php _e('允许被引用'); ?></label></li>
<li><input id="allowFeed" name="allowFeed" type="checkbox" value="1" <?php if($post->allow('feed')): ?>checked="true"<?php endif; ?> />
<label for="allowFeed"><?php _e('允许在聚合中出现'); ?></label></li>
<?php Typecho_Plugin::factory('admin/write-post.php')->advanceOptionRight($post); ?>
</ul>
</section>
</div>
</form>
</div>
</div>