-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
46 lines (38 loc) · 1.68 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
<?php
/**
* Search Results template.
*
*/
get_header(); ?>
<div id="wrapper">
<?php if((isset($e404_options['main_intro_type']) && $e404_options['main_intro_type'] != 'none') || $e404_options['breadcrumbs']) echo '<div id="head_intro">'; ?>
<?php include(OF_FILEPATH.'/main-intro-box.php'); ?>
<?php if($e404_options['breadcrumbs']) : ?><div id="breadcrumb"><?php e404_breadcrumbs(); ?></div><?php endif; ?>
<?php if((isset($e404_options['main_intro_type']) && $e404_options['main_intro_type'] != 'none') || $e404_options['breadcrumbs']) echo '</div>'; ?>
<div id="page-content" class="full-page">
<?php
if(have_posts()) :
?>
<div class="full_page"><h2><?php printf( __('Search Results for: %s', 'shiny'), '<em>'.get_search_query().'</em>'); ?></h2></div>
<?php
while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post search-item">
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(''); ?>
<?php if(!is_single() && $e404_options['blog_read_more']) : ?>
<p class="more"><span><a href="<?php the_permalink(); ?>"><?php echo($e404_options['blog_read_more_text']); ?></a></span></p>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<div id="post-0" <?php post_class(); ?>>
<h2 class="entry-title"><?php _e('Nothing Found', 'shiny'); ?></h2>
<p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'shiny'); ?></p>
<?php get_search_form(); ?>
</div>
<?php endif; ?>
<?php get_template_part('navigation'); ?>
</div>
<br class="clear" />
</div>
<?php get_footer(); ?>