Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) == 0) : $wp_query->next_post(); else : the_post(); ?>
- <div id="left-column">
- <a href="<?php the_permalink() ?>"><h1><?php the_title_attribute(); ?></h1></a>
- <a class="image" href="<?php the_permalink() ?>" rel="bookmark" title="Lien permanent vers <?php the_title_attribute(); ?>">
- <?php padd_theme_post_thumbnail(); ?>
- </a>
- <div class="excerpt">
- <?php the_excerpt();?>
- <a href="<?php comments_link(); ?>">
- <div class="comments">
- <span class="nombreCommentaires">
- <?php
- comments_number('Pas de commentaire', '1 commentaire', '% commentaires');
- ?>
- </span>
- </div>
- </a>
- </div>
- </div>
- <?php endif; endwhile; else: ?>
- <div>Alternate content</div>
- <?php endif; ?>
- <?php $i = 0; rewind_posts(); ?>
- <?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) !== 0) : $wp_query->next_post(); else : the_post(); ?>
- <div id="right-column">
- <a href="<?php the_permalink() ?>"><h1><?php the_title_attribute(); ?></h1></a>
- <a class="image" href="<?php the_permalink() ?>" rel="bookmark" title="Lien permanent vers <?php the_title_attribute(); ?>">
- <?php padd_theme_post_thumbnail(); ?>
- </a>
- <div class="excerpt">
- <?php the_excerpt();?>
- <a href="<?php comments_link(); ?>">
- <div class="comments">
- <span class="nombreCommentaires">
- <?php
- comments_number('Pas de commentaire', '1 commentaire', '% commentaires');
- ?>
- </span>
- </div>
- </a>
- </div>
- </div>
- <?php endif; endwhile; else: ?>
- <div>Alternate content</div>
- <?php endif; ?>
- <?php remove_filter('excerpt_length', 'padd_theme_excerpt_index_length'); ?>
- <?php Padd_PageNavigation::render(); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement