-
-
Save ntwb/1d884eb7bb889906285d to your computer and use it in GitHub Desktop.
Spine (HybridCore) bbPress Theme compat
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 | |
/** | |
* 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(); ?> |
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 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