Advertisement
towfiqi

search.php

Apr 1st, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.00 KB | None | 0 0
  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="lay1">
  10.             <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
  11.                 <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  12.                
  13.             <!--THE Date Badge-->    
  14.             <?php if($option["scl_diss_date"] == "1"){ ?>
  15.             <?php } else { ?>
  16.  
  17.             <div class="date"><div class="date_content"><?php the_time('dS'); ?> <?php the_time('M'); ?><span><?php the_time('Y'); ?></span></div></div>       
  18.             <?php }?>
  19.                
  20.                      <div class="post_image">
  21.                      <!--CALL TO POST IMAGE-->
  22.                     <?php if ( has_post_thumbnail() ) : ?>
  23.                     <div class="imgwrap"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
  24.                    
  25.                     <?php elseif($photo = scl_get_images('numberposts=1', true)): ?>
  26.    
  27.                     <div class="imgwrap">
  28.                     <a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
  29.                
  30.                     <?php else : ?>
  31.                    
  32.                     <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>  
  33.                              
  34.                     <?php endif; ?>
  35.  
  36.                 </div>
  37.                
  38.                 <div class="post_content">
  39.                     <h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
  40.                     <?php scylla_wpe_excerpt('wpe_excerptlength_teaser', 'wpe_excerptmore'); ?>
  41.                 </div>
  42.                
  43.                 <div class="post_meta"><div class="block_comm"><?php if (!empty($post->post_password)) { ?>
  44.             <?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>
  45.                
  46.                 </div>
  47.                
  48.              <?php endwhile ?>
  49.             <?php if (function_exists("scylla_paginate")) {
  50.                 scylla_paginate();
  51.                  } ?>  
  52.             <?php endif ?>
  53.             </div>  
  54.  
  55. </div>
  56.        
  57.     <!--Sidebar-->
  58.     <?php get_sidebar(); ?>
  59.  
  60. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement