/** * Course Location [location] * @return [Venue Name] */ function swsctp_course_location() { $venue = tribe_get_venue_details(); if ($venue) { $location = strip_tags($venue['name']); return $location; } else { return "[class_location]"; } }
<?php /** * List View Single Event * This file contains one event in the list view * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php * * @package TribeEventsCalendar * */ if (!defined('ABSPATH')) { die('-1'); } // Setup an array of venue details for use later in the template $venue_details = tribe_get_venue_details(); // Venue $has_venue_address = !empty($venue_details['address']) ? ' location' : ''; // Organizer $organizer = tribe_get_organizer(); ?> <!-- Event Cost --> <?php if (tribe_get_cost()) { ?> <div class="tribe-events-event-cost"> <span><?php echo tribe_get_cost(null, true); ?>