1. <?php
  2. get_header();
  3. ?>
  4.  
  5. <div class="content">
  6.  
  7. <?php if (have_posts()) : ?>
  8.  
  9. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  10.  
  11.  
  12.  
  13. <div class="navigation">
  14. <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')); ?></div>
  15. <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')); ?></div>
  16. </div>
  17.  
  18.  
  19. <?php while (have_posts()) : the_post(); ?>
  20. <div <?php post_class(); ?>>
  21. <h2> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
  22. <small><?php the_time(__('l, F jS, Y', 'kubrick')) ?></small>
  23.  
  24. <div class="entry">
  25. <?php the_content() ?>
  26. </div>
  27.  
  28. <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p>
  29.  
  30. </div>
  31. <div class="postdiv"><img src="/images/postdiv.png"></div>
  32. <?php endwhile; ?>
  33.  
  34. <div class="navigation">
  35. <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')); ?></div>
  36. <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')); ?></div>
  37. </div>
  38. <?php else :
  39.  
  40. if ( is_category() ) { // If this is a category archive
  41. printf("<h2 class='center'>".__("Sorry, but there aren't any posts in the %s category yet.", 'kubrick').'</h2>', single_cat_title('',false));
  42. } else if ( is_date() ) { // If this is a date archive
  43. echo('<h2>'.__("Sorry, but there aren't any posts with this date.", 'kubrick').'</h2>');
  44. } else if ( is_author() ) { // If this is a category archive
  45. $userdata = get_userdatabylogin(get_query_var('author_name'));
  46. printf("<h2 class='center'>".__("Sorry, but there aren't any posts by %s yet.", 'kubrick')."</h2>", $userdata->display_name);
  47. } else {
  48. echo("<h2 class='center'>".__('No posts found.', 'kubrick').'</h2>');
  49. }
  50. get_search_form();
  51. endif;
  52. ?>
  53. </div>
  54.  
  55. <?php get_sidebar(); ?>
  56.  
  57. <?php get_footer(); ?>