Add heading option to calendars, league tables, and player lists

This commit is contained in:
Brian Miyaji
2015-10-04 21:52:26 +11:00
parent 801c52420e
commit 71aa3cdc22
8 changed files with 44 additions and 9 deletions

View File

@@ -74,8 +74,13 @@ $output = '';
if ( $grouping === 'position' ):
$groups = get_terms( 'sp_position', array( 'orderby' => 'slug' ) );
else:
if ( $show_title && false === $title && $id )
get_the_title( $id );
if ( $show_title && false === $title && $id ):
$caption = $list->caption;
if ( $caption )
$title = $caption;
else
$title = get_the_title( $id );
endif;
if ( $title )
$output .= '<' . $grouptag . ' class="sp-table-caption">' . $title . '</' . $grouptag . '>';
$group = new stdClass();