Make the Date field optional in Event List template and Shortcode

This commit is contained in:
savvasha
2018-11-09 20:45:38 +02:00
parent f34d911b21
commit 41755701a4
3 changed files with 9 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ class SP_Meta_Box_Calendar_Columns {
}
$columns = array();
$columns['date'] = __( 'Date', 'sportspress' );
if ( 'teams' === $title_format ) {
$columns[ 'event' ] = __( 'Home', 'sportspress' ) . ' | ' . __( 'Away', 'sportspress' );

View File

@@ -621,6 +621,7 @@ class SP_AJAX {
<?php _e( 'Columns:', 'sportspress' ); ?><br>
<?php
$the_columns = array(
'date' => __( 'Date', 'sportspress' ),
'event' => __( 'Event', 'sportspress' ),
'teams' => __( 'Teams', 'sportspress' ),
'time' => __( 'Time', 'sportspress' ),