Advertisement
Guest User

altloop

a guest
Aug 26th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. <?php $content = wpb_content_format(); // Set content format ?>
  2.  
  3. <?php if ( have_posts() ) : $post = $posts[0]; $c=0; ?>
  4. <?php while ( have_posts() ): the_post(); ?>
  5.  
  6. <?php
  7. if ( $wp_query->post_count > 1 ) {
  8. $c++;
  9. if( !$paged && $c == 1) echo '<div class="bigspot pad fix"><div class="grid one-half">';
  10. if( !$paged && $c == 2) echo '<div class="grid one-half last">';
  11. if( !$paged && $c == 3) printf('<h4 class="miniheading pad">%s</h4>',wpb_option('blog-subheading',__('More', 'newsroom')));
  12. }
  13. ?>
  14.  
  15. <article id="entry-<?php the_ID(); ?>" <?php post_class('entry fix'); ?>>
  16. <div class="pad fix <?php if((wpb_option('blog-format') == '1')) echo 'post-format'; ?>">
  17.  
  18. <?php if((wpb_option('blog-format') == '2') && has_post_thumbnail()): ?>
  19. <div class="entry-main fix">
  20. <?php if ( !wpb_option('post-hide-categories') ): ?>
  21. <p class="entry-category"><?php the_category(' &middot; '); ?></p>
  22. <?php endif; ?>
  23.  
  24. <?php if ( !wpb_option('post-hide-comments') ): ?>
  25. <p class="entry-comments">
  26. <a href="<?php comments_link(); ?>">
  27. <span><?php comments_number( '0', '1', '%' ); ?><i class="pike"></i></span>
  28. </a>
  29. </p>
  30. <div class="entry-thumbnail">
  31. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  32. <?php if ( !$paged && $c == 1 || $c == 2 ): ?>
  33. <?php the_post_thumbnail('size-featured'); ?>
  34. <?php else :?>
  35. <?php the_post_thumbnail('size-thumbnail'); ?>
  36. <?php endif; ?>
  37.  
  38. <?php if ( has_post_format('video') || has_post_format('audio') ) echo'<span class="icon-thumb"></span>'; ?>
  39. <span class="glass"></span>
  40. </a>
  41. </div><!--/entry-thumbnail-->
  42.  
  43. <div class="entry-part">
  44. <?php endif; ?>
  45.  
  46. <header class="fix">
  47.  
  48. <?php endif; ?>
  49.  
  50. <div class="clear"></div>
  51. <h2 class="entry-title">
  52. <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  53. </h2>
  54.  
  55.  
  56. <?php if ( !wpb_option('post-hide-date') ): ?>
  57. <ul class="entry-meta fix">
  58. <li class="entry-date">
  59. <?php the_time('F j, Y'); ?>
  60.  
  61. <?php if ( !wpb_option('post-hide-detailed-date') ): ?>
  62. <?php _e('at','newsroom'); ?> <?php the_time('g:i a'); ?>
  63. <?php endif; ?>
  64. </li>
  65. </ul>
  66. <?php if (function_exists('the_subtitle')){ the_subtitle(); }?>
  67. <?php endif; ?>
  68. </header>
  69.  
  70. <?php if ( (wpb_option('blog-format') == '1') && get_post_format() ) { get_template_part('_post-formats'); } ?>
  71.  
  72.  
  73. <?php if ( (wpb_option('blog-format') == '2') && has_post_thumbnail() ): ?>
  74. </div><!--/entry-part-->
  75. </div><!--/entry-main-->
  76. <?php endif; ?>
  77.  
  78. </div><!--/pad-->
  79. </article>
  80.  
  81. <?php
  82. if( !$paged && $c == 1 ) echo '</div>';
  83. if( !$paged && $c == 2 ) echo '</div></div>';
  84. ?>
  85.  
  86. <?php endwhile;?>
  87. <?php endif; ?>
  88.  
  89. <?php get_template_part('_nav-posts'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement