Move calendar into its own widget

This commit is contained in:
Brian Miyaji
2014-01-29 18:27:05 +11:00
parent 403be21d34
commit b3270a06b1
11 changed files with 171 additions and 100 deletions

View File

@@ -22,15 +22,6 @@ function sportspress_default_event_content( $content ) {
}
add_filter( 'the_content', 'sportspress_default_event_content' );
function sportspress_default_calendar_content( $content ) {
if ( is_singular( 'sp_calendar' ) && in_the_loop() ):
$calendar = sportspress_events_calendar();
$content = $calendar . $content;
endif;
return $content;
}
add_filter( 'the_content', 'sportspress_default_calendar_content' );
function sportspress_default_team_content( $content ) {
if ( is_singular( 'sp_team' ) && in_the_loop() ):
$columns = sportspress_team_columns();