-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
115 lines (103 loc) · 3.97 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php get_header();?>
<div class="main-content main-body clear" id="mainContent">
<div class="main-left-part left-column">
<?php if(have_posts()):?>
<?php while (have_posts()):the_post();?>
<?php include( TEMPLATEPATH . '/article.php'); ?>
<?php endwhile;?>
<div class="author-info card">
<div class="top-column clear">
<div class="author-avatar left-column">
<?php echo my_avatar( get_the_author_meta("email"), 80 ); ?>
</div>
<div class="author-descrption right-column">
<p class="author-name">
<?php the_author_posts_link(); ?>
</p>
<p class="author-summery">
<?php the_author_meta('description'); ?>
</p>
</div><!-- Author Description Ends -->
</div>
<div class="author-contact">
<ul>
<?php if (get_the_author_meta('user_url')) { ?>
<li class="website">
<a href="<?php the_author_meta('user_url'); ?>" title="主页" rel="nofollow">主页</a>
</li><!-- Post Author Website -->
<?php } ?>
<?php if (get_the_author_meta('user_email')) { ?>
<li class="email">
<a href="mailto:<?php echo the_author_meta('user_email'); ?>" title="e-mail" rel="nofollow">邮箱</a>
</li><!-- Post Author E-mail -->
<?php } ?>
<?php if (get_the_author_meta('twitter')) { ?>
<li class="twitter">
<a href="<?php the_author_meta('twitter'); ?>" rel="nofollow" title="Twitter">Twitter</a>
</li><!-- Post Author Twitter -->
<?php } ?>
<?php if (get_the_author_meta('facebook')) { ?>
<li class="facebook">
<a href="<?php the_author_meta('facebook'); ?>" title="Facebook" rel="nofollow">Facebook</a>
</li><!-- Post Author Facebook -->
<?php } ?>
<?php if (get_the_author_meta('google_plus')) { ?>
<li class="google-plus">
<a href="<?php the_author_meta('google_plus'); ?>?rel=author" title="Google Plus" rel="nofollow">Google+</a>
</li><!-- Post Auhtor Google Plus -->
<?php } ?>
<?php if (get_the_author_meta('github')) { ?>
<li class="github">
<a href="<?php the_author_meta('github'); ?>" title="Github" rel="nofollow">Github</a>
</li><!-- Post Author Github -->
<?php } ?>
</ul>
</div><!-- Author Contact Info Ends -->
</div>
<div class="related-post card">
<div id="hm_t_23962"></div>
</div>
<nav class="post-navigation clear">
<!-- <div class="left-column previous-post-wrap" >-->
<!-- <div class="previous-post ion-chevron-left">-->
<?php
if (get_next_post_link(" %link")) {
echo get_next_post_link();
}
?>
<!-- </div>-->
<!-- </div><!-- previous post -->
<!-- <div class="right-column next-post-wrap">-->
<!-- <div class="next-post ion-chevron-left-after">-->
<?php
if (get_next_post_link(" %link")) {
echo get_previous_post_link();
}
?>
<!-- </div>-->
<!-- </div><!-- next post -->
</nav> <!-- Article Navigation Ends-->
<div class="article-comments-wrap card" id="postComments">
<ul>
<?php
comments_template();
?>
</ul>
<div class="comment-form-container">
<?php comment_form(); ?>
</div><!--Comment Form Ends -->
</div><!-- Single Article Comment Ends -->
<?php else:?>
<article class="article" id="post-<?php the_ID();?>"><!-- Article Begain -->
<div>
<h2><?php _e("Not Found");?></h2>
</div>
</article><!-- Article Ends -->
<?php endif;?>
</div><!-- Post Ends -->
<aside class="main-right-aside right-column"><!-- Right Aside Begain -->
<?php get_sidebar();?>
</aside><!-- Right Aside Ends -->
</div><!-- Main Content Ends -->
<!-- Footer Begin -->
<?php get_footer(); ?>