Advertisement
catchmahesh

Catch Adaptive Pro - index.php

Jan 31st, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.31 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.  *
  10.  * @package Catch Themes
  11.  * @subpackage Catch Adaptive Pro
  12.  * @since Catch Adaptive Pro 1.0
  13.  */
  14.  
  15. get_header(); ?>
  16.  
  17.     <main id="main" class="site-main" role="main">
  18.  
  19.         <?php if ( have_posts() ) : ?>
  20.  
  21.             <?php /* Start the Loop */ ?>
  22.             <?php while ( have_posts() ) : the_post(); ?>
  23.  
  24.                 <?php
  25.                     /* Include the Post-Format-specific template for the content.
  26.                      * If you want to override this in a child theme then include a file
  27.                      * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  28.                      */
  29.                     get_template_part( 'content', get_post_format() );
  30.                 ?>
  31.  
  32.                 <?php
  33.                     /* show comments in homepage frontpage */
  34.                     $withcomments = "1";
  35.                     comments_template();
  36.                 ?>
  37.  
  38.             <?php endwhile; ?>
  39.  
  40.             <?php catchadaptive_content_nav( 'nav-below' ); ?>
  41.  
  42.         <?php else : ?>
  43.  
  44.             <?php get_template_part( 'no-results', 'index' ); ?>
  45.  
  46.         <?php endif; ?>
  47.     </main><!-- #main -->
  48.  
  49. <?php get_sidebar(); ?>
  50. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement