Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="header-title">
- <div class="wrapper">
- <div class="page-title"><?php _e( 'Search Results', 'CommunityJunction' ); ?>: <?php echo get_search_query(); ?></div>
- </div><!-- wrapper -->
- </div><!-- #header-title -->
- <div class="wrapper spacer">
- <div id="content">
- <div class="padder">
- <?php do_action( 'bp_before_blog_search' ); ?>
- <div class="page" id="blog-search" role="main">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php do_action( 'bp_before_blog_post' ); ?>
- <div class="blog-post">
- <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-->
- <?php
- if ( has_post_thumbnail() ) { ?>
- <div class="thumbnail">
- <?php the_post_thumbnail('post-thumbnail');
- the_post_thumbnail_caption(); ?>
- </div>
- <?php } else {
- // no thumbnail
- }
- ?>
- <div class="text">
- <?php
- global $more;
- $more = 0;
- the_content( __('Read more','CommunityJunction') );
- ?>
- </div><!--text-->
- </div><!--blog-post-->
- <div class="clear"> </div>
- <?php do_action( 'bp_after_blog_post' ); ?>
- <?php endwhile; ?>
- <div class="pagination-blog">
- <?php
- $big = 999999999; // need an unlikely integer
- echo paginate_links( array(
- 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
- 'format' => '?paged=%#%',
- 'current' => max( 1, get_query_var('paged') ),
- 'total' => $wp_query->max_num_pages
- ) );
- ?>
- </div>
- <?php else : ?>
- <h2 class="center"><?php _e( 'No posts found. Try a different search?', 'CommunityJunction' ); ?></h2>
- <?php endif; ?>
- </div>
- <?php do_action( 'bp_after_blog_search' ); ?>
- </div><!-- .padder -->
- </div><!-- #content -->
- <div id="sidebar">
- <?php if ( !is_user_logged_in() ) { ?>
- <a href="<?php echo home_url(); ?>/register" class="join-button"></a>
- <?php } else { ?>
- <a href="<?php echo bp_loggedin_user_domain(); ?>" class="my-account-button"></a>
- <?php } ?>
- <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-blog')) : ?><?php endif; ?>
- </div><!--sidebar ends-->
- </div><!-- wrapper -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment