PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/webroot/blog/wp-content/themes/la-school-blue/archive.php

https://github.com/Wargo/reddevil
PHP | 56 lines | 41 code | 15 blank | 0 comment | 5 complexity | 71d40c95992a5e1305301666282adcb2 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1, GPL-3.0
  1. <?php get_header(); ?>
  2. <div class="content">
  3. <?php if (have_posts()) : ?>
  4. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  5. <?php /* If this is a category archive */ if (is_category()) { ?>
  6. <h3 class="pagetitle"><?php printf(__('Archive for the &#8216;%s&#8217; Category', 'laschool'), single_cat_title('', false)); ?></h3>
  7. <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  8. <h3 class="pagetitle"><?php printf(__('Posts Tagged &#8216;%s&#8217;', 'laschool'), single_tag_title('', false) ); ?></h3>
  9. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  10. <h3 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'laschool'), get_the_time(__('F jS, Y', 'laschool'))); ?></h3>
  11. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  12. <h3 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'laschool'), get_the_time(__('F, Y', 'laschool'))); ?></h3>
  13. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  14. <h3 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'laschool'), get_the_time(__('Y', 'laschool'))); ?></h3>
  15. <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  16. <h3 class="pagetitle"><?php _e('Author Archive', 'laschool'); ?></h3>
  17. <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  18. <h3 class="pagetitle"><?php _e('Blog Archives', 'laschool'); ?></h3>
  19. <?php } ?>
  20. <p>&nbsp;</p>
  21. <?php while (have_posts()) : the_post(); ?>
  22. <div <?php post_class(); ?>>
  23. <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'laschool'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a> <small>&ndash; <?php the_time(__('j. F, Y', 'laschool')) ?> <!-- by <?php the_author() ?> --></small></h2>
  24. <div class="entry">
  25. <?php the_content() ?>
  26. </div>
  27. <div class="comments-nr"><?php comments_popup_link(__('0<span> Comments</span>', 'laschool'), __('1<span> Comment</span>', 'laschool'), __('%<span> Comments</span>', 'laschool')); ?></div>
  28. <div class="postdata"><?php printf(__('Posted in %s', 'laschool'), get_the_category_list(', ')); ?></div>
  29. </div>
  30. <?php endwhile; ?>
  31. <div class="navigation">
  32. <div class="alignleft"><?php posts_nav_link('','',__('&laquo; Older Entries', 'laschool')) ?></div>
  33. <div class="alignright"><?php posts_nav_link('',__('Newer Entries &raquo;', 'laschool'),'') ?></div>
  34. </div>
  35. <?php else : ?>
  36. <h2 class="center"><?php _e('Not Found', 'laschool'); ?></h2>
  37. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  38. <?php endif; ?>
  39. </div>
  40. <?php get_sidebar(); ?>
  41. <?php get_footer(); ?>