mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-19 08:25:44 +03:00
Theme: Initial commit.
This was forked from `pub/wporg-main` and `pub/wporg-plugins`, and then customized.
This commit is contained in:
commit
de191e098b
38 changed files with 4532 additions and 0 deletions
34
themes/wporg-5ftf/search.php
Normal file
34
themes/wporg-5ftf/search.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php get_header(); ?>
|
||||
<main id="main" class="site-main" role="main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<header class="page-header">
|
||||
<h1 class="page-title">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: Search query. */
|
||||
esc_html__( 'Showing results for: %s', 'wporg-5ftf' ),
|
||||
'<strong>' . get_search_query() . '</strong>'
|
||||
);
|
||||
?>
|
||||
</h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
|
||||
get_template_part( 'template-parts/content', 'page' );
|
||||
endwhile;
|
||||
|
||||
the_posts_pagination();
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif; ?>
|
||||
</main><!-- #main -->
|
||||
|
||||
<?php get_footer();
|
Loading…
Add table
Add a link
Reference in a new issue