WordPress 4.4
[autoinstalls/wordpress.git] / wp-content / themes / twentysixteen / template-parts / content-search.php
1 <?php
2 /**
3  * The template part for displaying results in search pages
4  *
5  * @package WordPress
6  * @subpackage Twenty_Sixteen
7  * @since Twenty Sixteen 1.0
8  */
9 ?>
10
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12         <header class="entry-header">
13                 <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
14         </header><!-- .entry-header -->
15
16         <?php twentysixteen_post_thumbnail(); ?>
17
18         <?php twentysixteen_excerpt(); ?>
19
20         <?php if ( 'post' === get_post_type() ) : ?>
21
22                 <footer class="entry-footer">
23                         <?php twentysixteen_entry_meta(); ?>
24                         <?php
25                                 edit_post_link(
26                                         sprintf(
27                                                 /* translators: %s: Name of current post */
28                                                 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
29                                                 get_the_title()
30                                         ),
31                                         '<span class="edit-link">',
32                                         '</span>'
33                                 );
34                         ?>
35                 </footer><!-- .entry-footer -->
36
37         <?php else : ?>
38
39                 <?php
40                         edit_post_link(
41                                 sprintf(
42                                         /* translators: %s: Name of current post */
43                                         __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
44                                         get_the_title()
45                                 ),
46                                 '<footer class="entry-footer"><span class="edit-link">',
47                                 '</span></footer><!-- .entry-footer -->'
48                         );
49                 ?>
50
51         <?php endif; ?>
52 </article><!-- #post-## -->
53