Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="content">
- <div class="search_term"><h2 class="postsearch"><?php printf( __( 'Search Results for: %s', 'triton' ), '<span>' . esc_html( get_search_query() ) . '</span>'); ?></h2>
- <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(' — ', 'triton'); echo $count . ''; wp_reset_query(); ?></a>
- </div>
- <div id="lay1">
- <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <!--THE Date Badge-->
- <?php if($option["scl_diss_date"] == "1"){ ?>
- <?php } else { ?>
- <div class="date"><div class="date_content"><?php the_time('dS'); ?> <?php the_time('M'); ?><span><?php the_time('Y'); ?></span></div></div>
- <?php }?>
- <div class="post_image">
- <!--CALL TO POST IMAGE-->
- <?php if ( has_post_thumbnail() ) : ?>
- <div class="imgwrap"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('medium'); ?></a></div>
- <?php elseif($photo = scl_get_images('numberposts=1', true)): ?>
- <div class="imgwrap">
- <a href="<?php the_permalink();?>"><?php echo wp_get_attachment_image($photo[0]->ID ,'medium'); ?></a></div>
- <?php else : ?>
- <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>
- <?php endif; ?>
- </div>
- <div class="post_content">
- <h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
- <?php scylla_wpe_excerpt('wpe_excerptlength_teaser', 'wpe_excerptmore'); ?>
- </div>
- <div class="post_meta"><div class="block_comm"><?php if (!empty($post->post_password)) { ?>
- <?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>
- </div>
- <?php endwhile ?>
- <?php if (function_exists("scylla_paginate")) {
- scylla_paginate();
- } ?>
- <?php endif ?>
- </div>
- </div>
- <!--Sidebar-->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement