-
Notifications
You must be signed in to change notification settings - Fork 36
/
content-page.php
38 lines (31 loc) · 1.34 KB
/
content-page.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
<?php
/**
* The template used for displaying page content in page.php
*
* @package jbst
* @since jbst 1.0
*/
?>
<?php while ( have_posts() ) : the_post(); /* Start the Loop */?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php jbst_page_title();?>
<div class="entry-content">
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('large',array('class'=>'img-responsive img-page-class'));
}
?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'jamedo-bootstrap-start-theme' ), 'after' => '</div>' ) ); ?>
</div><!-- /.entry-content -->
<?php edit_post_link( __( 'Edit', 'jamedo-bootstrap-start-theme' ) .'<span class="sr-only">: ' .__('page','jamedo-bootstrap-start-theme') . '</span>' , '<span class="edit-link">', '</span>' ); ?>
</article><!-- /#post-<?php the_ID(); ?> -->
<?php endwhile; // end of the loop. ?>
<hr class="clear" />
<?php
do_action('jbst_before_pagecomments','');
if(!get_theme_mod('page_comments', 0)) {
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
}
?>