Add heading option to calendars, league tables, and player lists
This commit is contained in:
@@ -62,8 +62,13 @@ if ( isset( $columns ) ):
|
||||
$usecolumns = explode( ',', $columns );
|
||||
endif;
|
||||
|
||||
if ( $show_title && false === $title && $id )
|
||||
$title = get_the_title( $id );
|
||||
if ( $show_title && false === $title && $id ):
|
||||
$caption = $calendar->caption;
|
||||
if ( $caption )
|
||||
$title = $caption;
|
||||
else
|
||||
$title = get_the_title( $id );
|
||||
endif;
|
||||
?>
|
||||
<div class="sp-template sp-template-event-list">
|
||||
<?php if ( $title ) { ?>
|
||||
|
||||
Reference in New Issue
Block a user