-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsingle.php
More file actions
67 lines (64 loc) · 3.33 KB
/
single.php
File metadata and controls
67 lines (64 loc) · 3.33 KB
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
<?php
/*
the file
*/
?>
<?php get_template_part( 'template-parts/custom', 'header' ); ?>
<section id="primary" class="content-area">
<main id="main" class="site-main">
<?php while ( have_posts() ) : the_post(); ?> <!-- /* Start the Loop */ -->
<div id="post-<?php the_ID(); ?>" <?php post_class( 'modal-content fix' ); ?>>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="modal-body">
<?php the_post_thumbnail( ); ?>
<h2><?php the_title(); ?></h2>
<p class="blog-meta text-muted">
<span><a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><i class="fa fa-user-circle-o"></i><?php echo get_the_author_meta('display_name'); ?></a></span>
<span><i class="fa fa-comment-o"></i><?php echo get_comments_number(); ?> Comments</span>
</p>
<?php the_content(); ?>
</div>
<div class="tags">
<?php the_tags(); ?>
</div>
<?php comments_template(); ?>
</div>
</div>
</div>
<?php
if ( is_singular( 'attachment' ) ) {
// Parent post navigation.
the_post_navigation(
array(
/* translators: %s: parent post link */
'prev_text' => sprintf( __( '<span class="meta-nav">Published in</span><span class="post title">%s</span>', 'saybers' ), '%title' ),
)
);
} elseif ( is_singular( 'post' ) ) {
// Previous/next post navigation.
the_post_navigation(
array(
'next_text' => '<span class="meta-nav btn btn-send" aria-hidden="true">' . __( 'Next Post', 'saybers' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Next post:', 'saybers' ) . '</span> <br/>',
'prev_text' => '<span class="meta-nav btn btn-send" aria-hidden="true">' . __( 'Previous Post', 'saybers' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Previous post:', 'saybers' ) . '</span> <br/>',
)
);
}
// If comments are open or we have at least one comment, load up the comment template.
//if ( comments_open() || get_comments_number() ) {
// comments_template();
//}
?>
</div>
<?php endwhile; ?> <!-- End of the loop. -->
<?php paginate_comments_links( array(
'prev_text' => 'back',
'next_text' => 'forward',
'paged' => 'paged',
) ); ?>
</main><!-- #main -->
</section><!-- #primary -->
<?php get_footer(); ?>