Revert "Make the Date field optional in Event List template and Shortcode"
This reverts commit 41755701a4.
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user