Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 34 lines (26 sloc) 779 Bytes
<?php
/**
* Search results template.
*
* @package Inkblot
* @see https://codex.wordpress.org/Template_Hierarchy
*/
get_header(); ?>
<main role="main">
<?php if (have_posts()) : ?>
<header class="page-header">
<h1><?php printf(__('<span class="screen-reader-text">Search results for </span>%1$s'), get_search_query()) ?></h1>
</header><!-- .page-header -->
<?php
while (have_posts()) : the_post();
(webcomic() and is_a_webcomic())
? get_template_part('webcomic/content', get_post_type())
: get_template_part('content', get_post_format());
endwhile;
print inkblot_posts_nav(false, get_theme_mod('paged_navigation', true));
else :
get_template_part('content', 'none');
endif;
?>
</main>
<?php get_sidebar(); get_footer();