-
-
Save anonymous/b1c40f8e828e9e2e71bb to your computer and use it in GitHub Desktop.
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 Gridspace | |
* @since Gridspace 1.0 | |
*/ | |
get_header(); | |
$html = <<<BANNER | |
<div align="center"> | |
<a href="https://www.facebook.com/pages/abc"> | |
<img src="http://shuttermuse.com/assets/images/Facebook_newsletter-banner.jpg" /> | |
</a> | |
</div> | |
BANNER; | |
add_filter('the_content', function ($content) use ($html) | |
{ | |
return $content . $html; | |
}); | |
?> | |
<section id="primary"> | |
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
<?php // gridspace_content_nav( 'nav-above' ); ?> | |
<?php get_template_part( 'content', get_post_format() ); ?> | |
<?php gridspace_content_nav( 'nav-below' ); ?> | |
<?php comments_template( '', true ); ?> | |
<?php endwhile; // end of the loop. ?> | |
</section><!-- #primary --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment