Advertisement
cyberdev

Untitled

Jul 12th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 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. else {
  22. get_template_part( 'g1-template-post-classic' );
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement