Guest User

Untitled

a guest
Aug 22nd, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.87 KB | None | 0 0
  1. //page.php
  2.  
  3. <?php get_header(); ?>
  4. <?php global $bpxl_goblog_options; ?>
  5. <div class="detail-page">
  6.     <div class="main-content">
  7.     <?php if($bpxl_goblog_options['bpxl_single_layout'] == 'scb_single_layout') { ?>
  8.         <div class="sidebar-small">
  9.             <div class="small-sidebar">
  10.                 <?php
  11.                     if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Secondary Sidebar') );
  12.                 ?>
  13.             </div><!--End .small-sidebar-->
  14.         </div><!--End .sidebar-small-->
  15.     <?php } ?>
  16.         <div class="content-area single-content-area">
  17.             <div class="content-page">
  18.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>                
  19.                     <?php if($bpxl_goblog_options['bpxl_breadcrumbs'] == '1') { ?>
  20.                         <div class="breadcrumbs">
  21.                             <?php bpxl_breadcrumb(); ?>
  22.                         </div>
  23.                     <?php }?>
  24.                     <div class="page-content">
  25.                         <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  26.                             <div class="post-box">
  27.                                 <header>
  28.                                     <h1 class="title page-title"><?php the_title(); ?></h1>
  29.                                 </header>
  30.                                
  31.                                 <div class="single-page-content">
  32.                                     <?php the_content(); ?>
  33.                                     <?php wp_link_pages('before=<div class="pagination">&after=</div>'); ?>
  34.                                 </div>
  35.                             </div> 
  36.                         </article><!--blog post-->
  37.                     </div> 
  38.                     <?php comments_template(); ?>
  39.                     <?php endwhile; ?>
  40.                     <?php else : ?>
  41.                         <div class="post">
  42.                             <div class="single-page-content error-page-content">
  43.                                 <p><strong><?php _e('Nothing Found', 'bloompixel'); ?></strong></p>
  44.                                 <?php get_search_form(); ?>
  45.                             </div><!--noResults-->
  46.                         </div>  
  47.                 <?php endif; ?>
  48.             </div>
  49.         </div>
  50.     <?php
  51.         $sidebar_position = rwmb_meta( 'bpxl_layout', $args = array('type' => 'image_select'), get_the_ID() );
  52.         if ($sidebar_position != 'none') { get_sidebar(); }
  53.     ?>
  54.     </div><!--.main-content-->
  55. </div><!--.detail-page-->
  56. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment