- <?php global $theme; get_header(); ?>
- <div id="main">
- <?php $theme->hook('main_before'); ?>
- <div id="content">
- <?php query_posts('cat=6&showposts=1'); ?>
- <?php if (have_posts()) : ?>
- <?php $count = 0; ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php $count++; ?>
- <?php if ($count <= 1) : ?>
- <h1 class="title">
- Latest Self Improvement Article
- </h1>
- <h2 class="page-title"></h2>
- <h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="entry clearfix">
- <?php
- if(has_post_thumbnail()) {
- the_post_thumbnail(
- array($theme->get_option('featured_image_width_single'), $theme->get_option('featured_image_height_single')),
- array("class" => $theme->get_option('featured_image_position_single') . " featured_image2")
- );
- }
- ?>
- <?php
- the_content('');
- wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
- ?>
- <a href="<?php the_permalink(); ?>" title="Read More <?php the_title(); ?>" class="more-link">Read More ยป</a>
- </div>
- <?php else : ?>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php endif; ?>
- <h2 class="page-title"></h2>
- <?php $theme->hook('content_before'); ?>
- <?php $latest = get_posts('cat=6&posts_per_page=1');
- query_posts( array( 'cat' => 6, 'posts_per_page' => 2, 'paged' => get_query_var('page'), 'post__not_in' => array( $latest[0]->ID ) ) ); ?>
- <?php
- $is_post_wrap = 0;
- if (have_posts()) : while (have_posts()) : the_post();
- /**
- * The default post formatting from the post.php template file will be used.
- * If you want to customize the post formatting for your homepage:
- *
- * - Create a new file: post-homepage.php
- * - Copy/Paste the content of post.php to post-homepage.php
- * - Edit and customize the post-homepage.php file for your needs.
- *
- * Learn more about the get_template_part() function: http://codex.wordpress.org/Function_Reference/get_template_part
- */
- $is_post_wrap++;
- if($is_post_wrap == '1') {
- ?><div class="post-wrap clearfix"><?php
- }
- get_template_part('post', 'homepage');
- if($is_post_wrap == '2') {
- $is_post_wrap = 0;
- ?></div>
- <a
- href="http://selfexceed.com/category/blog/"><img
- style="border: 0px solid ; width: 327px; height: 160px;" alt="self improvement blog"
- src="http://selfexceed.com/wp-content/uploads/2012/12/Blog.png"></a><a
- href="http://selfexceed.com/category/videos/"><img
- style="border: 0px solid ; width: 327px; height: 160px;" alt="self improvement videos"
- src="http://selfexceed.com/wp-content/uploads/2012/12/Video.png"></a>
- <?php
- }
- endwhile;
- else :
- get_template_part('post', 'noresults');
- endif;
- if($is_post_wrap == '1') {
- ?></div><?php
- }
- get_template_part('navigation');
- ?>
- <?php $theme->hook('content_after'); ?>
- </div><!-- #content -->
- <?php get_sidebars(); ?>
- <?php $theme->hook('main_after'); ?>
- </div><!-- #main -->
- <?php get_footer(); ?>