Advertisement
Digitalraindrops

03-09-15 php

Aug 12th, 2011
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.31 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.                                 <?php if (isset($customField[0])) : ?>
  33.                                     <img  title="Resource"src="<?php bloginfo('template_directory'); ?>/images/sandarbh_link.png" alt="" />
  34.                                     <?php echo "<span class='gauthers'> Source: </span>".$customField[0];
  35.                                 <?php endif; ?>            
  36.                             </span>
  37.  
  38.                             <span class="Author_guest">        
  39.                
  40.                                 <?php $customField = get_post_custom_values("gauthor"); ?>
  41.                                 <?php if (isset($customField[0])) :?>
  42.                                     <img src="http://www.behance.in/wp-content/themes/behance/images/gauther.png" alt="" />
  43.                                     <?php echo "<span class='gauthers'> Author: </span>".$customField[0]; ?>
  44.                                 <?php endif; ?>
  45.                             </span>
  46.                         </p>
  47.                     </div>
  48.                 </div>
  49.             </div>
  50.             <div class="index_entry fl"> <?php echo limit_words(get_the_excerpt(), '35'); ?>
  51.                 <span class="read-more">
  52.                     <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btns"><?php _e('&#2310;&#2327;&#2375; &#2346;&#2338;&#2375;...', 'BharatNews'); ?></a>
  53.                 </span>
  54.             </div>
  55.         </div>
  56.         <div class="clear"> </div> 
  57.         <?php if ( $count == 3 $count == 9 || $count == 15 ) : ?>
  58.             <?php dt_show_ads('position=Archives&before=<div class="adzone_b">&after=</div>&title=&#2381;&#2334');?>
  59.             <div class="clear"> </div>
  60.         <?php endif; ?>
  61.     <?php endif; ?>
  62.     <?php $count++; ?>
  63.     <?php endwhile; ?>
  64. <?php else : ?>
  65.     <div class="post">
  66.     <h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','linepress');?></h2>
  67.     </div>
  68. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement