Advertisement
Guest User

Untitled

a guest
Sep 20th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 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 Catch Themes
  12. * @subpackage Catch_Box
  13. */
  14.  
  15. get_header(); ?>
  16.  
  17. <?php if ( have_posts() ) : ?>
  18.  
  19. <?php /* Start the Loop */ ?>
  20. <?php while ( have_posts() ) : the_post(); ?>
  21.  
  22. <?php get_template_part( 'content', get_post_format() ); ?>
  23.  
  24. <?php endwhile; ?>
  25.  
  26. <?php catchbox_content_nav( 'nav-below' ); ?>
  27.  
  28. <?php else : ?>
  29.  
  30. <article id="post-0" class="post no-results not-found">
  31. <header class="entry-header">
  32. <h1 class="entry-title"><?php _e( 'Nothing Found', 'catchbox' ); ?></h1>
  33. </header><!-- .entry-header -->
  34.  
  35. <div class="entry-content">
  36. <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catchbox' ); ?></p>
  37. <?php get_search_form(); ?>
  38. </div><!-- .entry-content -->
  39. </article><!-- #post-0 -->
  40.  
  41. <?php endif; ?>
  42.  
  43. </div><!-- #content -->
  44.  
  45. <?php
  46. /**
  47. * catchbox_after_content hook
  48. *
  49. */
  50. do_action( 'catchbox_after_content' ); ?>
  51.  
  52. </div><!-- #primary -->
  53.  
  54. <?php
  55. /**
  56. * catchbox_after_primary hook
  57. *
  58. */
  59. do_action( 'catchbox_after_primary' ); ?>
  60.  
  61. <?php get_sidebar(); ?>
  62.  
  63. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement