Viewing File: /home/rtsgrob/ww4/wp-content/themes/incubator/single.php

<?php
/**
 * The Template for displaying all single posts.
 * @package incubator
 * by KeyDesign
 */

  if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
  }

  get_header();

  $single_sidebar = incubator_get_option( 'tek-blog-sidebar' );
  $blog_active_widgets = is_active_sidebar( 'blog-sidebar' );

  if ( '' == $single_sidebar ) {
    $single_sidebar = 1;
  }

  if ( ! $blog_active_widgets ) {
		$single_sidebar = 0;
	}
?>

<div id="posts-content" class="container blog-single">
<?php if ( $single_sidebar ) { ?>
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
   <?php } else { ?>
   <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9 BlogFullWidth">
      <?php } ?>
      <?php
         if (have_posts()) :
         while (have_posts()) :
         the_post();
         ?>
      <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
         <div class="blog-single-content">
            <?php the_post_thumbnail('large'); ?>
            <h1 class="blog-single-title"><?php the_title(); ?></h1>
            <div class="blog-content"><?php the_content(); ?><?php wp_link_pages(); ?></div>
            <div class="entry-meta">
               <?php  if ( is_sticky() ) echo '<span class="fas fa-thumbtack"></span> Sticky <span class="blog-separator">|</span>  '; ?>
               <span class="published"><span class="far fa-clock"></span><?php the_time( get_option('date_format') ); ?></span>
               <span class="author"><span class="far fa-keyboard"></span><?php the_author_posts_link(); ?></span>
               <span class="blog-label"><span class="far fa-folder-open"></span><?php the_category(', '); ?></span>
            </div>
            <div class="meta-content">
               <div class="tags"><?php the_tags(' ',' '); ?></div>
               <div class="navigation pagination">
               <?php previous_post_link('%link', __('Previous', 'incubator')); ?>
               <?php next_post_link('%link', __('Next', 'incubator')); ?>
               </div>
            </div>
         </div>
      </div>
      <div class="page-content comments-content">
         <?php comments_template(); ?>
      </div>
   </div>
   <?php if ( $single_sidebar ) { ?>
   <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
      <?php get_sidebar(); ?>
   </div>
   <?php } ?>
   <?php  endwhile; ?>
   <?php  else : ?>
   <div id="post-not-found" <?php post_class() ?>>
      <h1 class="entry-title"><?php esc_html_e('Error 404 - Not Found', 'incubator')   ?></h1>
      <div class="entry-content">
         <p><?php esc_html_e("Sorry, but you are looking for something that isn't here.", "incubator")   ?></p>
      </div>
   </div>
   <?php endif; ?>
</div>

<?php get_footer(); ?>
Back to Directory File Manager