PageRenderTime 151ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 63 lines | 49 code | 14 blank | 0 comment | 3 complexity | cb6b71e43977e0bc7ff3f1c016190bc4 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="container">
  3. <div id="content" class="hfeed">
  4. <?php if (have_posts()) : ?>
  5. <h2 class="page-title"><?php _e('Search Results for:', 'chaostheory') ?> <?php the_search_query(); ?></h2>
  6. <div id="nav-above" class="navigation">
  7. <div class="nav-previous"><?php next_posts_link(__('&laquo; Older posts', 'chaostheory')) ?></div>
  8. <div class="nav-next"><?php previous_posts_link(__('Newer posts &raquo;', 'chaostheory')) ?></div>
  9. </div>
  10. <?php while (have_posts()) : the_post(); ?>
  11. <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
  12. <div class="entry-meta">
  13. <h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s', 'chaostheory' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title() ?></a></h2>
  14. <ul>
  15. <li class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s &#8211; %2$s', 'chaostheory'), the_date('', '', '', false), get_the_time()) ?></abbr></li>
  16. <!-- <li class="entry-author author vcard"><?php printf(__('By %s', 'chaostheory'), '<a class="url fn" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="View all posts by ' . $authordata->display_name . '">'.get_the_author().'</a>') ?></li> -->
  17. <li class="entry-category"><?php printf(__('Posted in %s', 'chaostheory'), get_the_category_list(', ')) ?></li>
  18. <?php the_tags('<li class="entry-tags">'.__('Tagged').' ', ", ", "</li>\n") ?>
  19. <?php edit_post_link(__('Edit', 'chaostheory'), "\t\t\t\t\t<li class='entry-editlink'>", "</li>"); ?>
  20. <li class="entry-commentlink"><?php comments_popup_link(__('Leave a Comment', 'chaostheory'), __('Comments (1)', 'chaostheory'), __('Comments (%)', 'chaostheory')) ?></li>
  21. </ul>
  22. </div>
  23. <div class="entry-content">
  24. <?php the_content('<span class="more-link">'.__('Read More &raquo;', 'chaostheory').'</span>'); ?>
  25. </div>
  26. </div><!-- .post -->
  27. <?php endwhile; ?>
  28. <div id="nav-below" class="navigation">
  29. <div class="nav-previous"><?php next_posts_link(__('&laquo; Older posts', 'chaostheory')) ?></div>
  30. <div class="nav-next"><?php previous_posts_link(__('Newer posts &raquo;', 'chaostheory')) ?></div>
  31. </div>
  32. <?php else : ?>
  33. <div id="post-0" class="post">
  34. <h2 class="entry-title"><?php _e('Nothing Found', 'chaostheory') ?></h2>
  35. <div class="entry-content">
  36. <p class="search-error"><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'chaostheory') ?></p>
  37. </div>
  38. </div>
  39. <form id="searchform" method="get" action="<?php bloginfo('url') ?>">
  40. <div>
  41. <input id="s" name="s" type="text" value="<?php the_search_query(); ?>" tabindex="1" size="40" />
  42. <input id="searchsubmit" name="searchsubmit" type="submit" value="<?php esc_attr_e( 'Search &raquo;', 'chaostheory' ); ?>" tabindex="2" />
  43. </div>
  44. </form>
  45. <?php endif; ?>
  46. </div><!-- #content .hfeed -->
  47. </div><!-- #container -->
  48. <?php get_sidebar() ?>
  49. <?php get_footer() ?>