<?php get_header(); ?>
<?php if (is_home()) add_filter('img_caption_shortcode', create_function('$a, $b, $c','return $c;'), 10, 3); ?>
<div id="leftwrapper">
<?php include('left-sidebar.php'); ?>
<div id="column2">
<?php if (get_theme_mod('featured') == 'Yes') { ?>
<div id="slider">
<div id="featured" >
<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<div id="post-<?php the_ID(); ?>" class="ui-tabs-panel ui-tabs-hide"><a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php get_thumbnail($post->ID, 'full'); ?>" height="336" width="373" alt="<?php the_title(); ?>" /></a>
<div class="info" >
<h2><a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_title(); ?>
</a></h2>
</div>
</div>
<?php endwhile; ?>
<ul class="ui-tabs-nav">
<?php $recent = new WP_Query("cat=".get_theme_mod('featuredcat')."&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<li class="ui-tabs-nav-item ui-tabs-selected" id="nav-post-<?php the_ID(); ?>"><a href="#post-<?php the_ID(); ?>"><img src="<?php get_thumbnail($post->ID, 'full'); ?>" height="44" width="80" alt="<?php the_title(); ?>" /></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: featured-->
</div> <!--end: slider-->
<?php } ?>
<?php if (get_theme_mod('box1') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat1')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat1')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more"><div class="more">Devamı »</div></div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box2') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat2')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat2')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat2')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
<?php if (get_theme_mod('box3') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat3')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat3')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat3')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box4') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat4')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat4')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat4')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
<?php if (get_theme_mod('box5') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat5')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat5')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat5')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box6') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat6')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat6')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat6')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
<?php if (get_theme_mod('box7') == 'Enable') { ?>
<div class="postbox left">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat7')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat7')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat7')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<?php if (get_theme_mod('box8') == 'Enable') { ?>
<div class="postbox right">
<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat8')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat8')); ?></a></h1>
<div class="boxcontent">
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="thumb">
<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
</div> <!--end: thumb-->
<h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endwhile; ?>
<div class="more">Devamı »</div>
<ul>
<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat8')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div> <!--end: boxcontent-->
</div> <!--end: postbox-->
<?php } ?>
<div class="clear"></div>
</div> <!--end: column2-->