Advertisement
yashmistrey

archive

Jul 9th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.78 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="content" class="col-full">
  3. <div class="fl" id="main">
  4. <div class="fl" id="sub-left">
  5. <div class="Left_Column_Sports">
  6. <?php include( TEMPLATEPATH . '/includes/tb/sports_left.tpl.php' ); ?></div>
  7. <div class="Left_Column_Author">
  8. <?php include( TEMPLATEPATH . '/includes/tb/author_left.tpl.php' ); ?></div>
  9. </div>
  10. <div class="fr" id="main_article">
  11. <?php
  12. $count = 1;
  13. if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?>
  14. <div id="featurd_post">
  15. <div class="ftrd_image"><?php woo_get_image('image',455,245,' '.$GLOBALS['align']); ?></div>
  16. <div class="fix"></div>
  17. <div class="ftrd_entry">
  18. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h2>
  19. <p class="fetrd_entry"><?php dynamic_excerpt(400); ?></p>
  20. <a href="#" title="" class="read_more">(<?php _e('&#2310;&#2327;&#2375; &#2346;&#2338;&#2375; ', 'shre_bht'); ?>)</a>
  21. </div></div>     
  22.  <?php else : ?>
  23.  
  24.      <div class="box"><div class="post">
  25. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h2>
  26. <div class="post_image"><?php woo_get_image('image',130,110,'thumbnail '.$GLOBALS['align']); ?> </div>
  27. <div class="post_matter"><div class="entry"><?php echo limit_words(get_the_excerpt(), '205'); ?>
  28. </div> </div>
  29. <div class="fix"></div><p class="post-meta"><span class="timtp"><?php the_time($GLOBALS['woodate']); ?></span><span class="comments"><?php comments_number(__('0 &#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2368;', 'shre_bht'), __('1 &#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2368;', 'shre_bht'), __('% &#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2367;&#2351;&#2366;&#2305;', 'shre_bht')); ?></span>
  30. <span class="Author_guest sandarbh"><?php $customField = get_post_custom_values("sandarbh");
  31. if (isset($customField[0])) {?><img src="<?php bloginfo('template_directory'); ?>/images/sandarbh_link.png" width="14px" height="14px" alt="" /><?php echo "<span class='gauthers'> &#2360;&#2306;&#2342;&#2352;&#2381;&#2349;: </span>".$customField[0]; } ?></span>
  32. <span class="Author_guest"><?php $author = get_post_custom_values("guest-author");
  33. if (isset($author[0])) {?><span class="authr"></span><?php echo "<span class='gauthers'> &#2354;&#2375;&#2326;&#2325;: </span>".$author[0];} ?></span></span>
  34. <span class="view"><?php _e('', 'shre_bht'); ?><?php echo getPostViews(get_the_ID()); ?></span>
  35. <span class="read-more fr"><a href="#" title="" class="btns"><?php _e('&#2310;&#2327;&#2375; &#2346;&#2338;&#2375; ', 'shre_bht'); ?></a></span>
  36. </p></div><!-- /.post --><div class="post-bottom"><div class="fix"></div></div></div>  
  37. <?php if ($count== 2 || $count == 4 ){ ?>  
  38.  
  39. <?php dynamic_sidebar('index-insert') ?>
  40. <?php } ?>
  41. <?php $count = $count + 0; ?>
  42.         <?php endif; ?>
  43.     <?php $count++; ?>
  44.     <?php endwhile; ?>
  45.     </div><!-- /.post -->
  46.    
  47.    
  48. <?php else : ?>
  49.     <div class="post">
  50.     <h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','linepress');?></h2>
  51.     </div>
  52. <?php endif; ?>
  53. <div class="more_entries">
  54. <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
  55. <?php } ?><!-- /#main --></div><!-- /#main --></div>
  56. <?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar('front_top') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4')) ) ) : ?>
  57. <div class="fr" id="aside">
  58. <?php dynamic_sidebar('front_top'); ?>
  59. <div class="Hot_Topic">
  60. <?php include( TEMPLATEPATH . '/includes/tb/hot_topic.tpl.php' ); ?>
  61. </div><!-- /.Hot_Topic -->
  62. <div class="ad_aside"><?php dynamic_sidebar('front_top'); ?></div>
  63. <div class="recent_com"> <?php include( TEMPLATEPATH . '/includes/tb/recentcom.tpl.php' ); ?></div>
  64. </div><!-- /#aside -->
  65. <?php endif; ?>
  66. </div>
  67. </div><!-- /#content -->
  68. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement