Advertisement
cyberdev

Untitled

Jul 13th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying all single posts.
  4.  *
  5.  * @license For the full license information, please view the Licensing folder
  6.  * that was distributed with this source code.
  7.  *
  8.  * @package Bimber_Theme 4.10
  9.  */
  10.  
  11. // Prevent direct script access.
  12. if ( ! defined( 'ABSPATH' ) ) {
  13.     die( 'No direct script access allowed' );
  14. }
  15.  
  16. // We don't need to double the code here, so this will be enough.
  17.  
  18. if (get_post_type( get_the_ID()) == 'entity'){
  19.     get_template_part( 'g1-template-post-classic-no-sidebar' );
  20. }
  21.  
  22. else if (is_attachment()){
  23.     get_template_part( 'g1-template-post-classic-no-sidebar' );
  24. }
  25.  
  26. else {
  27.     get_template_part( 'g1-template-post-classic' );
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement