Guest User

single.php (theme parent)

a guest
Apr 28th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying all single posts.
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6. *
  7. * @package Astra
  8. * @since 1.0.0
  9. */
  10.  
  11. if ( ! defined( 'ABSPATH' ) ) {
  12. exit; // Exit if accessed directly.
  13. }
  14.  
  15. get_header(); ?>
  16.  
  17. <?php if ( astra_page_layout() == 'left-sidebar' ) : ?>
  18.  
  19. <?php get_sidebar(); ?>
  20.  
  21. <?php endif ?>
  22.  
  23. <div id="primary" <?php astra_primary_class(); ?>>
  24.  
  25. <?php astra_primary_content_top(); ?>
  26.  
  27. <?php astra_content_loop(); ?>
  28.  
  29. <?php astra_primary_content_bottom(); ?>
  30.  
  31. </div><!-- #primary -->
  32.  
  33. <?php if ( astra_page_layout() == 'right-sidebar' ) : ?>
  34.  
  35. <?php get_sidebar(); ?>
  36.  
  37. <?php endif ?>
  38.  
  39. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment