<?php get_header();?>
<div class="main-container">
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value[\'id\'] ) === FALSE) { $$value[\'id\'] = $value[\'std\']; } else { $$value[\'id\'] = get_settings( $value[\'id\'] ); }
}
?>
<?php if ($apa_use_slide_show == \'\') {
include (TEMPLATEPATH . \'/gallery.php\');
}?>
<?php if (have_posts()) : while (have_posts()) : the_post();
if ($apa_use_slide_show == \'\') {
if (in_array($post->ID, $saved_ids)) continue;
update_post_caches($posts);
}?>
<div class="post-title">
<a href="<?php the_permalink();?>" title="<?php the_title();?>">
<?php the_title();?>
</a>
</div><!--post-title-->
<div class="thumbnail">
<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink();?>" title="<?php the_title();?>">
<?php the_post_thumbnail(array(), array(\'class\' => \'thumbs-in-archive\')); ?>
</a>
<?php } elseif (get_post_meta($post->ID, \'image\', true) ) {?>
<a href="<?php the_permalink();?>" title="<?php the_title();?>">
<img src="<?php bloginfo(\'template_directory\'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, \'image\', $single = true); ?>&h=65&w=195&zc=1&q=100" alt="<?php the_title(); ?>" class="thumbs-in-archive"/>
</a>
<?php } ?>
</div>
<?php endwhile; endif; ?>