-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
44 lines (35 loc) · 1011 Bytes
/
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
<?php
/**
* @package Make
*/
get_header();
global $post;
?>
<?php ttfmake_maybe_show_sidebar( 'left' ); ?>
<main id="site-main" class="site-main" role="main">
<?php if ( have_posts() ) : ?>
<header class="section-header">
<?php make_breadcrumb(); ?>
<?php get_template_part( 'partials/section', 'title' ); ?>
</header>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/**
* Allow for changing the template partial.
*
* @since 1.2.3.
*
* @param string $type The default template type to use.
* @param WP_Post $post The post object for the current post.
*/
$template_type = apply_filters( 'make_template_content_search', 'search', $post );
get_template_part( 'partials/content', $template_type );
?>
<?php endwhile; ?>
<?php get_template_part( 'partials/nav', 'paging' ); ?>
<?php else : ?>
<?php get_template_part( 'partials/content', 'none' ); ?>
<?php endif; ?>
</main>
<?php ttfmake_maybe_show_sidebar( 'right' ); ?>
<?php get_footer(); ?>