<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>
<?php get_header(); ?>
<?php if ( $paged < 2) { ?>
<div id="featurespace">
<?php include(TEMPLATEPATH . '/wpzoom-featured.php'); ?> <!-- calling featured section-->
</div>
<?php } ?>
<div id="middle">
<?php if ( $paged < 2) { ?>
<?php include(TEMPLATEPATH . '/wpzoom-homecats.php'); ?> <!-- calling homepage featured categories-->
<?php } ?>
<?php if (is_home() && $wpzoom_home_art == 'Hide') { } else { ?>
<!-- displaying Recent Articles-->
<div id="posts">
<?php $z = count($wpzoom_exclude_cats_home);if ($z > 0) {
$x = 0; $que = ""; while ($x < $z) {
$que .= "-".$wpzoom_exclude_cats_home[$x]; $x++;
if ($x < $z) {$que .= ",";} } }
query_posts($query_string . "&cat=$que");if (have_posts()) :
?>
<h3 class="recent"><?php _e('Recent Articles', 'wpzoom');?></h3>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div class="homepost">
<?php if(has_post_thumbnail()) {the_post_thumbnail();} else {echo '<img style="width: 110px;height:90px ;" />';}?>
<div class="rightcontp">
<div class="bubble"><?php comments_popup_link('0', '1', '%', ' ', ' '); ?></div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </h3>
<?php the_excerpt(); ?>
<div class="post-meta"><?php if ($wpzoom_homepost_author == 'Show') { ?><?php _e('Published by', 'wpzoom');?> <strong><?php the_author_posts_link(); ?></strong><?php } ?> <?php if ($wpzoom_homepost_date == 'Show') { ?><?php _e('on', 'wpzoom');?> <strong><?php the_time("$dateformat $timeformat"); ?></strong><?php } ?></div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div> <!-- end posts -->
<div class="navigation">
<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<div class="floatright"><?php next_posts_link( __('« Older Entries', 'wpzoom') ); ?></div>
<div class="floatleft"><?php previous_posts_link( __('Newer Entries »', 'wpzoom') ); ?></div>
<?php } ?>
</div>
<?php } ?>
</div><!-- end middle -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>