From ade07f11a6558295cb060cca27e908988a4a2b3a Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 9 Jul 2014 17:16:21 +1000 Subject: [PATCH] Wrap templates to help with styling --- includes/sp-core-functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index d2598a30..52bb9ee6 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -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 ); + echo '
'; + include( $located ); + echo '
'; + do_action( 'sportspress_after_template_part', $template_name, $template_path, $located, $args ); }