Advertisement
towfiqi

search.php

Apr 1st, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <div class="search_term"><h2 class="postsearch"><?php printf( __( 'Search Results for: %s', 'triton' ), '<span>' . esc_html( get_search_query() ) . '</span>'); ?></h2>
  6.             <a class="search_count"><?php _e('Total posts found for', 'triton'); ?> <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = esc_html($s, 1); $count = $allsearch->post_count; _e('', 'triton'); _e('<span class="search-terms">"', 'triton'); echo $key; _e('"</span>', 'triton'); _e(' &mdash; ', 'triton'); echo $count . ''; wp_reset_query(); ?></a>
  7.             </div>
  8.  
  9. <div id="posts">
  10.        
  11.             <div id="lay1">
  12.             <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
  13.                 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  14.                
  15.             <!--THE Date Badge-->    
  16.             <?php if($option["scl_diss_date"] == "1"){ ?>
  17.             <?php } else { ?>
  18.  
  19.             <div class="date"><div class="date_content"><?php the_time('dS'); ?> <?php the_time('M'); ?><span><?php the_time('Y'); ?></span></div></div>       
  20.             <?php }?>
  21.                
  22.                      <div class="post_image">
  23.                      <!--CALL TO POST IMAGE-->
  24.                     <?php if ( has_post_thumbnail() ) : ?>
  25.                     <div class="imgwrap"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
  26.                    
  27.                     <?php elseif($photo = scl_get_images('numberposts=1', true)): ?>
  28.    
  29.                     <div class="imgwrap">
  30.                     <a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
  31.                
  32.                     <?php else : ?>
  33.                    
  34.                     <div class="imgwrap"><a href="<?php the_permalink();?>"><img src="<?php echo get_template_directory_uri(); ?>/images/blank_img.png" alt="<?php the_title_attribute(); ?>" class="thumbnail"/></a></div>  
  35.                              
  36.                     <?php endif; ?>
  37.  
  38.                 </div>
  39.                
  40.                 <div class="post_content">
  41.                     <h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
  42.                     <?php scylla_wpe_excerpt('wpe_excerptlength_teaser', 'wpe_excerptmore'); ?>
  43.                 </div>
  44.                
  45.                 <div class="post_meta"><div class="block_comm"><?php if (!empty($post->post_password)) { ?>
  46.             <?php } else { ?><div class="comments"><?php comments_popup_link('0 <span>Comm</span>', '1 <span>Comm</span>', '% <span>Comm</span>', '', __('Off')); ?></div><?php } ?></div></div>
  47.                
  48.                 </div>
  49.                
  50.              <?php endwhile ?>
  51.             <?php if (function_exists("scylla_paginate")) {
  52.                 scylla_paginate();
  53.                  } ?>  
  54.             <?php endif ?>
  55.             </div>
  56.            
  57.         </div>  
  58.  
  59. </div>
  60.        
  61.     <!--Sidebar-->
  62.     <?php get_sidebar(); ?>
  63.  
  64. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement