<?php get_header(); ?>
<?php get_sidebar(); ?>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="right" valign="top" background="<?php bloginfo('template_directory'); ?>/img/zagolovok_bkgr.jpg"><img src="<?php bloginfo('template_directory'); ?>/img/zagolovok_ves.jpg" width="270" height="62" /></td>
</tr>
<tr>
<td width="100%" height="209" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php if (have_posts()) : ?>
<tr>
<td colspan=2>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'kubrick'), single_tag_title('', false) ); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle"><?php _e('Author Archive', 'kubrick'); ?></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></h2>
<?php } ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')); ?></div>
</div>
</td>
</tr>
<?php $i=0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($i % 2 == 0){ echo '<tr>'; } ?>
<td align="left" valign="top" class="txt" width="50%">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a>
</td>
<?php if ($i % 2 != 0){ echo '</tr>'; } ?>
<?php $i+=1; ?>
<?php endwhile; ?>
<tr>
<td colspan=2>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« Older Entries'), 'kubrick'); ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')); ?></div>
</div>
</td>
</tr>
<?php else : ?>
<tr>
<td align="left" valign="top" class="txt">
<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</td>
</tr>
<?php endif; ?>
</table></td>
<td width="69" align="right" valign="top" background="<?php bloginfo('template_directory'); ?>/img/fon_right.jpg"><img src="<?php bloginfo('template_directory'); ?>/img/fon_right.jpg" width="69" height="10" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php get_footer(); ?>