-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsearch.php
More file actions
76 lines (65 loc) · 2.75 KB
/
Copy pathsearch.php
File metadata and controls
76 lines (65 loc) · 2.75 KB
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
76
<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
?>
<section class="py-6 text-center">
<div class="container">
<h1><?php
printf(
/* translators: %s: query term */
esc_html__( 'Search Results for: %s', 'picostrap5' ),
'<span class="text-light">"' . get_search_query() . '"</span>'
);
?></h1>
<div class="lead text-muted col-md-8 offset-md-2 archive-description">
</div>
<!-- <p>
<a href="#" class="btn btn-primary my-2">Action</a>
<a href="#" class="btn btn-secondary my-2">Secondary action</a>
</p> -->
</div>
</section>
<section class="album py-5 bg-light">
<div class="container">
<div class="row">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<div class="col-md-4 col-sm-6">
<div class="card mb-4 shadow-sm">
<svg hidden class="bd-placeholder-img card-img-top" width="100%" height="225" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"><title>Placeholder</title><rect width="100%" height="100%" fill="#55595c"></rect><text x="50%" y="50%" fill="#eceeef" dy=".3em">Thumbnail</text></svg>
<?php the_post_thumbnail() ?>
<div class="card-body">
<?php if (!get_theme_mod("singlepost_disable_date") ): ?>
<small class="text-muted"><?php the_date() ?></small>
<?php endif; ?>
<h2><a class="stretched-link" href="<?php the_permalink() ?>"><?php the_title() ?></a></h2>
<p class="card-text"><?php the_excerpt(); ?></p>
<!--
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Edit</button>
</div>
</div>
-->
</div>
</div>
</div>
<?php
endwhile;
else :
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
endif;
?>
</div>
<div class="row">
<div class="col lead text-center w-100">
<div class="d-inline-block"><?php picostrap_pagination() ?></div>
</div><!-- /col -->
</div <!-- /row -->
</div>
</section>
<?php get_footer();