Skip to content

Instantly share code, notes, and snippets.

@mattyza
Created May 10, 2013 09:57
Show Gist options
  • Save mattyza/1b01583441b11c8d04d0 to your computer and use it in GitHub Desktop.
Save mattyza/1b01583441b11c8d04d0 to your computer and use it in GitHub Desktop.
A custom bbPress template file for the Canvas theme by WooThemes.
<?php
/**
* bbPress Template
*
* This template is for all bbPress screens.
*
* @package WooFramework
* @subpackage Template
*/
get_header();
?>
<!-- #content Starts -->
<?php woo_content_before(); ?>
<div id="content" class="col-full">
<div id="main-sidebar-container">
<!-- #main Starts -->
<?php woo_main_before(); ?>
<section id="main">
<?php
woo_loop_before();
if ( have_posts() ) { $count = 0;
while ( have_posts() ) { the_post(); $count++;
the_content();
}
}
woo_loop_after();
?>
</section><!-- /#main -->
<?php woo_main_after(); ?>
<?php get_sidebar(); ?>
</div><!-- /#main-sidebar-container -->
<?php get_sidebar( 'alt' ); ?>
</div><!-- /#content -->
<?php woo_content_after(); ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment