-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
59 lines (58 loc) · 2.43 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
* @package themeton
*/
get_template_part('page', 'defaults');
$blogConf['sidebar_position']=' right';
get_header();
global $blogConf; ?>
<section id="page" class="clearfix">
<!-- Start Page -->
<?php if ($data['full_width'] == 'fixed') echo '<div class="container"><div class="row">'; ?>
<?php
if (have_posts ()) { ?>
<div class="<?php if ($data['full_width'] == 'fixed') echo 'span12'; ?>">
<div class="header-page">
<h2 class="item-title">
<?php _e('Search result', 'themeton');?>
</h2>
<div class="page-teaser">
<div class="widget_search"><?php get_search_form(); ?></div>
</div>
</div>
<div id="masonry" class="<?php if ($data['full_width'] == 'only_grid') echo 'container-fluid'; ?> clearfix">
<div class="mansonry-container">
<!-- Start Featured Article --><?php
if (have_posts ()) the_post();
rewind_posts();
get_template_part('loop'); ?>
<!-- End Featured Article -->
</div>
</div>
</div><?php
} else { ?>
<div class="container">
<div class="span12 content-container">
<div class="row">
<div class="<?php echo $blogConf['content_span']; ?>">
<div class="item-single ">
<div class="not-found-message">
<h1><?php _e( 'Not Found', 'themeton' ); ?></h1>
<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'themeton'); ?></p>
</div>
<div class="widget_search"><?php get_search_form(); ?></div>
</div>
</div>
<div class="span3"><?php
$blogConf['sidebar_position'] = "right";
get_sidebar(); ?>
</div>
</div>
</div>
</div><?php
} ?>
<?php if ($data['full_width'] == 'fixed') echo '</div></div>'; ?>
<?php infiniteScroll(); ?>
<!-- End Page -->
</section><?php
get_footer(); ?>