-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
36 lines (33 loc) · 1018 Bytes
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php get_header(); ?>
<?php latavelha_map(__('Search results', 'latavelha')); ?>
<section class="search content-section clearfix">
<div class="container">
<div class="twelve columns">
<?php if(have_posts()) : ?>
<h2><?php if(function_exists('bcn_display')) bcn_display(); else wp_title(''); ?></h2>
<div class="clearfix">
<ul class="search-list">
<?php while(have_posts()) : the_post(); ?>
<li class="search-item">
<?php get_template_part('card', get_post_type()); ?>
</li>
<?php endwhile; ?>
</ul>
<script type="text/javascript">
jQuery(document).ready(function($) {
var $container = $('.search-list');
$container.imagesLoaded(function() {
$container.isotope({
itemSelector: '.search-item',
layoutMode: 'masonry'
});
});
});
</script>
</div>
<?php if(function_exists('wp_paginate')) wp_paginate(); ?>
<?php endif; ?>
</div>
</div>
</section>
<?php get_footer(); ?>