-
Notifications
You must be signed in to change notification settings - Fork 1
/
singular.php
63 lines (42 loc) · 2.6 KB
/
singular.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
<?php
/**
* Singular Template
*
* This is the default singular template. It is used when a more specific template can't be found to display
* singular views of posts (any post type).
*
*/
get_header(); ?>
<div class="container">
<div class="row">
<div class="col-sm-12">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div <?php hybrid_attr( 'content' ); ?>>
<h1 <?php echo hybrid_get_attr( 'entry-title' ); ?>><?php the_title();?></h1>
<div class="entry-byline">
<span <?php hybrid_attr( 'entry-author' ); ?>><?php the_author_posts_link(); ?></span>
<time <?php hybrid_attr( 'entry-published' ); ?>><?php echo get_the_date(); ?></time>
<?php comments_popup_link( number_format_i18n( 0 ), number_format_i18n( 1 ), '% Comments', 'comments-link', '' ); ?>
<?php edit_post_link(); ?>
</div><!-- .entry-byline -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'shwib' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php hybrid_post_terms( array( 'taxonomy' => 'category', 'text' => __( 'Posted in %s', 'hybrid-base' ) ) ); ?>
<?php hybrid_post_terms( array( 'taxonomy' => 'post_tag', 'text' => __( 'Tagged %s', 'hybrid-base' ), 'before' => '<br />' ) ); ?>
</footer><!-- .entry-footer -->
</div>
<?php endwhile; ?>
<?php get_template_part( 'loop/loop-nav' ); ?>
<?php get_template_part( 'sidebars/sidebar-after-singular' ); ?>
<?php comments_template( '/comments/comments.php' ); // Loads the comments.php template. ?>
<?php else : ?>
<?php get_template_part( 'loop/loop-error' ); ?>
<?php endif; ?>
</div> <!--/col-->
</div> <!-- /row -->
</div> <!-- /container -->
<?php get_footer(); ?>