-
Notifications
You must be signed in to change notification settings - Fork 586
/
Copy pathsingle-image.php
40 lines (38 loc) · 1.21 KB
/
single-image.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
<?php
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Akina
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if(akina_option('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
<div class="Extendfull">
<?php the_post_thumbnail('full'); ?>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<p class="entry-census"><?php echo poi_time_since(strtotime($post->post_date_gmt)); ?> <?php echo get_post_views(get_the_ID()).' '._n('View','Views',get_post_views(get_the_ID()),'sakura')/*次阅读*/?></p>
<hr>
</header>
</div>
<?php } ?>
<!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'ondemand' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php the_reward(); ?>
<footer class="post-footer">
<div class="post-tags">
<?php if ( has_tag() ) { echo '<i class="iconfont icon-tags"></i> '; the_tags('', ' ', ' ');}?>
</div>
<?php get_template_part('layouts/sharelike'); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->