mobile home and friends
This commit is contained in:
21
loop.php
21
loop.php
@@ -1,15 +1,20 @@
|
||||
<?php if (have_posts()): while (have_posts()): the_post();
|
||||
static $qc = 0;
|
||||
$qc++;
|
||||
?>
|
||||
<article id="post-<?php the_ID();?>" <?php post_class();?>>
|
||||
<?php include( locate_template( 'loop-inner.php', false, false ) ); ?>
|
||||
</article>
|
||||
static $qc = 0;
|
||||
$qc++;
|
||||
if (is_home() and $qc < 3) {
|
||||
$firstclass = 'post_nr post_nr_' . $qc;
|
||||
} else {
|
||||
$firstclass = '';
|
||||
}
|
||||
?>
|
||||
<article id="post-<?php the_ID();?>" <?php post_class($firstclass);?>>
|
||||
<?php include locate_template('loop-inner.php', false, false);?>
|
||||
</article>
|
||||
|
||||
|
||||
<?php endwhile;?>
|
||||
<?php endwhile;?>
|
||||
|
||||
<?php else: ?>
|
||||
<?php else: ?>
|
||||
|
||||
<!-- article -->
|
||||
<article class="no-result">
|
||||
|
||||
Reference in New Issue
Block a user