Move table caption outside of league table

This commit is contained in:
Brian Miyaji
2014-05-05 20:39:39 +10:00
parent eaff3bd379
commit 9bb12a034c

View File

@@ -25,14 +25,13 @@ $defaults = array(
extract( $defaults, EXTR_SKIP ); extract( $defaults, EXTR_SKIP );
$output = '<div class="sp-table-wrapper">' . $output = '<div class="sp-table-wrapper">';
'<table class="sp-league-table sp-data-table' . ( $responsive ? ' sp-responsive-table' : '' ) . ( $sortable ? ' sp-sortable-table' : '' ) . ( $paginated ? ' sp-paginated-table' : '' ) . '" data-sp-rows="' . $rows . '">';
if ( $show_caption ): if ( $show_caption ):
$output .= '<caption class="sp-table-caption"><a href="' . get_post_permalink( $id ) . '">' . get_the_title( $id ) . '</a></caption>'; $output .= '<h4 class="sp-table-caption"><a href="' . get_post_permalink( $id ) . '">' . get_the_title( $id ) . '</a></h4>';
endif; endif;
$output .= '<thead>' . '<tr>'; $output .= '<table class="sp-league-table sp-data-table' . ( $responsive ? ' sp-responsive-table' : '' ) . ( $sortable ? ' sp-sortable-table' : '' ) . ( $paginated ? ' sp-paginated-table' : '' ) . '" data-sp-rows="' . $rows . '">' . '<thead>' . '<tr>';
$table = new SP_League_Table( $id ); $table = new SP_League_Table( $id );