File: /home/mastech10/www/runntrail.com/wp-content/themes/royale-news/template-parts/content-page.php
<?php
/**
* Template part for displaying page content in page.php
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Royale_News
*/
$royale_news_display_featured_image = royale_news_get_option( 'royale_news_page_single_enable_featured_img' );
?>
<div class="col-md-12" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="news-section-info clearfix">
<h3 class="section-title"><?php the_title(); ?></h3><!-- .section-title -->
</div><!-- .news-section-info -->
<div class="single-news-content">
<?php
if (
has_post_thumbnail() &&
( true === $royale_news_display_featured_image || 1 === $royale_news_display_featured_image )
) {
?>
<div class="news-image">
<?php
the_post_thumbnail(
'full',
array(
'class' => 'img-responsive',
'alt' => the_title_attribute(
array(
'echo' => false,
)
),
)
);
?>
</div><!-- .news-image -->
<?php
}
?>
<div class="news-detail clearfix">
<div class="news-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'royale-news' ),
'after' => '</div>',
)
);
?>
</div><!-- .news-content -->
<?php
if ( get_edit_post_link() ) {
?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'royale-news' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php
}
?>
</div><!-- .news-detail.clearfix -->
</div><!-- .single-news-content -->
</div><!-- #post-<?php the_ID(); ?> -->