Revert "Make the Date field optional in Event List template and Shortcode"

This reverts commit 41755701a4.
This commit is contained in:
Brian Miyaji
2018-12-09 11:48:20 +11:00
parent 0abd9585bc
commit 9f6001762f
3 changed files with 2 additions and 9 deletions

View File

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

View File

@@ -113,9 +113,7 @@ $identifier = uniqid( 'eventlist_' );
<thead>
<tr>
<?php
if ( sp_column_active( $usecolumns, 'date' ) ) {
echo '<th class="data-date">' . __( 'Date', 'sportspress' ) . '</th>';
}
echo '<th class="data-date">' . __( 'Date', 'sportspress' ) . '</th>';
switch ( $title_format ) {
case 'homeaway':
@@ -258,9 +256,7 @@ $identifier = uniqid( 'eventlist_' );
if ( $link_events ) $date_html = '<a href="' . get_post_permalink( $event->ID, false, true ) . '" itemprop="url">' . $date_html . '</a>';
if ( sp_column_active( $usecolumns, 'date' ) ) {
echo '<td class="data-date" itemprop="startDate" content="' . mysql2date( 'Y-m-d\TH:iP', $event->post_date ) . '" data-label="'.__( 'Date', 'sportspress' ).'">' . $date_html . '</td>';
}
echo '<td class="data-date" itemprop="startDate" content="' . mysql2date( 'Y-m-d\TH:iP', $event->post_date ) . '" data-label="'.__( 'Date', 'sportspress' ).'">' . $date_html . '</td>';
switch ( $title_format ) {
case 'homeaway':