-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
62 lines (51 loc) · 2.22 KB
/
search.php
File metadata and controls
62 lines (51 loc) · 2.22 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
<?php get_header(); ?>
<div class="page-detail__header">
<h1 class="page-detail__title" itemprop="headline">Search results for "<?php echo esc_attr(get_search_query()); ?>"</h1>
</div>
<div class="post-list">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post-list__post">
<div class="post-list__post-header">
<h2 class="post-list__post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</div>
<!--
<p class="byline entry-meta vcard">
<?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
/* the time the post was published */
'<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
/* the author of the post */
'<span class="by">'.__( 'by', 'bonestheme').'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
); ?>
</p>
-->
<div class="post-liat__post-body">
<?php the_excerpt(); ?>
</div>
<!--
<p class="footer-comment-count">
<?php comments_number( __( '<span>No</span> Comments', 'bonestheme' ), __( '<span>One</span> Comment', 'bonestheme' ), __( '<span>%</span> Comments', 'bonestheme' ) );?>
</p>
-->
<div class="post-list__post-footer">
<div class="post-meta">
<div class="post-meta__left">
<?php echo get_the_time(get_option('date_format')); ?>
</div>
<div class="post-meta__right">
<?php printf( '%1$s' , get_the_category_list(', ') ); ?>
</div>
</div>
<div class="post-tags">
<?php the_tags( '<div class="post-tags__tag">' . __( 'Tags:', 'bonestheme' ) . '</div> '); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h1><?php _e( 'Sorry, No Results.', 'bonestheme' ); ?></h1>
<p><?php _e( 'Try your search again.', 'bonestheme' ); ?></p>
<p><?php _e( 'This is the error message in the search.php template.', 'bonestheme' ); ?></p>
<?php endif; ?>
</div>
<?php pagination(); ?>
<?php get_footer(); ?>