-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
59 lines (49 loc) · 1.87 KB
/
content.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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
// Post thumbnail.
// the_post_thumbnail();
?>
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title display-1">', '</h1>' );
else :
the_title( sprintf( '<h2 class="entry-title display-1"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
__( 'Continue reading %s', 'bootstrap-four' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) );
comments_template();
get_template_part( 'postmeta' );
if ( comments_open() ) :
?>
<div class="clearfix"></div>
<p class="text-right">
<a class="btn btn-primary" href="<?php the_permalink(); ?>#comments"><?php comments_number( __( 'Leave a Comment', 'bootstrap-four' ), __( 'One Comment', 'bootstrap-four' ), '%' . __( ' Comments', 'bootstrap-four' ) );?> <span class="fa fa-comments"></span></a>
</p>
<?php
endif;
wp_link_pages( array(
'before' => '<ul class="pagination">',
'after' => '</ul>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'bootstrap-four' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div><!-- .entry-content -->
<?php
// Author bio.
// if ( is_single() && get_the_author_meta( 'description' ) ) :
// get_template_part( 'author-bio' );
// endif;
?>
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'bootstrap-four' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->