<?php global $theme; get_header(); ?>
<div id="main">
<?php $theme->hook('main_before'); ?>
<?php get_sidebars(); ?>
<div id="content">
<div id="days_container">
<div id="day_container">
<?php query_posts('showposts=1 &cat=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<div id="day_featured_thumbnail"><?php the_post_thumbnail(array (700,900)); ?>
<?php endwhile; ?>
</div>
<div id="day_posts">
<?php query_posts('showposts=8 &category_name=day'); ?>
<?php while (have_posts()) : the_post(); ?>
<a class="day_posts_titles" href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<?php endwhile; ?>
</div>
</div>
</div>
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('cat=-10,-24&posts_per_page=4'.'&paged='.$paged);
update_post_caches($posts);
$temp_content='';
while ($wp_query->have_posts()) : $wp_query->the_post();
$do_not_duplicate[] = $post->ID;
wp_reset_postdata();
get_template_part('post', 'homepage');
endwhile;
?>
<?php $theme->hook('content_after'); ?>
<div id="tutorials_container">
<div id="featured_tutorial">
<?php query_posts('showposts=1 &category_name=tutorials'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<div id="tutorials_header">
Oct
</br>
10
</div>
<div class="tutorials_title"><?php the_title(); ?></div></a>
<div id="tutorials_img"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php endwhile; ?><?php if ( has_post_thumbnail() ) {
the_post_thumbnail(array (350, 240));} ?></a>
</div>
</div>
<div id="tutorials_head">
<div id="tutorials_headers">
<a href="tutorials">Tutorials & Freebies</a>
</div>
</div>
<div id="tutorials">
<div id="alltutorials">
<?php query_posts('showposts=5 &category_name=tutorials'); ?>
<?php while (have_posts()) : the_post();?>
<a href="<?php the_permalink(); ?>">
<ul class="tutorial_titles">
<div class="tutorial_posts">
<div><?php the_title(); ?></div>
<div class="tutorial_dates">
<?php the_time('l, M, d, Y') ?></div>
</ul>
</a>
<?php endwhile; ?>
</div>
</div>
</div>
<div class="meta_container"></div>
<?php query_posts('cat=-10, -24&showposts=4&offset=4');
if (have_posts()) : while (have_posts()) : the_post();
if (in_array($post->ID, $do_not_duplicate)) continue;
update_post_caches($posts);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
get_template_part('post', 'homepage');
endwhile; endif; ?>
<div>
<div class="navigation">
<div class="alignleft"><?php previous_posts_link('« Previous') ?></div>
<div class="alignright"><?php next_posts_link('More »') ?></div>
</div>
<?php get_sidebars(); ?>
<?php $wp_query = null; $wp_query = $temp;?>
<?php $theme->hook('content_after'); ?>
</div>
</div><!-- #content -->
<?php $theme->hook('main_after'); ?>
</div>
<!-- #main -->
</div><!-- #container -->
<?php get_footer(); ?>