JustPaste.it

<div class="">    



                        <?php if ( $query->have_posts() ) {

                            while ( $query->have_posts() ) {

                            $query->the_post();$first++; ?>



                                <?php if ( 1 == $first  ) { ?>



                                    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                                        <a class="image_thumb_zoom" href='' title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'magazine' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="nofollow">

                                        <?php if ( has_post_thumbnail() ) {

                                            the_post_thumbnail('post-first');

                                        } else { ?>

                                            <img class="fl" src="<?php echo get_template_directory_uri(); ?>/images/thumb_371x177.png">

                                        <?php } ?>

                                        </a>

                                    

                                    <h4 class="post-title"><a href='' title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'magazine' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="nofollow"><?php the_title_limit('', '...', true, '35'); ?></a><span class="date"><?php the_time('j F Y') ?></span></h4>

                                    <p><?php echo get_excerpt($excerpt); ?></p>

                                    </article>

                                <?php } else { ?>

                                    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                                        <div class="entry clearfix">

                                        <a href='' title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'magazine' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="nofollow">

                                        <?php

                                            if ( has_post_thumbnail() ) {

                                                the_post_thumbnail('thumbs', array('class' => 'thumb'));

                                            } else { ?>

                                            <img src="<?php echo get_template_directory_uri(); ?>/images/thumb_91x55.png">

                                        <?php } ?>

                                        <h4 class="post-title"><?php the_title_limit('', '...', true, $tlimit); ?></h4></a>

                                        <p><?php echo get_excerpt($mini_excerpt); ?></p>

                                            <div class="meta">

                                                <span class="date"><?php the_time('j F Y') ?></span>

                                            </div>

                                        </div>

                                    </article>

                                <?php }



                            }

                        }

                    ?>

                    </div>