Add option to show/hide event list title

This commit is contained in:
Brian Miyaji
2015-02-13 18:56:28 +11:00
parent 0368f8d99b
commit 72815b6960
2 changed files with 10 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ $defaults = array(
'order' => 'default',
'columns' => null,
'show_all_events_link' => false,
'show_title' => get_option( 'sportspress_event_list_show_title', 'yes' ) == 'yes' ? true : false,
);
extract( $defaults, EXTR_SKIP );
@@ -54,7 +55,7 @@ if ( isset( $columns ) ):
$usecolumns = explode( ',', $columns );
endif;
if ( $id ) {
if ( $show_title && $id ) {
echo '<h4 class="sp-table-caption">' . get_the_title( $id ) . '</h4>';
}
?>