author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 0 | d970ebf37754 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* The template for displaying Search Results pages |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Twenty_Twelve |
|
7 |
* @since Twenty Twelve 1.0 |
|
8 |
*/ |
|
9 |
||
10 |
get_header(); ?> |
|
11 |
||
12 |
<section id="primary" class="site-content"> |
|
13 |
<div id="content" role="main"> |
|
14 |
||
15 |
<?php if ( have_posts() ) : ?> |
|
16 |
||
17 |
<header class="page-header"> |
|
18 |
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
|
19 |
</header> |
|
20 |
||
21 |
<?php twentytwelve_content_nav( 'nav-above' ); ?> |
|
22 |
||
23 |
<?php /* Start the Loop */ ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
24 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
25 |
while ( have_posts() ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
26 |
the_post(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
27 |
?> |
0 | 28 |
<?php get_template_part( 'content', get_post_format() ); ?> |
29 |
<?php endwhile; ?> |
|
30 |
||
31 |
<?php twentytwelve_content_nav( 'nav-below' ); ?> |
|
32 |
||
33 |
<?php else : ?> |
|
34 |
||
35 |
<article id="post-0" class="post no-results not-found"> |
|
36 |
<header class="entry-header"> |
|
37 |
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> |
|
38 |
</header> |
|
39 |
||
40 |
<div class="entry-content"> |
|
41 |
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentytwelve' ); ?></p> |
|
42 |
<?php get_search_form(); ?> |
|
43 |
</div><!-- .entry-content --> |
|
44 |
</article><!-- #post-0 --> |
|
45 |
||
46 |
<?php endif; ?> |
|
47 |
||
48 |
</div><!-- #content --> |
|
49 |
</section><!-- #primary --> |
|
50 |
||
51 |
<?php get_sidebar(); ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
52 |
<?php get_footer(); ?> |