本文整理汇总了PHP中tribe_get_venue_details函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_get_venue_details函数的具体用法?PHP tribe_get_venue_details怎么用?PHP tribe_get_venue_details使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_get_venue_details函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: swsctp_course_location
/**
* 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]";
}
}
示例2: die
<?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);
?>