mirror of
https://ghproxy.net/https://github.com/AlxMedia/boxstyle.git
synced 2025-08-26 15:31:21 +08:00
51 lines
No EOL
1.4 KiB
PHP
51 lines
No EOL
1.4 KiB
PHP
<?php get_header(); ?>
|
|
|
|
<div class="content">
|
|
|
|
<?php get_template_part('inc/page-title'); ?>
|
|
|
|
<div class="pad pad-top group">
|
|
<div class="notebox">
|
|
<?php esc_html_e('For the term','boxstyle'); ?> "<span><?php echo get_search_query(); ?></span>".
|
|
<?php if ( !have_posts() ): ?>
|
|
<?php esc_html_e('Please try another search:','boxstyle'); ?>
|
|
<?php endif; ?>
|
|
<div class="search-again">
|
|
<?php get_search_form(); ?>
|
|
</div>
|
|
</div>
|
|
</div><!--/.pad-->
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
<?php if ( get_theme_mod('blog-layout','blog-list') == 'blog-grid' ) : ?>
|
|
|
|
<div class="post-grid group">
|
|
<?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
|
|
<?php get_template_part('content-grid'); ?>
|
|
<?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
|
|
</div><!--/.post-list-->
|
|
|
|
<?php elseif ( get_theme_mod('blog-layout','blog-list') == 'blog-list' ) : ?>
|
|
|
|
<?php while ( have_posts() ): the_post(); ?>
|
|
<?php get_template_part('content-list'); ?>
|
|
<?php endwhile; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php while ( have_posts() ): the_post(); ?>
|
|
<?php get_template_part('content'); ?>
|
|
<?php endwhile; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php get_template_part('inc/pagination'); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div><!--/.content-->
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|