Skip to content

Instantly share code, notes, and snippets.

@ntwb

ntwb/bbpress.php Secret

Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntwb/1d884eb7bb889906285d to your computer and use it in GitHub Desktop.
Save ntwb/1d884eb7bb889906285d to your computer and use it in GitHub Desktop.
Spine (HybridCore) bbPress Theme compat
<?php
/**
* bbPress wrapper template.
*/
get_header(); ?>
<div id="content" class="hfeed">
<?php while( have_posts() ): the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div><!-- .content -->
<?php get_footer(); ?>
<?php get_header(); // Loads the header.php template. ?>
<?php if ( is_bbpress() ) { ?>
<header class="entry-header">
<h1 class="entry-title"><?php single_post_title(); ?></h1>
<?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( 'Published by [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'spine2' ) . '</div>' ); ?>
</header><!-- .entry-header -->
<?php while( have_posts() ): the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms before="Posted in " taxonomy="category"] [entry-terms before="| Tagged "]', 'spine2' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } else { ?>
<div id="content" class="hfeed">
<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
<?php get_template_part( 'loop' ); // Loads the loop.php template. ?>
<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
</div><!-- #content -->
<?php get_footer(); // Loads the footer.php template. ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment