Created
May 26, 2014 18:37
-
-
Save sidharrell/8f1ce590f7717fd6e905 to your computer and use it in GitHub Desktop.
EE4 Modified template content-espresso_events-datetimes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <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