Advertisement
myironlung3

bp-lightspeed

Jul 22nd, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.84 KB | None | 0 0
  1. <?php
  2.  
  3. /* ------------------------------------------------------------------------------------------------------------
  4.  
  5.    
  6.  
  7.     Page template - Regular Page
  8.  
  9.    
  10.  
  11. ------------------------------------------------------------------------------------------------------------ */
  12.  
  13. ?>
  14.  
  15.  
  16.  
  17.     <?php
  18.  
  19.    
  20.  
  21.         /* Get theme options */
  22.  
  23.         $jw_option = jw_get_options();
  24.  
  25.        
  26.  
  27.         /* Get the custom fields values (aka post options) */
  28.  
  29.         $post_options = jw_get_post_options($post->ID);
  30.  
  31.        
  32.  
  33.         /* Get the post/page */
  34.  
  35.         the_post();
  36.  
  37.        
  38.  
  39.         /* Generate class attribute for #content */
  40.  
  41.         $content_class = '';
  42.  
  43.         if($post_options['jw_layout'] != 'layout_c'){ $content_class .= 'two-third '; }
  44.  
  45.         if($post_options['jw_layout'] == 'layout_sc'){ $content_class .= 'last '; }
  46.  
  47.    
  48.  
  49.     ?>
  50.  
  51.    
  52.  
  53.     <?php
  54.  
  55.     /* ---------------------------------------------------------------------------------------------------
  56.  
  57.        
  58.  
  59.         Header
  60.  
  61.        
  62.  
  63.     --------------------------------------------------------------------------------------------------- */
  64.  
  65.     ?>
  66.  
  67.    
  68.  
  69.     <?php get_header(); ?>
  70.  
  71.    
  72.  
  73.     <?php
  74.  
  75.     /* ---------------------------------------------------------------------------------------------------
  76.  
  77.        
  78.  
  79.         Content Composer Top
  80.  
  81.        
  82.  
  83.     --------------------------------------------------------------------------------------------------- */
  84.  
  85.     ?>
  86.  
  87.        
  88.  
  89.     <?php if(isset($post_options['jw_composer_status']) && $post_options['jw_composer_status'][0] == 'active' & isset($post_options['jw_composer_top_frontend'])){ ?>
  90.  
  91.        
  92.  
  93.         <div id="content-top">
  94.  
  95.             <?php echo do_shortcode($post_options['jw_composer_top_frontend'][0]); ?>
  96.  
  97.         </div><!-- #content-top -->
  98.  
  99.        
  100.  
  101.         <div class="clear"></div>
  102.  
  103.        
  104.  
  105.     <?php } ?>
  106.  
  107.    
  108.  
  109.     <?php
  110.  
  111.     /* ---------------------------------------------------------------------------------------------------
  112.  
  113.        
  114.  
  115.         Sidebar left
  116.  
  117.        
  118.  
  119.     --------------------------------------------------------------------------------------------------- */
  120.  
  121.     ?>
  122.  
  123.    
  124.  
  125.     <?php if($post_options['jw_layout'] == 'layout_sc'){ get_sidebar(); } ?>
  126.  
  127.    
  128.  
  129.     <?php
  130.  
  131.     /* ---------------------------------------------------------------------------------------------------
  132.  
  133.        
  134.  
  135.         Content
  136.  
  137.        
  138.  
  139.     --------------------------------------------------------------------------------------------------- */
  140.  
  141.     ?>
  142.  
  143.    
  144.  
  145.     <div id="content" class="col-clear <?php echo $content_class; ?>">
  146.  
  147.        
  148.  
  149.         <?php
  150.  
  151.         /* ---------------------------------------------------------------------------------------------------
  152.  
  153.            
  154.  
  155.             Post
  156.  
  157.            
  158.  
  159.         --------------------------------------------------------------------------------------------------- */
  160.  
  161.         ?>
  162.  
  163.        
  164.  
  165.         <div id="post-<?php the_ID(); ?>">     
  166.  
  167.            
  168.  
  169.             <?php if(isset($post_options['jw_composer_status']) && $post_options['jw_composer_status'][0] == 'active'){ ?>
  170.  
  171.            
  172.  
  173.                 <?php echo do_shortcode($post_options['jw_composer_main_frontend'][0]); ?>
  174.  
  175.                
  176.  
  177.             <?php }else{ ?>
  178.  
  179.                
  180.  
  181.                 <div class="post-content">
  182.  
  183.                     <?php the_content(); ?>
  184.  
  185.                 </div><!-- .post-content -->
  186.  
  187.                
  188.  
  189.             <?php } ?>
  190.  
  191.            
  192.  
  193.             <?php
  194.  
  195.             /* ---------------------------------------------------------------------------------------------------
  196.  
  197.                
  198.  
  199.                 Comments
  200.  
  201.                
  202.  
  203.             --------------------------------------------------------------------------------------------------- */
  204.  
  205.             ?>
  206.  
  207.            
  208.  
  209.             <?php if($jw_option[$sn.'_page_comments'] == 'yes'){ ?>
  210.  
  211.                
  212.  
  213.                 <div class="separator"></div>
  214.  
  215.                 <?php comments_template( '', true ); ?>
  216.  
  217.                
  218.  
  219.             <?php } ?>
  220.  
  221.            
  222.  
  223.         </div><!-- .post-entry -->
  224.  
  225.        
  226.  
  227.     </div><!-- #content -->
  228.  
  229.    
  230.  
  231.     <?php
  232.  
  233.     /* ---------------------------------------------------------------------------------------------------
  234.  
  235.        
  236.  
  237.         Sidebar Right
  238.  
  239.        
  240.  
  241.     --------------------------------------------------------------------------------------------------- */
  242.  
  243.     ?>
  244.  
  245.    
  246.  
  247.     <?php if($post_options['jw_layout'] == 'layout_cs'){ get_sidebar(); } ?>
  248.  
  249.    
  250.  
  251.     <?php
  252.  
  253.     /* ---------------------------------------------------------------------------------------------------
  254.  
  255.        
  256.  
  257.         Content Composer Bottom
  258.  
  259.        
  260.  
  261.     --------------------------------------------------------------------------------------------------- */
  262.  
  263.     ?>
  264.  
  265.    
  266.  
  267.     <?php if(isset($post_options['jw_composer_status']) && $post_options['jw_composer_status'][0] == 'active' && isset($post_options['jw_composer_bottom_frontend'])){ ?>
  268.  
  269.        
  270.  
  271.         <div class="clear"></div>
  272.  
  273.        
  274.  
  275.         <div id="content-bottom">
  276.  
  277.             <?php echo do_shortcode($post_options['jw_composer_bottom_frontend'][0]); ?>
  278.  
  279.         </div><!-- #content-top -->
  280.  
  281.        
  282.  
  283.     <?php } ?>
  284.  
  285.    
  286.  
  287.     <?php
  288.  
  289.     /* ---------------------------------------------------------------------------------------------------
  290.  
  291.        
  292.  
  293.         Footer
  294.  
  295.        
  296.  
  297.     --------------------------------------------------------------------------------------------------- */
  298.  
  299.     ?>
  300.  
  301.    
  302.  
  303.     <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement