forked from bigfa/Puma
-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
executable file
·57 lines (57 loc) · 3.07 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
<?php get_header();?>
<main class="main-content">
<section class="section-body">
<?php while ( have_posts() ) : the_post(); ?>
<header class="section-header u-textAlignCenter">
<h2 class="grap--h2"><?php the_title();?></h2>
<div class="block-postMetaWrap">
<time><?php echo get_the_date('Y/m/d');?></time>
<?php if(function_exists('fancyratings')) fancyratings(get_the_ID(),'sb');?>
</div>
</header>
<div class="grap">
<?php if(has_post_thumbnail()):?>
<p class="with-img"><?php the_post_thumbnail( 'full' ); ?></p>
<?php endif;?>
<?php the_content();?>
</div>
<?php wp_link_pages( array(
'before' => '<div class="page-links u-textAlignCenter comment-navigation">',
'after' => '</div>',
'link_before' => '<span class="page-link-item">',
'link_after' => '</span>',
'pagelink' => '%',
'separator' => '<span class="screen-reader-text">, </span>',
) );?>
<div class="post--keywords" itemprop="keywords">
<?php echo puma_get_the_term_list( get_the_ID(), 'post_tag' );?>
</div>
<div class="postFooterAction">
<?php if(function_exists('wp_postlike')) wp_postlike();?>
</div>
<?php the_post_navigation( array(
'next_text' => '<span class="meta-nav">Next</span><span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav">Previous</span><span class="post-title">%title</span>',
) );?>
<div class="postFooterinfo u-textAlignCenter">
<?php echo get_avatar(get_the_author_meta('email'),64);?>
<h3 class="author-name"><?php the_author();?></h3>
<div class="author-description"><?php echo get_the_author_meta('description')?></div>
<div class="author-meta">
<?php if(get_the_author_meta('location')) : ?>
<span class="author-meta-item"><span class="icon-location"></span><?php echo get_the_author_meta('location');?></span>
<?php endif;?>
<?php if(get_the_author_meta('url')) : ?>
<span class="author-meta-item"><span class="icon-link"></span><a href="<?php echo get_the_author_meta('url');?>"><?php echo get_the_author_meta('url');?></a></span>
<?php endif;?>
</div>
</div>
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; ?>
</section>
</main>
<?php get_footer();?>