Skip to content
This repository has been archived by the owner on Sep 12, 2020. It is now read-only.

Commit

Permalink
all upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TigerBeanst committed Nov 24, 2019
0 parents commit d5c8309
Show file tree
Hide file tree
Showing 93 changed files with 25,542 additions and 0 deletions.
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# TigerMaterial For WordPress
TigerMaterial 是一款基于 [MDUI](https://github.com/zdhxiong/mdui) 的 WordPress 主题。

## 演示站点
[甲烃气瓶](https://jakting.com)

## 主题须知 & 更新日志
前往文章:[「TigerMaterial」—— Material Design 与 WordPress 的巧妙碰撞](https://jakting.com/archives/tigermaterial.html) 查看

**请务必阅读主题须知**

## 下载
[Github Release](https://github.com/hjthjthjt/TigerMaterial/releases)
85 changes: 85 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php
//自定义评论列表模板 by www.zhuimeikeji.com
if (post_password_required())
return;
?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/comments.css">
<div id="comments" class="responsesWrapper mdui-typo-subheading mdui-m-a-1 mdui-text-color-grey-600">
<meta content="UserComments:<?php echo number_format_i18n(get_comments_number()); ?>" itemprop="interactionCount">
<h3 class="comments-title">共有 <span
class="commentCount"><?php echo number_format_i18n(get_comments_number()); ?></span> 条评论</h3>
<ol class="commentlist">
<?php
wp_list_comments(array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 48,
'type' => 'comment',
'callback' => 'zmblog_comment',
));
?>
</ol>
<nav class="navigation comment-navigation u-textAlignCenter" data-fuck="<?php the_ID(); ?>">
<?php paginate_comments_links(array('prev_next' => true)); ?>
</nav>
<?php if (comments_open()) : ?>
<div class="mdui-typo-headline">发表评论</div>
<div id="respond" class="respond" role="form">
<h2 id="reply-title" class="comments-title"><?php comment_form_title('', '回复给 %s'); ?> <small>
<?php cancel_comment_reply_link(); ?>
</small></h2>
<?php if (get_option('comment_registration') && !$user_ID) : ?>
<p>你必须
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">登陆</a>
后才能做评价.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post"
class="commentform" id="commentform">
<?php if ($user_ID) : ?>
<p class="warning-text" style="margin-bottom:10px">以<a
href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>身份登录&nbsp;|&nbsp;<a
class="link-logout" href="<?php echo wp_logout_url(get_permalink()); ?>">注销
&raquo;</a></p>
<div class="mdui-textfield mdui-textfield-floating-label">
<label class="mdui-textfield-label">评论内容</label>
<textarea class="mdui-textfield-input" id="comment" rows="4"
onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};"
tabindex="1" name="comment"></textarea>
</div>
<?php else : ?>
<div class="mdui-textfield mdui-textfield-floating-label">
<label class="mdui-textfield-label">评论内容</label>
<textarea class="mdui-textfield-input" id="comment" rows="4"
onkeydown="if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};"
tabindex="1" name="comment"></textarea>
</div>
<div class="mdui-row">
<div class="mdui-col-xs-4 mdui-textfield mdui-textfield-floating-label">
<label class="mdui-textfield-label">昵称</label>
<input class="mdui-textfield-input" id="author" type="text"
value="<?php echo $comment_author; ?>" name="author" required/>
<div class="mdui-textfield-error">昵称不能为空</div>
</div>
<div class="mdui-col-xs-4 mdui-textfield mdui-textfield-floating-label">
<label class="mdui-textfield-label">邮箱</label>
<input class="mdui-textfield-input" id="email" type="text"
value="<?php echo $comment_author_email; ?>" name="email" required/>
<div class="mdui-textfield-error">邮箱不能为空</div>
</div>
<div class="mdui-col-xs-4 mdui-textfield mdui-textfield-floating-label">
<label class="mdui-textfield-label">网站</label>
<input class="mdui-textfield-input" id="url" type="text"
value="<?php echo $comment_author_url; ?>" name="url"/>
</div>
</div>
<?php endif; ?>
<div class="btn-group commentBtn" role="group">
<button class="mdui-btn mdui-btn-raised mdui-ripple mdui-color-grey-700" name="submit"
id="submit">发表评论
</button>
<?php comment_id_fields(); ?>
</form>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
160 changes: 160 additions & 0 deletions css/comments.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
/*
comments
*/
#comments{
padding-bottom:30px;
margin: 0 30px 0 30px!important;
line-height:1;
}
.comments-title{
position:relative;
padding-bottom:10px;
font-size:18px;
color:#666;
border-bottom:1px solid #f1f1f1;
}
h3.comments-title:after{
position:absolute;
content:'';
top:29px;
left:0;
width:135px;
height:1px;
background:#424242;
}
.commentCount{
color:#424242;/*main-color*/
}
.commentlist{
list-style: none;
margin:10px 0 0;
padding:0;
}
.commentlist ol{
list-style: none;
}
.comment{
padding:10px 0 5px;
}
.comment .media-left{
display: table-cell;
vertical-align: top;
padding-right: 10px;
}
.comment .media-left img{
border-radius:50%;
}
.comment .media-body{
display: table-cell;
vertical-align: top;
}
.comment .media-body .author_name{
margin-bottom:5px;
margin-top: 0;
font-size:16px;
color:#777;
}
.comment .media-body p{
font-size:16px;
line-height:1.5em;
color:#777;
margin-bottom: 10px;
}
.comment .media-body p a{
color:#000;
}
.comment .comment-metadata{
margin-left:58px;
padding:5px 0;
}
.comment .comment-metadata span{
margin-right:15px;
font-size:13px;
}
.comment .comment-metadata span{
font-size:12px;
color:#999;
}
.comment .comment-metadata span.comment-btn-reply a:hover{
color:#666;
}
.comment .comment-metadata span.comment-btn-reply i{
color:#d1d1d1;
}
.comment .comment-metadata span.comment-btn-reply a{
color:#999!important;
font-size: 12px!important;
}
.commentlist > .comment{
border-bottom:1px dotted #d9d9d9;
}
.commentlist .children{
padding-left:58px;
}
.commentlist .children > .comment{
border-top:1px dotted #d9d9d9;
}
#reply-title{
font-size:14px;
color:#666;
border-bottom:0;
color:#999;
margin-top: 40px;
}
#reply-title a:first-child,.warning-text a:first-child{
display:inline-block;
margin:0 2px;
padding:2px 5px;
background:#424242;/*main-color*/
color:#fff;
font-size:14px;
}
#reply-title #cancel-comment-reply-link{
background:#fff;
color:#999;
}
#reply-title #cancel-comment-reply-link:hover{
text-decoration:underline;
}
.warning-text{
color:#999;
}
.link-logout{
color:#999;
}
.comment-navigation{
width:100%;
margin:0 auto;
padding:15px 0;
text-align: center;
}
.comment-navigation .page-numbers{
display:inline-block;
padding:9px 16px;
color:#999;
background:#f1f1f1;
}
.comment-navigation .page-numbers:hover{
background:#e8e8e8;
color:#666;
}
.comment-navigation .current,
.comment-navigation .current:hover{
background:#424242;/*main-color*/
color:#fff;
}

.commentBtn .btn{
padding:8px 0;
width:140px!important;
text-align: center;
background:#424242;/*main-color*/
border:0;
}
.commentBtn .btn:hover{
opacity:0.8;
}
input#submit{color: #fff;}
#respond{
margin-top: -30px;
}
Loading

0 comments on commit d5c8309

Please sign in to comment.