Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $count = 1;
- if (have_posts()) : while (have_posts()) : the_post();
- if($count == 1) : ?>
- <div id="top_section"> <div id="post_latest">
- <div class="top_head op_cl"><?php _e('ताजा समाचार', 'BharatNews'); ?></div>
- <div class="img_lft"><?php dt_thumb('width=370&height=200'); ?></div>
- <div class="img_right">
- <h3 class="archiveTitle">
- <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>
- </h3>
- <p class="exc_let"><?php echo limit_words(get_the_excerpt(), '44'); ?>...</p><span class="read_more">
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btns"><?php _e('आगे पढे...', 'BharatNews'); ?></a></span>
- </div>
- </div>
- <div id="section_right"><div class="ltst_cat">
- <!-- Most Views post Start-->
- <?php query_posts('meta_key=post_views_count&orderby=cat&posts_per_page=6&order=DESC');?>
- <?php if (have_posts()) : ?>
- <?php $count = 0; ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php $count++; ?>
- <?php if ($count == 1) : ?> <!-- The 1st post, displayed as featured from each category with the black background by default -->
- <div class="child_ltst">
- <a class="title_ltst" href="<?php the_permalink(); ?>" title=""><?php the_title(); ?></a>
- <p class="exc_let"><?php echo limit_words(get_the_excerpt(), '40'); ?>...</p></div><!-- END -->
- <ul> <!-- List the rest of the articles found in the category -->
- <?php else : ?>
- <li>
- <a href="<?php the_permalink(); ?>" title=""><?php the_title(); ?></a><?php echo getPostViews(get_the_ID()); ?>
- </li>
- <?php endif; ?>
- <?php endwhile; ?> <!-- END -->
- </ul><a class="ltst_more fr" href="#">More Popular News</a>
- <?php else : ?> <!-- If there is nothing -->
- <h1>Most Viewed News</h1>
- <?php endif; ?><!-- Most Views post End-->
- </div></div>
- <div class="clear"></div>
- </div>
- <div class="cat_zone"><!-- /.post -->
- <?php else : ?>
- <div class="box">
- <div class="bindr">
- <div class="post_image"><?php dt_thumb('width=200&height=140'); ?></div>
- <div class="post_matter">
- <div class="topr">
- <h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <p class="postmeta">
- <span class="post_meta_time"><?php the_time('M j, Y') ?></span>
- <span> | </span><span class="post_meta_comment"><?php comments_popup_link(__('0 टिप्पणियाँ', 'Behance'), __('1 टिप्पणी
- ', 'Behance'), __('% टिप्पणियाँ', 'Behance')); ?></span>
- <span class="Author_guest sandarbh">
- <?php $customField = get_post_custom_values("sandarbh"); ?>
- <?php if (isset($customField[0])) : ?>
- <img title="Resource"src="<?php bloginfo('template_directory'); ?>/images/sandarbh_link.png" alt="" />
- <?php echo "<span class='gauthers'> Source: </span>".$customField[0]; ?>
- <?php endif; ?>
- </span>
- </p>
- </div>
- <div class="index_entry"> <?php echo limit_words(get_the_excerpt(), '45'); ?>
- <span class="read_more">
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btns"><?php _e('आगे पढे...', 'BharatNews'); ?></a>
- </span>
- </div>
- </div>
- </div>
- </div>
- <?php if ( $count == 5 || $count == 9 ) : ?>
- <?php dt_show_ads('position=Archives&before=<div class="adzone_b clear">&after=</div>&title=्ञ');?>
- <?php endif; ?>
- <?php endif; ?>
- <?php $count++; ?>
- <?php endwhile; ?>
- </div><!-- /.post -->
- <?php else : ?>
- <div class="post">
- <h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','linepress');?></h2>
- </div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement