Default calendar shortcode to use h4 caption tag
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -9,7 +9,7 @@ if ( !function_exists( 'sportspress_events_calendar' ) ) {
|
||||
return;
|
||||
|
||||
$defaults = array(
|
||||
'caption_tag' => 'caption',
|
||||
'caption_tag' => 'h4',
|
||||
'show_all_events_link' => false,
|
||||
);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user