PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/chaostheory/archive.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 60 lines | 48 code | 12 blank | 0 comment | 3 complexity | 802558a0238b84cfce2562371139a061 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header() ?>
  2. <div id="container">
  3. <div id="content" class="hfeed">
  4. <?php the_post() ?>
  5. <?php if ( is_day() ) : ?>
  6. <h2 class="page-title"><?php printf(__('Daily Archives: %s', 'chaostheory'), get_the_time('F jS, Y')) ?></h2>
  7. <?php elseif ( is_month() ) : ?>
  8. <h2 class="page-title"><?php printf(__('Monthly Archives: %s', 'chaostheory'), get_the_time('F Y')) ?></h2>
  9. <?php elseif ( is_year() ) : ?>
  10. <h2 class="page-title"><?php printf(__('Yearly Archives: %s', 'chaostheory'), get_the_time('Y')) ?></h2>
  11. <?php elseif ( is_author() ) : ?>
  12. <h2 class="page-title"><?php $curauth = sandbox_get_author(); printf(__('Author Archives: %s', 'chaostheory'), $curauth->display_name) ?></h2>
  13. <?php elseif ( is_tag() ) : ?>
  14. <h2 class="page-title"><?php printf(__('Tag Archives: %s', 'chaostheory'), single_tag_title('', false)) ?></h2>
  15. <?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
  16. <h2 class="page-title"><?php _e('Blog Archives', 'chaostheory') ?></h2>
  17. <?php endif; ?>
  18. <?php rewind_posts() ?>
  19. <div id="nav-above" class="navigation">
  20. <div class="nav-previous"><?php next_posts_link(__('&laquo; Older posts', 'chaostheory')) ?></div>
  21. <div class="nav-next"><?php previous_posts_link(__('Newer posts &raquo;', 'chaostheory')) ?></div>
  22. </div>
  23. <?php while ( have_posts() ) : the_post(); ?>
  24. <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
  25. <div class="entry-meta">
  26. <h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s', 'chaostheory' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title() ?></a></h2>
  27. <ul>
  28. <li class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s &#8211; %2$s', 'chaostheory'), the_date('', '', '', false), get_the_time()) ?></abbr></li>
  29. <!-- <li class="entry-author author vcard"><?php printf(__('By %s', 'chaostheory'), '<a class="url fn" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="View all posts by ' . $authordata->display_name . '">'.get_the_author().'</a>') ?></li> -->
  30. <li class="entry-category"><?php printf(__('Posted in %s', 'chaostheory'), get_the_category_list(', ')) ?></li>
  31. <?php the_tags('<li class="entry-tags">'.__('Tagged').' ', ", ", "</li>\n") ?>
  32. <?php edit_post_link(__('Edit', 'chaostheory'), "\t\t\t\t\t<li class='entry-editlink'>", "</li>"); ?>
  33. <li class="entry-commentlink"><?php comments_popup_link(__('Leave a Comment', 'chaostheory'), __('Comments (1)', 'chaostheory'), __('Comments (%)', 'chaostheory')) ?></li>
  34. </ul>
  35. </div>
  36. <div class="entry-content">
  37. <?php the_content('<span class="more-link">'.__('Read More &raquo;', 'chaostheory').'</span>') ?>
  38. </div>
  39. </div><!-- .post -->
  40. <?php endwhile ?>
  41. <div id="nav-below" class="navigation">
  42. <div class="nav-previous"><?php next_posts_link(__('&laquo; Older posts', 'chaostheory')) ?></div>
  43. <div class="nav-next"><?php previous_posts_link(__('Newer posts &raquo;', 'chaostheory')) ?></div>
  44. </div>
  45. </div><!-- #content .hfeed -->
  46. </div><!-- #container -->
  47. <?php get_sidebar() ?>
  48. <?php get_footer() ?>