Advertisement
yashmistrey

archive-default23oct.php

Oct 23rd, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.05 KB | None | 0 0
  1. <?php
  2. $count = 1;
  3. if (have_posts()) : while (have_posts()) : the_post();         
  4.     if($count == 1) : ?>
  5.     <div id="top_section"> <div id="post_latest">
  6.             <div class="top_head op_cl"><?php _e('&#2340;&#2366;&#2332;&#2366; &#2360;&#2350;&#2366;&#2330;&#2366;&#2352;', 'BharatNews'); ?></div>
  7.             <div class="img_lft"><?php drthumb('width=370&height=200'); ?></div>
  8.             <div class="img_right">
  9.                 <h3 class="archiveTitle">
  10.                     <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'linepress' ), the_title_attribute( 'echo=0' ) ); ?>" ><?php the_title(); ?></a>
  11.                 </h3>
  12.                 <p class="exc_let"><?php echo limit_words(get_the_excerpt(), '44'); ?>...</p><span class="read_more">
  13.                 <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btns"><?php _e('&#2310;&#2327;&#2375; &#2346;&#2338;&#2375;...', 'BharatNews'); ?></a></span>
  14.             </div>                         
  15.         </div>
  16.        
  17.         <div id="section_right"> </div>
  18.        
  19.         <div class="clear"></div>
  20.         </div>
  21.  
  22.      <div class="cat_zone"><!-- /.post -->
  23.            
  24.     <?php else : ?>
  25.       <div class="box">
  26.             <div class="bindr">
  27.                 <div class="post_image"><?php drthumb('width=200&height=140'); ?></div>
  28.                 <div class="post_matter">
  29.                     <div class="topr">
  30.                         <h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>    
  31.                         <p class="postmeta">
  32.                             <span class="post_meta_time"><?php the_time('M j, Y') ?></span>                      
  33.                             <span> | </span><span class="post_meta_comment"><?php comments_popup_link(__('0 &#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2367;&#2351;&#2366;&#2305;', 'Behance'), __('1 &#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2368;
  34.             ', 'Behance'), __('% &#2335;&#2367;&#2346;&#2381;&#2346;&#2339;&#2367;&#2351;&#2366;&#2305;', 'Behance')); ?></span>
  35.                             <span class="Author_guest sandarbh">
  36.                                 <?php $customField = get_post_custom_values("sandarbh"); ?>
  37.                                 <?php if (isset($customField[0])) : ?>
  38.                                     <img  title="Resource"src="<?php bloginfo('template_directory'); ?>/images/sandarbh_link.png" alt="" />
  39.                                     <?php echo "<span class='gauthers'> Source: </span>".$customField[0]; ?>
  40.                                 <?php endif; ?>            
  41.                             </span>
  42.  </p>
  43.                     </div>
  44.                     <div class="index_entry"> <?php echo limit_words(get_the_excerpt(), '45'); ?>
  45.                 <span class="read_more">
  46.                     <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btns"><?php _e('&#2310;&#2327;&#2375; &#2346;&#2338;&#2375;...', 'BharatNews'); ?></a>
  47.                 </span>
  48.             </div>
  49.                 </div>
  50.             </div>
  51.            
  52.         </div>
  53.  
  54.         <?php if ( $count == 5 || $count == 9 ) : ?>
  55.             <?php dt_show_ads('position=Archives&before=<div class="adzone_b clear">&after=</div>&title=&#2381;&#2334');?>
  56.         <?php endif; ?>
  57.     <?php endif; ?>
  58.     <?php $count++; ?>
  59.     <?php endwhile; ?>
  60.     </div><!-- /.post -->
  61. <?php else : ?>
  62.     <div class="post">
  63.     <h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','linepress');?></h2>
  64.     </div>
  65. <?php endif; ?>
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement