Advertisement
yashmistrey

latest-posts.php

Oct 26th, 2011
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.00 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Archives Page
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="content" class="col-full">
  8. <div class="fl author-left" id="main">
  9. <!-- This sets the $curauth variable -->
  10. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  11.  
  12.  query_posts(array(
  13.    'posts_per_page' => 8,
  14.    'paged' => $paged
  15.   )
  16.  ); ?>
  17. <?php query_posts('showposts=8'); ?>   
  18. <?php
  19. $count = 1;
  20. if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?>
  21. <div id="featurd_post">
  22. <div class="media-list"><?php woo_get_image('image',180,100,' '.$GLOBALS['align']); ?></div>
  23. <div class="fr blurb">
  24. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h2>
  25. <p class="fetrd_entry"><?php echo limit_words(get_the_excerpt(), '205'); ?></p>
  26. <a href="#" title="" class="read_more">(<?php _e('&#2310;&#2327;&#2375; &#2346;&#2338;&#2375; ', 'shreshthbharat'); ?>)</a>
  27. </div></div>   
  28. <!-- /.Featured Post End --><div class="fix"></div>
  29.  <?php else : ?>
  30.  
  31. <div class="post_author">
  32. <div class="post_image"><?php woo_get_image('image',180,100,'thumbnail '.$GLOBALS['align']); ?> </div>
  33. <div class="author_post_mtr fr">
  34. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h2>
  35. <div class="entry"><?php echo limit_words(get_the_excerpt(), '205'); ?>
  36. </div>
  37. <p class="post-meta"><span class="timstp"><?php the_time('M j, Y') ?></span>
  38. <span class="comments">
  39. <?php comments_number('<span class="cmntbx">&#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2368;</span><span class="bxarw"></span><span class="CntBx">0 </span>','<span class="cmntbx">&#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2368;</span><span class="bxarw"></span><span class="CntBx">1</span>','<span class="cmntbx">&#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2367;&#2351;&#2366;&#2305; </span><span class="bxarw"></span><span class="CntBx">%</span>'); ?></span>
  40. <span class="view_cnt"><?php setPostViews(get_the_ID());?><?php echo getPostViews(get_the_ID()); ?></span>
  41. </p></div>
  42. <div class="fix"></div></div>
  43.  
  44. <!-- /.Post Author End -->
  45. <?php if ($count== 3 || $count == 7 ){ ?>  
  46.  
  47. <?php dynamic_sidebar('index-insert') ?>
  48. <?php } ?>
  49. <?php $count = $count + 0; ?>
  50.         <?php endif; ?>
  51.     <?php $count++; ?>
  52.     <?php endwhile; ?>
  53.   <!-- /.post -->
  54.    
  55.    
  56. <?php else : ?>
  57. <div class="post">
  58.     <h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','linepress');?></h2>
  59.     </div>
  60. <?php endif; ?>
  61. <div class="more_entries">
  62. <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?><?php } ?></div><!-- /.more_entries -->
  63. </div>
  64. <!-- /#main -->
  65. <?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar('front_top') || is_active_sidebar('archive-1') || is_active_sidebar('archive-2')) ) ) : ?>
  66. <div class="fr" id="aside">
  67. <?php dynamic_sidebar('archive-1'); ?>
  68. <div class="ad_aside"><?php dynamic_sidebar('front_top'); ?></div>
  69. </div>
  70. <!-- /#aside -->
  71. <?php endif; ?>
  72. </div><!-- /#content -->
  73. <?php get_footer(); ?>
  74.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement