<?php /** * Template part for displaying results in search pages. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package Pen */ $pen_is_singular = is_singular(); ?> <article id="post-<?php the_ID(); ?>" <?php echo pen_post_classes(); /* phpcs:ignore */ ?>> <?php $background_image_dynamic = pen_content_title_background( $pen_is_singular, get_the_ID() ); ?> <header class="entry-header<?php echo pen_class_lists( 'header_display_override' ); /* phpcs:ignore */ ?>"<?php if ( $background_image_dynamic ) { echo ' style="background-image:url(' . $background_image_dynamic . ');background-size:cover"'; /* phpcs:ignore */ } ?>> <?php the_title( sprintf( '<h2 class="entry-title%1$s"><a href="%2$s" rel="bookmark">', pen_class_lists( 'title_display_override' ), esc_url( get_permalink() ) ), '</a></h2>' ); echo pen_html_content_information( 'header' ); /* phpcs:ignore */ ?> </header><!-- .entry-header --> <?php pen_sidebar_get( 'sidebar-content-top' ); $list_type = pen_option_get( 'list_type' ); if ( 'masonry' === $list_type ) { get_template_part( 'partials/content', 'thumbnail' ); } ?> <div class="entry-summary"> <?php if ( 'plain' === $list_type ) { get_template_part( 'partials/content', 'thumbnail' ); } the_excerpt(); echo pen_html_author(); /* phpcs:ignore */ ?> </div><!-- .entry-summary --> <?php pen_sidebar_get( 'sidebar-content-bottom' ); get_template_part( 'partials/content', 'search-footer' ); if ( $pen_is_singular ) { pen_html_jump_menu( 'content' ); } ?> </article><!-- #post-<?php the_ID(); ?> -->