Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/themes/meta-news/template-parts
NameTypeSizeActions
📁 .. Folder -
📄 content-none.php File 1265
Edit Download
📄 content-page.php File 1683
Edit Download
📄 content-search.php File 2694
Edit Download
📄 content.php File 5714
Edit Download

View File: content-page.php

<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Meta News
 */

?>
<?php global $meta_news_settings; ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

	<?php if ( has_post_thumbnail() && $meta_news_settings['meta_news_featured_image_page'] === 1 ) { ?>

		<figure class="post-featured-image page-single-img-wrap">
			<div class="a-post-img">
				<?php the_post_thumbnail('', array( 'class' => 'post-img' )); ?>
			</div>
		</figure><!-- .post-featured-image .page-single-img-wrap -->

	<?php } ?>

	<header class="entry-header">
		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php
		the_content();
		?>
	</div><!-- .entry-content -->
	<?php 
		wp_link_pages( array(
		'before' 			=> '<div class="page-links">' . esc_html__( 'Pages: ', 'meta-news' ),
		'separator'			=> '',
		'link_before'		=> '<span>',
		'link_after'		=> '</span>',
		'after'				=> '</div>'
	) );
	?>	
	<?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>', 'meta-news' ),
						array(
							'span' => array(
								'class' => array(),
							),
						)
					),
					get_the_title()
				),
				'<span class="btn btn-sm btn-outline-theme edit-link"><i class="fa fa-pencil"></i> ',
				'</span>'
			);
			?>
		</footer><!-- .entry-footer -->
	<?php endif; ?>
</div><!-- #post-<?php the_ID(); ?> -->