-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsearch.php
executable file
·75 lines (51 loc) · 1.67 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
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* The template for displaying search results pages
*
* @since 1.0.0
* @package Coldbox
*/
get_header(); ?>
<main id="main" role="main">
<section class="main-inner">
<?php get_template_part( 'parts/title-box' ); ?>
<div class="container-outer">
<div class="container">
<div id="content" class="content">
<?php $cd_class_status = have_posts() ? 'view-has-post' : 'view-no-results'; ?>
<div class="content-inner <?php echo esc_attr( cd_archive_style() ) . '-view'; ?> <?php echo esc_attr( $cd_class_status ); ?>">
<?php
// Call the top parts.
apply_filters( 'cd_archive_top_contents', cd_archive_top_contents() );
?>
<?php
if ( have_posts() ) :
$cd_post_count = 0;
while ( have_posts() ) :
$cd_post_count++;
the_post();
?>
<?php if ( cd_archive_style() === 'grid' ) : ?>
<?php get_template_part( 'content', 'grid' ); ?>
<?php elseif ( cd_archive_style() === 'standard' ) : ?>
<?php get_template_part( 'content', 'standard' ); ?>
<?php endif; ?>
<?php do_action( 'cd_archive_midst_content', $cd_post_count ); ?>
<?php endwhile; ?>
<?php
// Call the bottom parts.
apply_filters( 'cd_archive_bottom_contents', cd_archive_bottom_contents() );
?>
<?php else : ?>
<div class="error-messages coldbox-no-results">
<h2><?php esc_html_e( 'No matches found.', 'coldbox' ); ?></h2>
</div>
<?php endif; ?>
</div>
</div><!--/.content-->
<?php get_sidebar(); ?>
</div><!--/.container-->
</div><!--/.container-outer-->
</section>
</main>
<?php get_footer(); ?>