-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-search.php
54 lines (39 loc) · 1.82 KB
/
template-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
50
51
52
53
54
<?php
/**
* Template name: Search page template
* The template used for displaying the search form
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section id="post-<?php the_ID(); ?>" <?php post_class('archive-page entry-wrapper'); ?>>
<div class="container">
<div class="flex">
<header class="entry-header col col-xs-12 col-sm-10 offset-sm-1">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content col col-xs-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2 col-xl-6 offset-xl-3">
<?php
while ( have_posts() ) : the_post();
the_content();
endwhile;
// Edit link
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
esc_html__( 'Edit %s', 'regnsky' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
),
'<span class="edit-link">',
'</span>'
);
?>
</div> <!-- .entry-content -->
<?php get_search_form(); ?>
</div> <!-- .flex -->
</div> <!-- /.container -->
</section>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();