summaryrefslogtreecommitdiff
path: root/loop-templates/content-search.php
diff options
context:
space:
mode:
Diffstat (limited to 'loop-templates/content-search.php')
-rw-r--r--loop-templates/content-search.php52
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-## -->