PageRenderTime 60ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 50 lines | 38 code | 12 blank | 0 comment | 3 complexity | 21c971fa6fbe5ff262b6efaab7b2275b MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header() ?>
  2. <div id="content">
  3. <?php if (have_posts()) : ?>
  4. <h2 class="pagetitle"><?php _e('Search Results'); ?></h2>
  5. <?php while (have_posts()) : the_post(); ?>
  6. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  7. <p class="post-date" title="<?php printf(__('%1$s at %2$s'), get_the_time(get_option('date_format')), get_the_time(get_option('time_format'))); ?>">
  8. <span class="date-day"><?php the_time('j') ?></span>
  9. <span class="date-month"><?php the_time('M') ?></span>
  10. </p>
  11. <h3><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>
  12. <p class="metadata">
  13. <?php printf(__('Posted by %1$s in %2$s.'), get_the_author(), get_the_category_list(', ')); ?>
  14. <?php the_tags(__('Tagged: ', 'sandbox'), ", ", "."); ?>
  15. <span class="feedback"><?php comments_popup_link(__('Leave a Comment'), __('1 Comment'), __('% Comments')); ?></span><?php edit_post_link('Edit', ' | ', ''); ?></p>
  16. <div class="entry">
  17. <?php the_excerpt('<span class="more-link">'.__('Continue reading', 'springloaded').'</span>'); ?>
  18. </div>
  19. </div>
  20. <?php endwhile; ?>
  21. <div class="prev-next">
  22. <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')); ?></div>
  23. <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')); ?></div>
  24. </div>
  25. <?php else : ?>
  26. <div <?php post_class(); ?>>
  27. <h2><?php _e('Not Found'); ?></h2>
  28. <div class="post">
  29. <div class="entry">
  30. <p><?php _e('Sorry, but you are looking for something that isn\'t here.'); ?></p>
  31. <?php include (TEMPLATEPATH . "/searchform.php"); ?>
  32. </div></div>
  33. </div>
  34. <?php endif; ?>
  35. </div><!-- /content -->
  36. </div><!-- /main -->
  37. <?php get_sidebar() ?>
  38. <?php get_footer() ?>