Advertisement
Digitalraindrops

page posts

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