Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Created May 26, 2014 18:37
Show Gist options
  • Save sidharrell/8f1ce590f7717fd6e905 to your computer and use it in GitHub Desktop.
Save sidharrell/8f1ce590f7717fd6e905 to your computer and use it in GitHub Desktop.
EE4 Modified template content-espresso_events-datetimes.php
<?php
//echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
if ( is_single() || is_archive() && espresso_display_datetimes_in_event_list() ) :
global $post;
do_action( 'AHEE_event_details_before_event_date', $post );
?>
<div class="event-datetimes">
<h3 class="event-datetimes-h3 ee-event-h3">
<span class="dashicons dashicons-calendar"></span><?php _e( 'Upcoming Date(s) and Time(s)', 'event_espresso' ); ?>
</h3>
<?php if ($post->DTT_EVT_start == "2014-06-25 08:00:00") { ?>
I'm an ongoing event
<?php } else { espresso_list_of_event_dates( $post->ID ); } ?>
</div>
<!-- .event-datetimes -->
<?php
do_action( 'AHEE_event_details_after_event_date', $post );
endif;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment