File: /var/www/www-root/data/www/beartz.com/wp-content/themes/blogboost/template-parts/content-search.php
<?php
/**
* Template part for displaying results in search pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Blogboost
*/
$enabled_post_meta = '';
$archive_style = blogboost_get_option('archive_style');
switch ($archive_style) {
case 'archive_style_1':
$enabled_post_meta = blogboost_get_option('archive_post_meta_1');
break;
case 'archive_style_2':
$enabled_post_meta = blogboost_get_option('archive_post_meta_2');
break;
case 'archive_style_3':
$enabled_post_meta = blogboost_get_option('archive_post_meta_3');
break;
case 'archive_style_4':
$enabled_post_meta = blogboost_get_option('archive_post_meta_4');
break;
default:
// code...
break;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php 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 if ( absint(blogboost_get_option( 'excerpt_length' )) != '0'){ ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php } ?>
<footer class="entry-footer">
<?php blogboost_entry_footer($enabled_post_meta); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->