cwulff

UUA Theme - index.php

Jan 29th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div class="primary-content col-md-12">
  4. <main id="main" class="main" role="main">
  5.    
  6.     <h1 class="page-title"><?php echo uuatheme_title(); ?></h1>
  7.  
  8.     <?php if (!have_posts()) : ?>
  9.       <div class="alert alert-warning">
  10.         <?php _e('Sorry, no results were found.', 'uuatheme'); ?>
  11.       </div>
  12.       <?php get_search_form(); ?>
  13.     <?php endif; ?>
  14.    
  15.     <?php while (have_posts()) : the_post(); ?>
  16.       <?php get_template_part('partials/content', get_post_format()); ?>
  17.     <?php endwhile; ?>
  18.    
  19.     <?php if ($wp_query->max_num_pages > 1) : ?>
  20.       <nav class="post-nav">
  21.         <ul class="pager">
  22.           <li class="previous"><?php next_posts_link(__('&larr; Older posts', 'uuatheme')); ?></li>
  23.           <li class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'uuatheme')); ?></li>
  24.         </ul>
  25.       </nav>
  26.     <?php endif; ?>
  27.  
  28. </main>
  29. </div>
  30.  
  31. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment