Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.24 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 progression
  12.  * @since progression 1.0
  13.  */
  14.  
  15. get_header(); ?>
  16. <?php get_sidebar(); ?>
  17.  
  18.  
  19. <section id="content">
  20.  
  21.  
  22. <?php $page_for_posts = get_option('page_for_posts'); ?>
  23. <h1 class="page-title"><?php echo get_the_title($page_for_posts); ?></h1>
  24.  
  25.  
  26.  
  27. <?php if ( have_posts() ) : ?>
  28.    
  29.     <div id="mason-layout" class="transitions-enabled fluid">
  30.     <?php /* Start the Loop */ ?>
  31.     <?php while ( have_posts() ) : the_post(); ?>
  32.         <?php get_template_part( 'content', 'blog' ); ?>
  33.     <?php endwhile; ?>
  34.    
  35.     <div class="clearfix"></div>
  36.     </div><!-- close #mason-layout -->
  37.    
  38.     <?php get_template_part( 'pagination', 'blog' ); ?>
  39.     <!--div><?php posts_nav_link(); // default tag ?></div-->
  40.  
  41. <?php elseif ( current_user_can( 'edit_posts' ) ) : ?>
  42.  
  43.     <?php get_template_part( 'no-results', 'index' ); ?>
  44.  
  45. <?php endif; ?>
  46.  
  47.  
  48.  
  49. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement