Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php
- //if there are results to show
- if (have_posts()) : ?>
- <section class="page-title">
- <div class="two-third">
- <h2><?php _e('Search Results for: ', 'line'); ?>"<?php the_search_query(); ?>"</h2>
- </div>
- <div class="one-third column-last">
- <?php get_search_form( true ); ?>
- </div>
- <div class="clear"></div>
- </section>
- <div class="centered-wrapper">
- <div id="posts">
- <?php
- if (have_posts()) {
- while (have_posts()) : the_post();
- ?>
- <article class="post" id="post-<?php the_ID(); ?>">
- <h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <div class="meta">
- <span class="post-date"><?php the_time(get_option('date_format')); ?></span>
- <span class="post-author"><?php the_author(); ?></span>
- <span class="post-comment"><?php comments_popup_link(__('No Comments »', 'line'), __('1 Comment »', 'line'), __('% Comments »', 'line')); ?></span>
- </div><!--end meta-->
- <?php if ( has_post_thumbnail() ) { ?>
- <div class="post-thumbnail">
- <a href="<?php the_permalink(); ?>">
- <span class="item-on-hover"><span class="hover-link"></span></span>
- <?php the_post_thumbnail('blog-thumb'); ?>
- </a>
- </div><!--end post-thumbnail-->
- <?php } ?>
- <div class="excerpt">
- <?php the_excerpt(); ?>
- </div>
- </article>
- <?php endwhile;
- // if there are results, but not from the blog posts
- } else { ?>
- <article>
- <p><?php _e('Sorry, but the requested resource was not found on this site. Try another search:', 'line'); ?></p>
- <div class="no-page"><?php get_search_form(); ?></div>
- </article>
- <?php } ?>
- </div>
- <?php get_sidebar(); ?>
- </div>
- <?php
- // if there are no search results
- else : ?>
- <section class="page-title">
- <div class="two-third">
- <h2><?php _e('No Results for: ', 'line'); ?>"<?php the_search_query(); ?>"</h2>
- </div>
- <div class="one-third column-last">
- <?php get_search_form( true ); ?>
- </div>
- <div class="clear"></div>
- </section>
- <div class="centered-wrapper">
- <div id="posts">
- <article>
- <p><?php _e('Sorry, but the requested resource was not found on this site. Try another search.', 'line'); ?></p>
- </article>
- </div>
- <?php get_sidebar(); ?>
- </div>
- <?php endif; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement