Initial commit

This commit is contained in:
Alexander Agnarson 2020-03-11 14:32:45 +01:00
commit 9f13aa6240
389 changed files with 84369 additions and 0 deletions

59
search.php Normal file
View file

@ -0,0 +1,59 @@
<?php get_header(); ?>
<div id="split-left">
<?php get_template_part('inc/featured'); ?>
</div><!--/#split-left-->
<div id="split-right">
<div id="split-right-top" class="pad">
<?php get_template_part('inc/page-title'); ?>
</div>
<div class="content pad">
<div class="notebox">
<?php esc_html_e('For the term','split'); ?> "<span><?php echo get_search_query(); ?></span>".
<?php if ( !have_posts() ): ?>
<?php esc_html_e('Please try another search:','split'); ?>
<?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-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-grid-->
<?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-->
</div><!--/#split-right-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>