Advertisement
STATEDLIGHT

Search Results

Jan 21st, 2013
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="container">
  3. <div id="content">
  4. <?php if ( have_posts() ) : ?>
  5. <h1 class="page-title"><?php _e( 'Search Results for: ', 'tiger' ); ?><span><?php the_search_query(); ?></span></h1>
  6. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  7. <div id="nav-above" class="navigation">
  8. <p class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'tiger' )) ?></p>
  9. <p class="nav-next"><?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'tiger' )) ?></p>
  10. </div>
  11. <?php } ?>
  12. <?php while ( have_posts() ) : the_post() ?>
  13. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  15. <?php if ( $post->post_type == 'post' ) { ?>
  16. <div class="entry-meta">
  17. <span class="meta-prep meta-prep-author"><?php _e('By ', 'tiger'); ?></span>
  18. <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php printf( __( 'View all articles by %s', 'tiger' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
  19. <span class="meta-sep"> | </span>
  20. <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'tiger'); ?></span>
  21. <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
  22. <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  23. </div>
  24. <?php } ?>
  25. <div class="entry-summary">
  26. <?php the_content( __( 'continue reading <span class="meta-nav">&raquo;</span>', 'tiger' ) ); ?>
  27. <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'tiger' ) . '&after=</div>') ?>
  28. </div>
  29. <?php if ( $post->post_type == 'post' ) { ?>
  30. <div class="entry-utility">
  31. <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'tiger' ); ?></span><?php echo get_the_category_list(', '); ?></span>
  32. <span class="meta-sep"> | </span>
  33. <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'tiger' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\"> | </span>\n" ) ?>
  34. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'tiger' ), __( '1 Comment', 'tiger' ), __( '% Comments', 'tiger' ) ) ?></span>
  35. <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
  36. </div>
  37. <?php } ?>
  38. </div>
  39. <?php endwhile; ?>
  40. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  41. <div id="nav-below" class="navigation">
  42. <?php if(function_exists('wp_pagenavi')) { ?>
  43. <?php wp_pagenavi(); ?>
  44. <?php } else { ?>
  45. <p class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'tiger' )) ?></p>
  46. <p class="nav-next"><?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'tiger' )) ?></p>
  47. <?php } ?>
  48. </div>
  49. <?php } ?>
  50. <?php else : ?>
  51. <div id="post-0" class="post no-results not-found">
  52. <h2 class="entry-title"><?php _e( 'Nothing Found', 'tiger' ) ?></h2>
  53. <div class="entry-content">
  54. <p><?php _e( 'Sorry, nothing matched your search. Please try again.', 'tiger' ); ?></p>
  55. <?php get_search_form(); ?>
  56. </div>
  57. </div>
  58. <?php endif; ?>
  59. </div>
  60. </div>
  61. <div id="sidebar"><?php dynamic_sidebar('right'); ?></div>
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement