Wrap templates to help with styling
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user