Guest User

Untitled

a guest
May 23rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @package p2-breathe
  12. */
  13.  
  14. get_header(); ?>
  15.  
  16. <div id="primary" class="content-area">
  17.  
  18. <div class="site-content">
  19.  
  20. <?php do_action( 'breathe_post_editor' ); ?>
  21.  
  22. <div id="content" role="main">
  23. <?php if (in_category('1') && !is_user_logged_in() ) continue; ?>
  24. <header class="page-header">
  25. <h1 class="page-title">
  26. <?php if ( is_home() or is_front_page() ) : ?>
  27.  
  28. <?php _e( 'Recent Updates', 'p2-breathe' ); ?> <?php if ( breathe_get_page_number() > 1 ) printf( __( 'Page %s', 'p2-breathe' ), breathe_get_page_number() ); ?>
  29.  
  30. <?php else : ?>
  31.  
  32. <?php printf( _x( 'Updates from %s', 'Month name', 'p2-breathe' ), get_the_time( 'F, Y' ) ); ?>
  33.  
  34. <?php endif; ?>
  35.  
  36. <span class="controls">
  37. <?php do_action( 'breathe_view_controls' ); ?>
  38. </span>
  39. </h1>
  40. </header><!-- .page-header -->
  41.  
  42. <?php if ( have_posts() ) : ?>
  43.  
  44. <?php /* Start the Loop */ ?>
  45. <?php while ( have_posts() ) : the_post(); ?>
  46.  
  47. <?php
  48. /* Include the Post-Format-specific template for the content.
  49. * If you want to overload this in a child theme then include a file
  50. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  51. */
  52. get_template_part( 'content', get_post_format() );
  53. ?>
  54.  
  55. <?php endwhile; ?>
  56.  
  57. <?php breathe_content_nav( 'nav-below' ); ?>
  58.  
  59. <?php else : ?>
  60.  
  61. <?php get_template_part( 'no-results', 'index' ); ?>
  62.  
  63. <?php endif; ?>
  64. <?php endif; ?>
  65. </div>
  66. </div><!-- #content -->
  67.  
  68. </div><!-- #primary -->
  69.  
  70. <?php get_sidebar(); ?>
  71. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment