Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /** The Template for displaying all single posts. **/
- get_header();
- $get_meta = get_post_custom($post->ID);
- $sidebar = weblusive_get_option('sidebar_post');
- $sidebar_pos = weblusive_get_option('sidebar_pos');
- if (!$sidebar) $sidebar_pos = 'full';
- $size = weblusive_get_option('sidebar_size');
- $sidebar_size = (isset($size) && !empty ($size)) ? $size : 'col-md-6';
- $layout_size = ($sidebar_pos === 'full') ? 'col-md-12' : 'col-md-6';
- if ($sidebar_size === 'col-md-3' && $sidebar_pos !== 'full') $layout_size = 'col-md-9';
- $showdate = weblusive_get_option('blog_show_date');
- $showcomments = weblusive_get_option('blog_show_comments');
- $showcategory = weblusive_get_option('blog_show_category');
- ?>
- <!-- Container -->
- <div id="content">
- <div class="inner-content">
- <?php get_template_part( 'library/includes/page-head' ); ?>
- <div class="single-project">
- <div class="single-box">
- <?php if ($sidebar_pos == 'left' && !empty($sidebar)): ?>
- <aside class="sidebar-div <?php echo $sidebar_size?>" id="sidebar"><div class="sidebar-content"><?php dynamic_sidebar($sidebar); ?></div></aside>
- <?php endif; ?>
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div class="<?php echo $layout_size?>">
- <div class="project-post-content">
- <div class="project-text">
- <h1><?php the_title()?></h1>
- <?php the_content()?>
- </div>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'Kappe' ), 'after' => '</div>' ) ); ?>
- <div class="comment-section">
- <?php if( 'open' == $post->comment_status) comments_template(); ?>
- <?php $test = false; if ($test) {comment_form();} ?>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- <?php if ($sidebar_pos == 'right' && !empty($sidebar)) :?>
- <aside class="sidebar-div <?php echo $sidebar_size?>" id="sidebar"><div class="sidebar-content"><?php dynamic_sidebar($sidebar); ?></div></aside>
- <?php endif; ?>
- </div>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment