ClubShrimp

Astra theme - index.php

Jun 6th, 2019
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  * @link https://codex.wordpress.org/Template_Hierarchy
  11.  *
  12.  * @package Astra
  13.  * @since 1.0.0
  14.  */
  15.  
  16. get_header(); ?>
  17.  
  18. <?php if ( astra_page_layout() == 'left-sidebar' ) : ?>
  19.  
  20.     <?php get_sidebar(); ?>
  21.  
  22. <?php endif ?>
  23.  
  24.     <div id="primary" <?php astra_primary_class(); ?>>
  25.  
  26.         <?php astra_primary_content_top(); ?>
  27.  
  28.         <?php astra_content_loop(); ?>
  29.  
  30.         <?php astra_pagination(); ?>
  31.  
  32.         <?php astra_primary_content_bottom(); ?>
  33.  
  34.     </div><!-- #primary -->
  35.  
  36. <?php if ( astra_page_layout() == 'right-sidebar' ) : ?>
  37.  
  38.     <?php get_sidebar(); ?>
  39.  
  40. <?php endif ?>
  41.  
  42. <?php get_footer(); ?>
RAW Paste Data