PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/search.php

https://github.com/petergibbons/OpenCounterWP
PHP | 45 lines | 21 code | 20 blank | 4 comment | 3 complexity | a3a88d2d91aee61a0ab94feba464b2e3 MD5 | raw file
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6. get_header(); ?> <div id="header3">
  7. <a href="http://opencounter.org">
  8. <canvas id="clockcanvas" width="50" height="50"></canvas>
  9. </a>
  10. </div>
  11. <div id="content" class="narrowcolumn" role="main">
  12. <?php if (have_posts()) : ?>
  13. <h2 class="pagetitle"><?php _e('Search Results', 'kubrick'); ?></h2>
  14. <?php while (have_posts()) : the_post(); ?>
  15. <div <?php post_class(); ?>>
  16. <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3>
  17. </div>
  18. <?php endwhile; ?>
  19. <?php else : ?>
  20. <h2 class="center"><?php _e('No posts found. Try a different search?', 'kubrick'); ?></h2>
  21. <?php get_search_form(); ?>
  22. <?php endif; ?>
  23. </div>
  24. <?php get_sidebar(); ?>
  25. <?php get_footer(); ?>