PageRenderTime 70ms CodeModel.GetById 19ms RepoModel.GetById 3ms app.codeStats 0ms

/webroot/blog/wp-content/themes/la-school-blue/search.php

https://github.com/Wargo/reddevil
PHP | 44 lines | 27 code | 17 blank | 0 comment | 3 complexity | cd3c59c9dc9ffa043096c3598b2a3259 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1, GPL-3.0
  1. <?php get_header(); ?>
  2. <div class="content">
  3. <?php if (have_posts()) : ?>
  4. <h3><?php _e('Search Results', 'laschool'); ?></h3>
  5. <p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>&#8216;%3$s&#8217;</strong>.', 'laschool'), get_bloginfo('url'), get_bloginfo('name'), get_search_query()); ?></p>
  6. <p>&nbsp;</p>
  7. <?php while (have_posts()) : the_post(); ?>
  8. <div <?php post_class(); ?>>
  9. <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'laschool'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a> <small>&ndash; <?php the_time(__('j. F, Y', 'laschool')) ?> <!-- by <?php the_author() ?> --></small></h2>
  10. <div class="entry">
  11. <?php the_content() ?>
  12. </div>
  13. <div class="comments-nr"><?php comments_popup_link(__('0<span> Comments</span>', 'laschool'), __('1<span> Comment</span>', 'laschool'), __('%<span> Comments</span>', 'laschool')); ?></div>
  14. <div class="postdata"><?php printf(__('Posted in %s', 'laschool'), get_the_category_list(', ')); ?></div>
  15. </div>
  16. <?php endwhile; ?>
  17. <div class="navigation">
  18. <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'laschool')) ?></div>
  19. <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'laschool')) ?></div>
  20. </div>
  21. <?php else : ?>
  22. <h2 class="center"><?php _e('No posts found. Try a different search?', 'laschool'); ?></h2>
  23. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  24. <?php endif; ?>
  25. </div>
  26. <?php get_sidebar(); ?>
  27. <?php get_footer(); ?>