Wrap templates to help with styling

This commit is contained in:
Brian Miyaji
2014-07-09 17:16:21 +10:00
parent 7f74f13f95
commit ade07f11a6

View File

@@ -75,8 +75,12 @@ function sp_get_template( $template_name, $args = array(), $template_path = '',
do_action( 'sportspress_before_template_part', $template_name, $template_path, $located, $args ); do_action( 'sportspress_before_template_part', $template_name, $template_path, $located, $args );
echo '<div class="sp-template sp-template-' . str_replace( '.', '-', $template_name ) . '">';
include( $located ); include( $located );
echo '</div>';
do_action( 'sportspress_after_template_part', $template_name, $template_path, $located, $args ); do_action( 'sportspress_after_template_part', $template_name, $template_path, $located, $args );
} }