Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header() ;?>
- <?php if (($var['sidebars'] == 'left' || $var['sidebars'] == 'left and right') && ($var['sidebarGroup'] != 'right') ) { get_sidebar('left'); if($var['sidebars'] == 'left and right' && ($var['sidebarGroup'] == 'left')) {get_sidebar('right'); } } ?>
- <div id="main" class="equalht">
- <div class="main_wrapper">
- <?php if ($var['k9-vision'] == 'on') { ?> <div class="mvtext" style="height:400px">Content Area (<?php echo $var['main_width']; ?>px wide)</div><div class="clear" style="height:280px"></div><?php } else { ?>
- <?php k9_get_hanger('content/before/'); ?>
- <?php if (have_posts()) : ?>
- <h2><?php echo $var['search_text']; ?></h2>
- <?php if($var['show_search_term'] == 'on') : ?><h3>Searched Term: <em><?php echo $_GET['s']; ?></em></h3><?php endif; ?>
- <?php if(function_exists('wp_paginate')) wp_paginate(); else posts_nav_link(); ?>
- <div id="search-results">
- <?php while (have_posts()) : the_post(); ?>
- <div class="tag_cloud">
- /* START custom code to format the post title and images to link to the full post. */
- echo '</br>';
- ?>
- <a href="<?php echo get_permalink(); ?>"><?php the_excerpt() ?></a>
- <?php
- $current_permalink = get_permalink();
- echo '</br>';
- $args = array(
- 'post_type' => 'attachment',
- 'numberposts' => -1,
- 'post_status' => null,
- 'post_parent' => $post->ID
- );
- $attachments = get_posts( $args );
- if ( $attachments ) {
- foreach ( $attachments as $attachment ) {
- echo '<ul>';
- ?>
- <a href="<?php echo $current_permalink ?>"><?php echo wp_get_attachment_image( $attachment->ID, 'thumbnail' ); ?> </a>
- <?php
- echo '</p></ul>';
- }
- }
- echo '</br></br>';
- /** get_template_part( 'content', get_post_format() ); */
- /* END custom code to format the post title and images to link to the full post. */
- </div>
- <?php endwhile; ?>
- <div class="clear"></div>
- </div>
- <?php if(function_exists('wp_paginate')) wp_paginate(); else posts_nav_link(); ?>
- <?php else : ?>
- <h2>No posts found. Try a different search?</h2>
- <?php endif; } ?>
- <?php k9_get_hanger('content/after/'); ?>
- </div>
- </div>
- <?php if (($var['sidebars'] == 'right' || $var['sidebars'] == 'left and right') && ($var['sidebarGroup'] != 'left') ) { if($var['sidebars'] == 'left and right' && ($var['sidebarGroup'] == 'right')) {get_sidebar('left'); } get_sidebar('right'); } ?>
- <div class="clear"></div>
- <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement