diff options
Diffstat (limited to 'dist/loop-templates/content-search.php')
| -rw-r--r-- | dist/loop-templates/content-search.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dist/loop-templates/content-search.php b/dist/loop-templates/content-search.php new file mode 100644 index 0000000..be34c68 --- /dev/null +++ b/dist/loop-templates/content-search.php @@ -0,0 +1,52 @@ +<?php +/** + * Search results partial template. + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} +?> + +<article <?php post_class(); ?> id="post-<?php the_ID(); ?>"> + + <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 understrap_posted_on(); ?> + + </div><!-- .entry-meta --> + + <footer class="entry-footer"> + + <div class="row"> + <?php understrap_entry_footer(); ?> + </div> + + </footer><!-- .entry-footer --> + + <?php endif; ?> + + </header><!-- .entry-header --> + + <a href="<?php echo esc_url( get_permalink() );?>"> + <?php echo get_the_post_thumbnail( $post->ID, 'medium' ); ?> + </a> + + <div class="entry-summary entry-content"> + + <?php the_excerpt(); ?> + + </div><!-- .entry-summary --> + <div class="clearfix"></div> + + +</article><!-- #post-## --> |
