diff options
| author | Max | 2018-10-15 23:46:42 +0200 |
|---|---|---|
| committer | Max | 2018-10-15 23:46:42 +0200 |
| commit | 00c9709fd9763542e848f6278db8ba26af5c9886 (patch) | |
| tree | 92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /loop-templates/content-search.php | |
| download | fuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz | |
Initial commit.
Diffstat (limited to 'loop-templates/content-search.php')
| -rw-r--r-- | loop-templates/content-search.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/loop-templates/content-search.php b/loop-templates/content-search.php new file mode 100644 index 0000000..be34c68 --- /dev/null +++ b/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-## --> |
