-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
49 lines (25 loc) · 1.16 KB
/
search.php
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
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap cf">
<main id="main" class="m-all t-2of3 d-5of7 cf" role="main">
<h1 class="archive-title"><span><?php _e( 'Search Results for:', 'templatetheme' ); ?></span> <?php echo esc_attr(get_search_query()); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article">
<header class="entry-header article-header">
<?php get_template_part( 'templates/header', 'title'); ?>
<?php get_template_part( 'templates/byline'); ?>
</header>
<section class="entry-content">
<?php get_template_part( 'templates/content', 'excerpt'); ?>
</section>
<footer class="article-footer">
<?php get_template_part( 'templates/category-tags'); ?>
</footer> <!-- end article footer -->
</article>
<?php get_template_part( 'templates/post-navigation'); ?>
<?php endwhile; endif; ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>