search.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php get_header(); ?>
  2. <?php $options = get_option('philna_options'); ?>
  3. <div class="position"><?php _e('Search Results', 'philna'); ?><strong>
  4. <?php printf( __('Keyword: &#8216;%1$s&#8217;', 'philna'), esc_html($s) ); ?></strong>
  5. </div>
  6. <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
  7. <div class="post">
  8. <?php the_title('<h2 class="post-title entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?>
  9. <div class="info">
  10. <?php edit_post_link(__('Edit', 'philna'), '<span class="editpost">', '</span>'); ?>
  11. <span class="comments-link"><?php comments_popup_link(__('No comments', 'philna'), __('1 comment', 'philna'), __('% comments', 'philna')); ?></span>
  12. <span class="published"><?php the_time(__('F jS, Y', 'philna')) ?></span>
  13. <span class="post-author"><a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>"><?php the_author();?></a></span>
  14. </div>
  15. <div class="entry-content">
  16. <?php the_content(__('Continue reading...','philna')); ?>
  17. </div>
  18. <div class="entry-meta">
  19. <span class="cat-links"><?php the_category(', '); ?></span>
  20. <?php the_tags('<span class="tag-links">', ', ', '</span>');?>
  21. </div>
  22. </div>
  23. <?php endwhile; ?>
  24. <?php else: ?>
  25. <p class="no-data"><?php _e('Sorry, no posts matched your criteria.','philna'); ?></p>
  26. <?php endif; ?>
  27. <div id="pagenavi">
  28. <?php if(function_exists('wp_pagenavi')) : ?>
  29. <?php wp_pagenavi() ?>
  30. <?php else : ?>
  31. <span class="newer"><?php previous_posts_link(__('Newer Entries', 'philna')); ?></span>
  32. <span class="older"><?php next_posts_link(__('Older Entries', 'philna')); ?></span>
  33. <?php endif; ?>
  34. <div class="fixed"></div>
  35. </div>
  36. <?php get_footer(); ?>