Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Archives Page
- */
- ?>
- <?php get_header(); ?>
- <div id="content" class="col-full">
- <div class="fl author-left" id="main">
- <!-- This sets the $curauth variable -->
- <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts(array(
- 'posts_per_page' => 8,
- 'paged' => $paged
- )
- ); ?>
- <?php query_posts('showposts=8'); ?>
- <?php
- $count = 1;
- if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?>
- <div id="featurd_post">
- <div class="media-list"><?php woo_get_image('image',180,100,' '.$GLOBALS['align']); ?></div>
- <div class="fr blurb">
- <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h2>
- <p class="fetrd_entry"><?php echo limit_words(get_the_excerpt(), '205'); ?></p>
- <a href="#" title="" class="read_more">(<?php _e('आगे पढे ', 'shreshthbharat'); ?>)</a>
- </div></div>
- <!-- /.Featured Post End --><div class="fix"></div>
- <?php else : ?>
- <div class="post_author">
- <div class="post_image"><?php woo_get_image('image',180,100,'thumbnail '.$GLOBALS['align']); ?> </div>
- <div class="author_post_mtr fr">
- <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h2>
- <div class="entry"><?php echo limit_words(get_the_excerpt(), '205'); ?>
- </div>
- <p class="post-meta"><span class="timstp"><?php the_time('M j, Y') ?></span>
- <span class="comments">
- <?php comments_number('<span class="cmntbx">टिप्पणी</span><span class="bxarw"></span><span class="CntBx">0 </span>','<span class="cmntbx">टिप्पणी</span><span class="bxarw"></span><span class="CntBx">1</span>','<span class="cmntbx">टिप्पणियाँ </span><span class="bxarw"></span><span class="CntBx">%</span>'); ?></span>
- <span class="view_cnt"><?php setPostViews(get_the_ID());?><?php echo getPostViews(get_the_ID()); ?></span>
- </p></div>
- <div class="fix"></div></div>
- <!-- /.Post Author End -->
- <?php if ($count== 3 || $count == 7 ){ ?>
- <?php dynamic_sidebar('index-insert') ?>
- <?php } ?>
- <?php $count = $count + 0; ?>
- <?php endif; ?>
- <?php $count++; ?>
- <?php endwhile; ?>
- <!-- /.post -->
- <?php else : ?>
- <div class="post">
- <h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','linepress');?></h2>
- </div>
- <?php endif; ?>
- <div class="more_entries">
- <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?><?php } ?></div><!-- /.more_entries -->
- </div>
- <!-- /#main -->
- <?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar('front_top') || is_active_sidebar('archive-1') || is_active_sidebar('archive-2')) ) ) : ?>
- <div class="fr" id="aside">
- <?php dynamic_sidebar('archive-1'); ?>
- <div class="ad_aside"><?php dynamic_sidebar('front_top'); ?></div>
- </div>
- <!-- /#aside -->
- <?php endif; ?>
- </div><!-- /#content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement