-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
85 lines (82 loc) · 3.77 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
<?php get_header(); ?>
<div class="main">
<div class="container">
<div class="row">
<main class="content col-lg-8" role="main">
<?php if (have_posts()) : ?>
<div class="breadcrumb">
<span class="genericon genericon-location"></span> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">首页</a><em>/</em><?php the_category(', ') ?><em>/</em><?php the_title(); ?>
</div>
<?php while (have_posts()) : the_post(); ?>
<article class="hentry">
<header class="hentry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="post-meta entry-meta">
<span class="genericon genericon-month"></span><?php the_time('Y-m-d') ?>
<span class="genericon genericon-category"></span><?php the_category(', ') ?>
<?php edit_post_link(__('Edit'), '<span>','</span>'); ?>
<span class="genericon genericon-show"></span><?php echo lmsim_theme_views(); ?>
<span class="genericon genericon-comment"></span><?php comments_popup_link('0', '1', '%', '', 'Comments Closed' ); ?>
</div>
</header>
<?php if ( has_post_thumbnail() ) { ?>
<div class="post-thumbnail"><?php the_post_thumbnail('full'); ?></div>
<?php } ?>
<div class="entry-content">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div>
<footer class="entry-footer">
<div class="author-info">
<div class="author-avatar">
<?php
$author_bio_avatar_size = apply_filters( 'twentysixteen_author_bio_avatar_size', 60 );
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
?>
</div>
<div class="author-description">
<h2 class="author-title"><a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></h2>
<p class="author-bio">
<?php the_author_meta( 'description' ); ?>
</p>
</div>
<?php
$shang = get_the_author_meta( 'shang' );
if($shang){
echo '<div class="shang"><span>赏</span>';
echo '<div class="s-qrcode"><img src="'.$shang.'" alt="求赏"></div></div>';
}
?>
</div>
<div class="dianp alignright"><span class="genericon genericon-digg"></span> +10086</div>
<?php the_tags( '<p><span class="genericon genericon-tag"></span> ', ', ', '</p>'); ?>
</footer>
</article>
<?php
the_post_navigation( array(
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentysixteen' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Next post:', 'twentysixteen' ) . '</span> ' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentysixteen' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentysixteen' ) . '</span> ' .
'<span class="post-title">%title</span>',
) );
if( comments_open() || get_comments_number() ) comments_template();
?>
<?php endwhile; ?>
<?php endif; ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>