Skip to content
Go to file
Cannot retrieve contributors at this time
47 lines (39 sloc) 2.1 KB
* The Template for displaying all single posts.
* @package cornerstone
$link = get_post_meta($post->ID, $key, true);
if(!empty($link)) wp_redirect($link);
get_header(); ?>
<div id="page-single">
<div class="row">
<div class="col-md-8">
<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' ); ?>
<div id="social-buttons">
Share on:&nbsp; <a href="<?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/asset.f.logo.lg.png';?>" alt="facebook" />Facebook</a>
<a href="<?php the_permalink(); ?>&text=<?php echo get_the_excerpt(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/twitter-bird-white-on-blue.png';?>" alt="Twitter" />Twitter </a>
<a href="<?php the_permalink(); ?>&title=<?php echo get_the_title(); ?>&summary=<?php echo get_the_excerpt(); ?>&source=<?php the_permalink(); ?>"> <img src="<?php echo get_stylesheet_directory_uri().'/img/linkedin.png';?>" alt="LinkedIn" />LinkedIn</a>
<a href="mailto:?subject=Shared from;body=<?php echo get_the_title(); ?>%0D%0A%0D%0A<?php the_permalink(); ?>"><img src="<?php echo get_stylesheet_directory_uri().'/img/email-icon.png';?>" alt="email" />Email</a>
<hr />
<?php cs_post_nav(); ?>
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
You can’t perform that action at this time.