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

/patricialutz-custom/index.php

https://github.com/misfist/patricia-lutz.com
PHP | 63 lines | 50 code | 9 blank | 4 comment | 6 complexity | 555482cd14f47b97e30e4ce4cdc16db2 MD5 | raw file
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Chunk
  5. */
  6. get_header(); ?>
  7. <?php if ( is_archive() ) : ?>
  8. <div class="page-title">
  9. <h2>
  10. <?php if ( is_day() ) : ?>
  11. <?php printf( __( 'Posted on %s &hellip;', 'chunk' ), '<span>' . get_the_date() . '</span>' ); ?>
  12. <?php elseif ( is_month() ) : ?>
  13. <?php printf( __( 'Posted in %s &hellip;', 'chunk' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
  14. <?php elseif ( is_year() ) : ?>
  15. <?php printf( __( 'Posted in %s &hellip;', 'chunk' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
  16. <?php elseif( is_author() ) : ?>
  17. <?php printf( __( 'Posted by %s &hellip;', 'chunk' ), '<span>' . get_the_author() . '</span>' ); ?>
  18. <?php elseif ( is_category() ) : ?>
  19. <?php printf( __( '%s', 'chunk' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>
  20. <?php elseif ( is_tag() ) : ?>
  21. <?php printf( __( '%s', 'chunk' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?>
  22. <?php endif; ?>
  23. </h2>
  24. </div>
  25. <?php endif; ?>
  26. <?php if ( is_search() ) : ?>
  27. <div class="page-title">
  28. <h2>
  29. <?php printf( __( 'Matches for: &ldquo;%s&rdquo; &hellip;', 'chunk' ), '<span>' . get_search_query() . '</span>' ); ?>
  30. </h2>
  31. </div>
  32. <?php endif; ?>
  33. <div id="contents">
  34. <?php if ( have_posts() ) : ?>
  35. <?php while ( have_posts() ) : the_post(); ?>
  36. <?php get_template_part( 'content', get_post_format() ); ?>
  37. <?php endwhile; ?>
  38. <?php else : ?>
  39. <div class="hentry error404">
  40. <div class="postbody text">
  41. <h1><?php _e( 'Nothing Found', 'chunk' ); ?></h1>
  42. <div class="content">
  43. <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'chunk' ); ?></p>
  44. <?php get_search_form(); ?>
  45. </div><!-- .content -->
  46. </div><!-- .postbody -->
  47. </div>
  48. <?php endif; ?>
  49. </div><!-- #contents -->
  50. <div class="navigation">
  51. <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'chunk' ) ); ?></div>
  52. <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'chunk' ) ); ?></div>
  53. </div>
  54. <?php get_footer(); ?>