' . "\n"; if (have_posts()) { $post = $posts[0]; // Hack. Set $post so that the_date() works. /* If this is a category archive */ if ( is_category() ) { echo '

'; printf(__('Archive for the ‘%s’ Category', 'german_newspaper'), single_cat_title('', false)); echo '

' . "\n"; } /* If this is a tag archive */ elseif( is_tag() ) { echo '

'; printf(__('Posts Tagged ‘%s’', 'german_newspaper'), single_tag_title('', false) ); echo '

' . "\n"; } /* If this is a daily archive */ elseif ( is_day() ) { echo '

'; printf(_c('Archive for %s|Daily archive page', 'german_newspaper'), get_the_time(__('F jS, Y', 'german_newspaper'))); echo '

' . "\n"; } /* If this is a monthly archive */ elseif ( is_month() ) { echo '

'; printf(_c('Archive for %s|Monthly archive page', 'german_newspaper'), get_the_time(__('F, Y', 'german_newspaper'))); echo '

' . "\n"; } /* If this is a yearly archive */ elseif ( is_year() ) { echo '

'; printf(_c('Archive for %s|Yearly archive page', 'german_newspaper'), get_the_time(__('Y', 'german_newspaper'))); echo '

' . "\n"; } /* If this is an author archive */ elseif ( is_author() ) { echo '

' . __('Author Archive', 'german_newspaper') . '

' . "\n"; } /* If this is a paged archive */ elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) { echo '

' - __('Blog Archives', 'german_newspaper') . '

' . "\n"; } echo ' ' . "\n\n"; while (have_posts()) { the_post(); echo '
' . "\n"; echo '

' . the_title( '', '', false ) . '

' . "\n"; echo ' '; the_time(__('l, F jS, Y', 'german_newspaper')); echo '' . "\n\n"; echo '
' . "\n"; the_content(); echo '
' . "\n\n"; echo '

'; the_tags(__('Tags: ', 'german_newspaper'), ', ', '
'); printf(__('Posted in %s', 'german_newspaper'), get_the_category_list(', ')); echo ' | '; edit_post_link(__('Edit', 'german_newspaper'), '', ' | '); echo ' '; comments_popup_link(__('No Comments »', 'german_newspaper'), __('1 Comment »', 'german_newspaper'), __('% Comments »', 'german_newspaper')); echo '

' . "\n"; echo '
' . "\n\n"; } echo '' . "\n\n"; } else { echo '

' . __('Not Found', 'german_newspaper') . '

' . "\n"; include (TEMPLATEPATH . '/searchform.php'); } echo "\n" . '' . "\n\n"; get_footer(); ?>