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

@@ -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':