Advertisement
Guest User

archive

a guest
Aug 4th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php
  3. $template = 'archive';
  4. ?>
  5. <section id="main">
  6. <div class="row">
  7. <div class="twelve columns cat-title">
  8. <?php
  9. if( have_posts () ){
  10. ?>
  11. <h2 >
  12. <?php
  13. if ( is_day() ) {
  14. echo __( 'Daily archives' , 'cosmotheme' ) . ': <span>' . get_the_date() .'</span>';
  15. }else if ( is_month() ) {
  16. echo __( 'Monthly archives' , 'cosmotheme' ) . ': <span>' . get_the_date( '' ).'</span>';
  17. }else if ( is_year() ) {
  18. echo __( 'Yearly archives' , 'cosmotheme' ) . ': <span>' . get_the_date( '' ).'</span>' ;
  19. }else if (is_tax( 'post_format' )){
  20. echo __( 'Post format archives' , 'cosmotheme' ) . ': <span>' . get_post_format().'</span>' ;
  21. }else if(is_post_type_archive()){
  22. echo sprintf(__( '%s archives' , 'cosmotheme' ), post_type_archive_title()) ;
  23. }else {
  24. echo __( 'Blog archives' , 'cosmotheme' ) ;
  25. }
  26. ?>
  27.  
  28. </h2><?php
  29. }else{
  30. ?><h2 ><?php _e( 'Sorry, no posts found' , 'cosmotheme' ); ?></h2><?php
  31.  
  32. }
  33. ?>
  34. </div>
  35. </div>
  36. <?php
  37. if (is_tax( 'post_format' )){
  38. $layout = new LBSidebarResizer( 'archive_format' ); /*for post format archive*/
  39. }else{
  40. $layout = new LBSidebarResizer( 'archive' );
  41. }
  42.  
  43. $layout -> render_frontend();
  44.  
  45. ?>
  46. </section>
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement