Advertisement
jegtheme

single.php

Apr 16th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @author Jegbagus
  4.  */
  5. if(!jisAjax()) {
  6.     get_header();
  7. } else {
  8.     get_template_part('includes/page-common');
  9. }
  10.  
  11. global $post;
  12. if($post->post_type === 'post') {
  13.     $jdata->blogLayout          = Jeg_Sidebar::$_FULLWIDTH;
  14. } else {
  15.     $jdata->blogLayout          = j_get_option('blog_layout'    , JEG_DEFAULT_LAYOUT);
  16.     $jdata->blogSidebar         = j_get_option('blog_sidebar'   , jegGenId(JEG_DEFAULT_SIDEBAR));
  17. }
  18.  
  19. $jdata->hideMeta            = j_get_option('blog_hidemeta'  , 0);
  20. $jdata->hideComment         = j_get_option('blog_hide_comment'  , 0);
  21.  
  22.  
  23. get_template_part( "includes/page-template" );
  24.  
  25. if(!jisAjax()) {
  26.     get_footer();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement