mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-27 20:23:04 +08:00
Initial commit
This commit is contained in:
commit
b0607606ae
369 changed files with 85494 additions and 0 deletions
61
search.php
Normal file
61
search.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<?php get_template_part('inc/page-title'); ?>
|
||||
|
||||
<div id="page">
|
||||
<div class="container">
|
||||
<div class="main">
|
||||
<div class="main-inner group">
|
||||
|
||||
<div class="content">
|
||||
<div class="pad group">
|
||||
|
||||
<div class="notebox">
|
||||
<?php esc_html_e('For the term','magaziner'); ?> "<span><?php echo get_search_query(); ?></span>".
|
||||
<?php if ( !have_posts() ): ?>
|
||||
<?php esc_html_e('Please try another search:','magaziner'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="search-again">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
</div><!--/.notebox-->
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php if ( get_theme_mod('blog-layout','blog-grid') == '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-grid-->
|
||||
|
||||
<?php elseif ( get_theme_mod('blog-layout','blog-grid') == '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><!--/.pad-->
|
||||
</div><!--/.content-->
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
</div><!--/.main-inner-->
|
||||
</div><!--/.main-->
|
||||
</div><!--/.container-->
|
||||
</div><!--/#page-->
|
||||
|
||||
<?php get_footer(); ?>
|
Loading…
Add table
Add a link
Reference in a new issue