Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
business/single.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
65 lines (51 sloc)
1.92 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); ?> |