-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-search.php
63 lines (54 loc) · 2.14 KB
/
content-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
/**
* The template part for displaying results in search pages.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
* @package Hive Lite
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
/* translators: %s: The post URL. */
the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
<div class="entry-meta">
<?php hivelite_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<footer class="entry-footer">
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'hive-lite' ) );
if ( $categories_list && hivelite_categorized_blog() ) { ?>
<span class="cat-links">
<?php
/* translators: %s: list of categories */
printf( esc_html__( 'Posted in %s', 'hive-lite' ), $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</span>
<?php } // End if categories
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html__( ', ', 'hive-lite' ) );
if ( $tags_list ) { ?>
<span class="tags-links">
<?php
/* translators: %s: list of tags. */
printf( esc_html__( 'Tagged %s', 'hive-lite' ), $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</span>
<?php
} // End if $tags_list
if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) { ?>
<span class="comments-link"><?php
/* translators: %s: The numberf of comments. */
comments_popup_link( esc_html__( 'Leave a comment', 'hive-lite' ), esc_html__( '1 Comment', 'hive-lite' ), esc_html__( '% Comments', 'hive-lite' ) ); ?></span>
<?php
}
edit_post_link( esc_html__( 'Edit', 'hive-lite' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->