Guest User

Untitled

a guest
Jan 7th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="header-title">
  4. <div class="wrapper">
  5.  
  6. <div class="page-title"><?php _e( 'Search Results', 'CommunityJunction' ); ?>: <?php echo get_search_query(); ?></div>
  7.  
  8. </div><!-- wrapper -->
  9. </div><!-- #header-title -->
  10.  
  11.  
  12. <div class="wrapper spacer">
  13.  
  14. <div id="content">
  15. <div class="padder">
  16.  
  17. <?php do_action( 'bp_before_blog_search' ); ?>
  18.  
  19. <div class="page" id="blog-search" role="main">
  20.  
  21. <?php if (have_posts()) : ?>
  22.  
  23. <?php while (have_posts()) : the_post(); ?>
  24.  
  25. <?php do_action( 'bp_before_blog_post' ); ?>
  26.  
  27. <div class="blog-post">
  28.  
  29. <div class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Fixed link <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div><!--post-title-->
  30.  
  31. <?php
  32. if ( has_post_thumbnail() ) { ?>
  33. <div class="thumbnail">
  34. <?php the_post_thumbnail('post-thumbnail');
  35. the_post_thumbnail_caption(); ?>
  36. </div>
  37. <?php } else {
  38. // no thumbnail
  39. }
  40. ?>
  41.  
  42. <div class="text">
  43.  
  44. <?php
  45. global $more;
  46. $more = 0;
  47. the_content( __('Read more','CommunityJunction') );
  48. ?>
  49.  
  50. </div><!--text-->
  51.  
  52. </div><!--blog-post-->
  53. <div class="clear"> </div>
  54.  
  55. <?php do_action( 'bp_after_blog_post' ); ?>
  56.  
  57. <?php endwhile; ?>
  58.  
  59. <div class="pagination-blog">
  60. <?php
  61. $big = 999999999; // need an unlikely integer
  62. echo paginate_links( array(
  63. 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
  64. 'format' => '?paged=%#%',
  65. 'current' => max( 1, get_query_var('paged') ),
  66. 'total' => $wp_query->max_num_pages
  67. ) );
  68. ?>
  69. </div>
  70.  
  71. <?php else : ?>
  72.  
  73. <h2 class="center"><?php _e( 'No posts found. Try a different search?', 'CommunityJunction' ); ?></h2>
  74.  
  75. <?php endif; ?>
  76.  
  77. </div>
  78.  
  79. <?php do_action( 'bp_after_blog_search' ); ?>
  80.  
  81. </div><!-- .padder -->
  82. </div><!-- #content -->
  83.  
  84.  
  85. <div id="sidebar">
  86. <?php if ( !is_user_logged_in() ) { ?>
  87. <a href="<?php echo home_url(); ?>/register" class="join-button"></a>
  88. <?php } else { ?>
  89. <a href="<?php echo bp_loggedin_user_domain(); ?>" class="my-account-button"></a>
  90. <?php } ?>
  91. <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-blog')) : ?><?php endif; ?>
  92. </div><!--sidebar ends-->
  93.  
  94. </div><!-- wrapper -->
  95.  
  96. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment