PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/andreas09/search.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 44 lines | 33 code | 11 blank | 0 comment | 3 complexity | 97848eb6d7b1d25053ec4bd9bb629f3d MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <?php get_sidebar(); ?>
  3. <?php include (TEMPLATEPATH . '/right-sidebar.php'); ?>
  4. <div id="content">
  5. <?php if (have_posts()) : ?>
  6. <h1 class="pagetitle"><?php _e('Search Results','andreas09'); ?></h1>
  7. <div class="navigation">
  8. <div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries','andreas09')) ?></div>
  9. <div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;','andreas09')) ?></div>
  10. </div>
  11. <?php while (have_posts()) : the_post(); ?>
  12. <div <?php post_class(); ?>>
  13. <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h3>
  14. <p class="date"><?php _e('Posted on','andreas09'); ?> <?php the_time(get_option("date_format")); ?></small></p>
  15. <?php the_excerpt(''); ?>
  16. <p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php _e('Read the rest of this post...','andreas09'); ?></a></p>
  17. <p class="category"><?php _e('Posted in','andreas09'); ?> <?php the_category(', ') ?> | <?php edit_post_link(__('Edit','andreas09'), '', ' | '); ?> <?php comments_popup_link(__('Leave a Comment &#187;','andreas09'), __('1 Comment &#187;','andreas09'), __('% Comments &#187;','andreas09')); ?></p>
  18. </div>
  19. <?php endwhile; ?>
  20. <div class="bottomnavigation">
  21. <div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries','andreas09')) ?></div>
  22. <div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;','andreas09')) ?></div>
  23. </div>
  24. <?php else : ?>
  25. <div id="page">
  26. <h1 class="center"><?php _e('Search Results','andreas09'); ?></h1>
  27. <h2 class="center"><?php _e('Not Found','andreas09'); ?></h2>
  28. <p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.','andreas09'); ?></p>
  29. <p class="center"><?php _e('Perhaps you would like to try another search or select from one of the links on the menu.','andreas09'); ?></p>
  30. </div>
  31. <?php endif; ?>
  32. </div>
  33. <?php get_footer(); ?>