PageRenderTime 51ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/wordpress/wp-content/themes/rachelbaker-bootstrapwp-Twitter-Bootstrap-for-WordPress-9bc2021/archive.php

https://github.com/bill742/verbalbrew
PHP | 73 lines | 54 code | 4 blank | 15 comment | 7 complexity | a0b41fbf921027ee8a1afc20fd6ed53e MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-3.0, AGPL-1.0, LGPL-2.1, GPL-2.0
  1. <?php
  2. /**
  3. * The template for displaying Archive pages.
  4. *
  5. * Used to display archive-type pages if nothing more specific matches a query.
  6. * For example, puts together date-based pages if no date.php file exists.
  7. *
  8. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  9. *
  10. * @package WordPress
  11. * @subpackage WP-Bootstrap
  12. * @since WP-Bootstrap 0.6
  13. */
  14. get_header();
  15. if (have_posts() ) ;?>
  16. <div id="bc" class="row">
  17. <div class="container">
  18. <?php if (function_exists('bootstrapwp_breadcrumbs')) bootstrapwp_breadcrumbs(); ?>
  19. </div><!--/.container -->
  20. </div><!--/.row -->
  21. <div class="container">
  22. <header class="jumbotron subhead" id="overview">
  23. <h1><?php
  24. if ( is_day() ) {
  25. printf( __( 'Daily Archives: %s', 'bootstrapwp' ), '<span>' . get_the_date() . '</span>' );
  26. } elseif ( is_month() ) {
  27. printf( __( 'Monthly Archives: %s', 'bootstrapwp' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'bootstrapwp' ) ) . '</span>' );
  28. } elseif ( is_year() ) {
  29. printf( __( 'Yearly Archives: %s', 'bootstrapwp' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'bootstrapwp' ) ) . '</span>' );
  30. } elseif ( is_tag() ) {
  31. printf( __( 'Tag Archives: %s', 'bootstrapwp' ), '<span>' . single_tag_title( '', false ) . '</span>' );
  32. // Show an optional tag description
  33. $tag_description = tag_description();
  34. if ( $tag_description )
  35. echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
  36. } elseif ( is_category() ) {
  37. printf( __( '%s', 'bootstrapwp' ), '<span>' . single_cat_title( '', false ) . '</span>' );
  38. // Show an optional category description
  39. // $category_description = category_description();
  40. if ( $category_description )
  41. echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
  42. } else {
  43. _e( 'Blog Archives', 'bootstrapwp' );
  44. }
  45. ?></h1>
  46. </h1>
  47. </header>
  48. <div class="row content">
  49. <div class="span8">
  50. <?php while ( have_posts() ) : the_post(); ?>
  51. <div <?php post_class(); ?>>
  52. <a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><h3><?php the_title();?></h3></a>
  53. <p class="meta"><?php echo bootstrapwp_posted_on();?></p>
  54. <div class="row">
  55. <div class="span2">
  56. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
  57. <?php echo bootstrapwp_autoset_featured_img(); ?></a>
  58. </div><!-- /.span2 -->
  59. <div class="span6">
  60. <?php the_excerpt();?>
  61. </div><!-- /.span6 -->
  62. </div><!-- /.row -->
  63. <hr />
  64. </div><!-- /.post_class -->
  65. <?php endwhile; ?>
  66. <?php bootstrapwp_content_nav('nav-below');?>
  67. </div><!-- /.span8 -->
  68. <?php get_sidebar('blog'); ?>
  69. <?php get_footer(); ?>