-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
63 lines (43 loc) · 1.4 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* Search results template for Scheduler theme.
* @subpackage Scheduler theme
* @since 1.8.25
*
*/
get_header(); ?>
<section id="content" class="page-content-wrapper" role="main">
<header class="postmetadata search-page-title" role="content info">
<h2><?php esc_html_e( 'Search Results', 'scheduler' ); ?>
<small><span class="archive-meta">
<?php if ( the_archive_description() != '' ) : ?>
<?php the_archive_description(); ?>
<?php endif; ?></span></small></h2>
</header>
<?php if (have_posts())
{ ?>
<?php while (have_posts())
{ ?>
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="postmetadata">
<?php // Header content in functions
echo scheduler_heading_header_render(); ?>
</header>
<?php get_template_part( 'content' ); ?>
</div>
<?php /* ends while loop */
} ?>
<?php
the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => '« ' . __( 'Prev', 'scheduler' ),
'next_text' => __( 'Next', 'scheduler' ) . ' »',
) ); ?>
<?php // No posts found continue to 404 type
} else { ?>
<?php get_template_part( 'content', '404' ); ?>
<?php /* ends if loop */
} ?>
</section>
<?php get_footer(); ?>