File: /var/www/www-root/data/www/beartz.com/wp-content/themes/blogboost/template-parts/content.php
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Blogboost
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if (is_single()) {
global $post;
$blogboost_post_layout = esc_html( get_post_meta( $post->ID, 'blogboost_post_layout', true ) );
if (empty($blogboost_post_layout)) {
$blogboost_post_layout = 'layout-1';
}
if ($blogboost_post_layout == "layout-1") { ?>
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title entry-title-large">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
endif;
if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2192035253057793"
crossorigin="anonymous"></script>
<!-- header -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2192035253057793"
data-ad-slot="6686045422"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php blogboost_post_thumbnail(); ?>
<?php } ?>
<?php } else { ?>
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title entry-title-large">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
endif;
if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
<?php
blogboost_posted_on();
blogboost_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php blogboost_post_thumbnail(); ?>
<?php } ?>
<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'blogboost' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'blogboost' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php blogboost_entry_footer_all(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->