Skip to content

Instantly share code, notes, and snippets.

@ntwb

ntwb/bbpress.php Secret

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.