summaryrefslogtreecommitdiff
path: root/dist/loop-templates/content-search.php
blob: be34c68ed071e32a74f4c1b3c4ded92f1c7cf07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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-## -->