Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
65 lines (51 sloc) 1.92 KB
<?php
/**
* The Template for displaying all single posts.
*
* @package cornerstone
*/
$url = get_post_meta($wp_query->post->ID,'external_link');
if(!empty($url)) wp_redirect($url[0]);
get_header(); ?>
<div id="page-single">
<div class="col-sm-12">
<div class="col-md-9 col-md-push-3">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php cs_post_nav(); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
</div>
<div id="page-sidebar" class="col-sm-3 col-md-pull-9 widget-area" role="complementary">
<?php if ( ! dynamic_sidebar( 'sidebar' ) ) : ?>
<aside id="search" class="widget widget_search">
<?php get_search_form(); ?>
</aside>
<aside id="archives" class="widget">
<h1 class="widget-title"><?php _e( 'Archives', 'cs' ); ?></h1>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>
<aside id="meta" class="widget">
<h1 class="widget-title"><?php _e( 'Meta', 'cs' ); ?></h1>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</aside>
<?php endif; // end sidebar widget area ?>
</div><!-- #secondary -->
</div>
</div>
<?php get_footer(); ?>
You can’t perform that action at this time.