Default calendar shortcode to use h4 caption tag

This commit is contained in:
Brian Miyaji
2014-03-21 18:40:43 +11:00
parent c26fcb458c
commit 3a0932fe4a
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ function sportspress_default_calendar_content( $content ) {
$calendar = sportspress_events_list( $id );
break;
default:
$calendar = sportspress_events_calendar( $id, false, array( 'caption_tag' => 'h4' ) );
$calendar = sportspress_events_calendar( $id, false );
break;
endswitch;
$content = $calendar . $content;

View File

@@ -9,7 +9,7 @@ if ( !function_exists( 'sportspress_events_calendar' ) ) {
return;
$defaults = array(
'caption_tag' => 'caption',
'caption_tag' => 'h4',
'show_all_events_link' => false,
);

View File

@@ -15,7 +15,7 @@ class SportsPress_Widget_Events_Calendar extends WP_Widget {
if ( $title )
echo $before_title . $title . $after_title;
echo '<div id="calendar_wrap">';
echo sportspress_events_calendar( $id, true, array( 'show_all_events_link' => $show_all_events_link ) );
echo sportspress_events_calendar( $id, true, array( 'caption_tag' => 'caption', 'show_all_events_link' => $show_all_events_link ) );
echo '</div>';
echo $after_widget;
}