Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ) : ?>
- <?php global $post; ?>
- <?php while( have_posts() ) : the_post(); ?>
- <?php if( $wp_query->current_post == 0 ) : //latest post// ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <?php the_post_thumbnail(); ?>
- <h1 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
- <div class="postmeta">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> </div>
- <div class="entry">
- <?php the_content('<span>Read on »</span>'); ?>
- <!-- AddThis Button BEGIN -->
- <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
- <a class="addthis_button_preferred_1"></a>
- <a class="addthis_button_preferred_2"></a>
- <a class="addthis_button_preferred_3"></a>
- <a class="addthis_button_preferred_4"></a>
- <a class="addthis_button_compact"></a>
- <a class="addthis_counter addthis_bubble_style"></a>
- </div>
- <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
- <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5124ed6b2f85e2eb"></script>
- <!-- AddThis Button END --> <?php comments_popup_link('No Comments', 'Comment (1)', 'Comments (%)'); ?>
- </div>
- </div>
- <?php else : //all other posts// ?>
- <div id="blog-excerpt">
- <?php the_post_thumbnail(); ?>
- <h1 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
- <div class="entry">
- <?php the_excerpt('<span>Read on »</span>'); ?>
- </div>
- <div class="postmeta">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <!-- AddThis Button BEGIN -->
- <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
- <a class="addthis_button_preferred_1"></a>
- <a class="addthis_button_preferred_2"></a>
- <a class="addthis_button_preferred_3"></a>
- <a class="addthis_button_preferred_4"></a>
- <a class="addthis_button_compact"></a>
- <a class="addthis_counter addthis_bubble_style"></a>
- </div>
- <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
- <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5124ed6b2f85e2eb"></script>
- <!-- AddThis Button END --><?php comments_popup_link('No Comments', 'Comment (1)', 'Comments (%)'); ?></div>
- </div>
- <?php endif; //ends the 'if( $wp_query->current_post == 0 )' statement// ?>
- <?php endwhile; ?>
- <div class="navigation">
- <div id="next-ent"><?php next_posts_link('« Previous Entries') ?></div>
- <div id="prev-ent"><?php previous_posts_link('Next Entries »') ?></div>
- </div>
- </article><!-- #post-0 -->
- <?php endif; // end have_posts() check ?>
- </div><!-- #content -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement