Show league table caption by default
This commit is contained in:
@@ -19,9 +19,6 @@ class SP_Shortcode_League_Table {
|
||||
if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) )
|
||||
$atts['id'] = $atts[0];
|
||||
|
||||
if ( ! isset( $atts['show_caption'] ) )
|
||||
$atts['show_caption'] = true;
|
||||
|
||||
sp_get_template( 'league-table.php', $atts );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ class SP_Widget_League_Table extends WP_Widget {
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
echo '<div id="sp_league_table_wrap">';
|
||||
sp_get_template( 'league-table.php', array( 'id' => $id, 'number' => $number, 'columns' => $columns, 'show_full_table_link' => $show_full_table_link, 'show_team_logo' => $show_team_logo, 'show_caption' => true ) );
|
||||
sp_get_template( 'league-table.php', array( 'id' => $id, 'number' => $number, 'columns' => $columns, 'show_full_table_link' => $show_full_table_link, 'show_team_logo' => $show_team_logo ) );
|
||||
echo '</div>';
|
||||
echo $after_widget;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user