-
-
Save anonymous/5bb278e8df60e3718894 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Single Event Template for Widgets | |
* | |
* This template is used to render single events for both the calendar and advanced | |
* list widgets, facilitating a common appearance for each as standard. | |
* | |
* You can override this template in your own theme by creating a file at | |
* [your-theme]/tribe-events/widgets/modules/single-widget.php | |
* | |
* @package TribeEventsCalendarPro | |
* | |
*/ | |
$mini_cal_event_atts = tribe_events_get_widget_event_atts(); | |
$postDate = tribe_events_get_widget_event_post_date(); | |
?> | |
<div class="tribe-mini-calendar-event event-<?php esc_attr_e( $mini_cal_event_atts['current_post'] ); ?> <?php esc_attr_e( $mini_cal_event_atts['class'] ); ?>"> | |
<div class="list-date"> | |
<span | |
class="list-dayname"><?php echo apply_filters( 'tribe-mini_helper_tribe_events_ajax_list_dayname', date_i18n( 'M', $postDate ), $postDate, $mini_cal_event_atts['class'] ); ?></span> | |
<span | |
class="list-daynumber"><?php echo apply_filters( 'tribe-mini_helper_tribe_events_ajax_list_daynumber', date_i18n( 'd', $postDate ), $postDate, $mini_cal_event_atts['class'] ); ?></span> | |
</div> | |
<div class="list-info"> | |
<?php do_action( 'tribe_events_list_widget_before_the_event_title' ); ?> | |
<h2 class="entry-title summary"> | |
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a> | |
</h2> | |
<?php do_action( 'tribe_events_list_widget_after_the_event_title' ); ?> | |
<?php do_action( 'tribe_events_list_widget_before_the_meta' ) ?> | |
<div class="duration"> | |
<?php echo tribe_events_event_schedule_details(); ?> | |
</div> | |
<?php if ( isset( $cost ) && $cost && tribe_get_cost() != '' ) : ?> | |
<span class="tribe-events-divider">|</span> | |
<div class="tribe-events-event-cost"> | |
<?php echo tribe_get_cost( null, true ); ?> | |
</div> | |
<?php endif ?> | |
<div class="vcard adr location"> | |
<?php if ( isset( $venue ) && $venue && tribe_get_venue() != '' ): ?> | |
<span class="fn org tribe-venue"><?php echo tribe_get_venue_link(); ?></span> | |
<?php endif ?> | |
<?php if ( isset( $address ) && $address && tribe_get_address() != '' ): ?> | |
<span class="street-address"><?php echo tribe_get_address(); ?></span> | |
<?php endif ?> | |
<?php if ( isset( $city ) && $city && tribe_get_city() != '' ): ?> | |
<span class="locality"><?php echo tribe_get_city(); ?></span> | |
<?php endif ?> | |
<?php if ( isset( $region ) && $region && tribe_get_region() != '' ): ?> | |
<span class="region"><?php echo tribe_get_region(); ?></span> | |
<?php endif ?> | |
<?php if ( isset( $zip ) && $zip && tribe_get_zip() != '' ): ?> | |
<span class="postal-code"><?php echo tribe_get_zip(); ?></span> | |
<?php endif ?> | |
<?php if ( isset( $country ) && $country && tribe_get_country() != '' ): ?> | |
<span class="country-name"><?php echo tribe_get_country(); ?></span> | |
<?php endif ?> | |
<?php if ( isset( $organizer ) && $organizer && tribe_get_organizer() != '' ): ?> | |
<span class="tribe-organizer"> | |
<?php esc_html_e( 'Organizer:', 'tribe-events-calendar-pro' ); ?> | |
<?php echo tribe_get_organizer_link(); ?> | |
</span> | |
<?php endif ?> | |
<?php if ( isset( $phone ) && $phone && tribe_get_phone() != '' ): ?> | |
<span class="tel"><?php echo tribe_get_phone(); ?></span> | |
<?php endif ?> | |
</div> <!-- .vcard.adr.location --> | |
<?php do_action( 'tribe_events_list_widget_after_the_meta' ) ?> | |
</div> <!-- .list-info --> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment