/** * Get the event link * * @param int $meta_id * @return string */ function event_website($meta_id) { global $_tribe_meta_factory; $link = tribe_get_event_website_link(); $website_link = empty($link) ? '' : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $link, $meta_id); return apply_filters('tribe_event_meta_event_website', $website_link); }
* * @package TribeEventsCalendar */ $time_format = get_option('time_format', Tribe__Events__Date_Utils::TIMEFORMAT); $time_range_separator = tribe_get_option('timeRangeSeparator', ' - '); $start_datetime = tribe_get_start_date(); $start_date = tribe_get_start_date(null, false); $start_time = tribe_get_start_date(null, false, $time_format); $start_ts = tribe_get_start_date(null, false, Tribe__Events__Date_Utils::DBDATEFORMAT); $end_datetime = tribe_get_end_date(); $end_date = tribe_get_end_date(null, false); $end_time = tribe_get_end_date(null, false, $time_format); $end_ts = tribe_get_end_date(null, false, Tribe__Events__Date_Utils::DBDATEFORMAT); $instructor = get_post_meta(get_the_ID(), 'Instructor', true); $cost = tribe_get_formatted_cost(); $website = tribe_get_event_website_link(); ?> <div class="tribe-events-meta-group tribe-events-meta-group-details"> <h3 class="tribe-events-single-section-title"> <?php esc_html_e('Details', 'the-events-calendar'); ?> </h3> <dl> <?php do_action('tribe_events_single_meta_details_section_start'); // All day (multiday) events if (tribe_event_is_all_day() && tribe_event_is_multiday()) { ?>
<?php /** * Single Event Meta (Organizer) Template * * Override this template in your own theme by creating a file at: * [your-theme]/tribe-events/modules/meta/details.php * * @package TribeEventsCalendar */ $organizer_ids = tribe_get_organizer_ids(); $multiple = count($organizer_ids) > 1; $phone = tribe_get_phone(); $o_website = tribe_get_organizer_website_link(null, '<i class="fa fa-link"></i>Event Website<i class="fa fa-external-link"></i>'); $e_website = tribe_get_event_website_link(null, '<i class="fa fa-link"></i>Event Website<i class="fa fa-external-link"></i>'); ?> <div class="tribe-events-meta-group tribe-events-meta-group-organizer"> <h3 class="tribe-events-single-section-title"><?php echo 'CONTACT: '; ?> </h3> <dl> <?php do_action('tribe_events_single_meta_organizer_section_start'); ?> <i class="fa fa-user"></i> <dd class="fn org"> <?php echo tribe_get_venue(); ?>
, <?php echo tribe_get_state(get_the_ID()); ?> , <?php echo tribe_get_zip(get_the_ID()); ?> </dd> </div> <?php if (tribe_get_event_website_link()) { ?> <div class="row"> <dt>Website:</dt> <dd><?php echo tribe_get_event_website_link(); ?> </dd> </div> <?php } ?> <?php if (tribe_get_custom_field('Registration URL')) { ?> <div class="row"> <dd><a class="tribe-events-button" href="<?php tribe_custom_field('Registration URL'); ?>
/** * Get the event link * * @deprecated 4.3 * * @param int $meta_id * * @return string */ public static function event_website($meta_id) { _deprecated_function(__METHOD__, '4.3'); global $_tribe_meta_factory; $link = tribe_get_event_website_link(); $website_link = empty($link) ? '' : Tribe__Events__Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $link, $meta_id); return apply_filters('tribe_event_meta_event_website', $website_link); }