File: /home/thanexcelr/www/wp-content/themes/novellite/single.php
<?php
/**
* The Template for displaying all single posts.
*
* @package ThemeHunk
* @subpackage NovelLite
* @since NovelLite 1.0
*/
?>
<?php get_header(); ?>
<?php $layout = novellite_get_layout(); ?>
<div class="page_heading_container" <?php if (get_theme_mod('header_image','') != '') { ?>
style="background: url(<?php echo esc_url(get_theme_mod('header_image','')); ?>);"
<?php }?> >
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page_heading_content">
<h1 class="entry-title"><?php the_title(); ?></h1>
</div>
</div>
</div>
</div>
</div>
<div class="page-container">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-content <?php echo $layout; ?>">
<?php if ( $layout != 'no-sidebar' ){ ?>
<div class="col-md-9">
<?php } else { ?>
<div class="col-md-12">
<?php } ?>
<div class="content-bar">
<!-- Start the Loop. -->
<?php
global $post;
if (have_posts()) : while (have_posts()) : the_post();
?>
<!--Start post-->
<?php $format = get_post_format($post->ID); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post single">
<h1 class="post_title"><?php the_title(); ?></h1>
<ul class="post_meta">
<li class="posted_by vcard author"><span></span><?php the_author_posts_link(); ?></li>
<li class="posted_on date updated"><i class="fa fa-calendar-o"></i><span></span><?php echo get_the_time('M, d, Y') ?></li>
<?php if ( is_singular( 'post' ) ) { ?>
<li class="posted_in"><i class="fa fa-folder-o"></i><span></span><?php the_category(', '); ?></li>
<?php } ?>
<li class="post_comment"><i class="fa fa-comments-o"></i><?php comments_popup_link(NO_CMNT, ONE_CMNT, '% ' . CMNT); ?></li>
<li class="format_sign"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" ><span class="post_format">
<?php if ($format == 'video') { ?>
<i class="fa fa-video-camera"></i>
<?php } elseif ($format == 'gallery') { ?>
<i class="fa fa-camera"></i>
<?php } elseif ($format == 'image') { ?>
<i class="fa fa-picture-o"></i>
<?php } elseif ($format == 'quote') { ?>
<i class="fa fa-quote-left"></i>
<?php } elseif ($format == 'link') { ?>
<i class="fa fa-link"></i>
<?php } else { ?>
<i class="fa fa-file-text"></i>
<?php } ?>
</span></a></li>
</ul>
<div class="post_content">
<?php
the_content();
$Video_embed = get_post_meta($post->ID, 'video_url', true);
echo $Video_embed;
?>
</div>
<div class="clear"></div>
</div>
</div>
<?php
endwhile;
else:
?>
<div class="post">
<p>
<?php echo SORRY_NO_POST_MATCHED; ?>
</p>
</div>
<?php endif; ?>
<div class="clear"></div>
<nav id="nav-single"> <span class="nav-previous">
<?php previous_post_link('« %link'); ?>
</span> <span class="nav-next">
<?php next_post_link('%link »'); ?>
</span> </nav>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<div class="clear"></div><div class="page-link"><span>' . PAGES_COLON . '</span>', 'after' => '</div>')); ?>
<!--Start Comment box-->
<?php comments_template(); ?>
<!--End Comment box-->
<!--End post-->
</div>
</div>
<?php if ( $layout != 'no-sidebar' ) { ?>
<div class="col-md-3">
<!--Start Sidebar-->
<?php get_sidebar(); ?>
<!--End Sidebar-->
</div>
<?php } ?>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php get_footer(); ?>