本文整理汇总了PHP中tribe_address_exists函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_address_exists函数的具体用法?PHP tribe_address_exists怎么用?PHP tribe_address_exists使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_address_exists函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: venue_address
/**
* Get the venue address
*
* @param int $meta_id
* @return string
*/
public static function venue_address($meta_id)
{
global $_tribe_meta_factory;
$address = tribe_address_exists(get_the_ID()) ? '<address class="tribe-events-address">' . tribe_get_full_address(get_the_ID()) . '</address>' : '';
// Google map link
$gmap_link = tribe_show_google_map_link(get_the_ID()) ? self::gmap_link() : '';
$gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link);
$venue_address = empty($address) ? '' : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $address . $gmap_link, $meta_id);
return apply_filters('tribe_event_meta_venue_address', $venue_address);
}
示例2: do_action
?>
</span> </h3>
<div class="widget-content">
<dl>
<?php
do_action('tribe_events_single_meta_venue_section_start');
?>
<dd class="author fn org"> <?php
echo tribe_get_venue();
?>
</dd>
<div class="clearfix"></div>
<?php
// Do we have an address?
$address = tribe_address_exists() ? '<address class="tribe-events-address">' . tribe_get_full_address() . '</address>' : '';
// Do we have a Google Map link to display?
$gmap_link = tribe_show_google_map_link() ? tribe_get_map_link_html() : '';
$gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link);
// Display if appropriate
if (!empty($address)) {
echo '<dd class="location">' . "{$address} {$gmap_link} </dd>";
echo '<div class="clearfix"></div>';
}
?>
<?php
if (!empty($phone)) {
?>
<dt> <?php
esc_html_e('Phone:', 'training');
示例3: do_action
<!-- Venue Title -->
<?php
do_action('tribe_events_single_venue_before_title');
?>
<?php
the_title('<h2 class="entry-title author fn org">', '</h2>');
?>
<?php
do_action('tribe_events_single_venue_after_title');
?>
<div class="tribe-events-event-meta">
<?php
if (tribe_show_google_map_link() && tribe_address_exists()) {
?>
<!-- Google Map Link -->
<?php
echo tribe_get_meta('tribe_event_venue_gmap_link');
?>
<?php
}
?>
<!-- Venue Meta -->
<?php
do_action('tribe_events_single_venue_before_the_meta');
?>
<?php
echo tribe_get_meta_group('tribe_event_venue');
示例4: tribe_show_google_map_link
<?php
$gmap_link = tribe_show_google_map_link() ? tribe_get_map_link_html() : '';
$gmap_link = apply_filters('tribe_event_meta_venue_address_gmap', $gmap_link);
if (tribe_address_exists()) {
?>
<div class="event-details-item">
<span class="icon-info"><?php
_e('Address:', 'vh');
?>
</span>
<div class="tribe-events-abbr updated published address">
<?php
echo tribe_get_full_address();
// Display if appropriate
if (tribe_address_exists()) {
echo " " . $gmap_link;
}
?>
</div>
</div>
<?php
}
?>
<?php
if (!empty($phone)) {
?>
<div class="event-details-item">
<span class="icon-info"><?php
_e('Phone:', 'vh');
示例5: tribe_events_single_event_meta
/**
* Return the single event meta
*
* @deprecated since 3.6
* @todo remove in 3.9
* @return string
**/
function tribe_events_single_event_meta()
{
// Use the new template driven approach to rendering meta data unless the user opts to use the old system
if (!apply_filters('tribe_events_single_event_meta_legacy_mode', false)) {
tribe_get_template_part('modules/meta');
return '';
}
// For users using the meta factory ("legacy mode")...
$event_id = get_the_ID();
$skeleton_mode = apply_filters('tribe_events_single_event_the_meta_skeleton', false, $event_id);
$group_venue = apply_filters('tribe_events_single_event_the_meta_group_venue', false, $event_id);
$html = '';
if ($skeleton_mode) {
// show all visible meta_groups in skeleton view
$html .= tribe_get_the_event_meta();
} else {
$html .= '<div class="tribe-events-single-section tribe-events-event-meta tribe-clearfix">';
// Event Details
$html .= tribe_get_meta_group('tribe_event_details');
// When there is no map show the venue info up top
if (!$group_venue && !tribe_embed_google_map($event_id)) {
// Venue Details
$html .= tribe_get_meta_group('tribe_event_venue');
$group_venue = false;
} else {
if (!$group_venue && !tribe_has_organizer($event_id) && tribe_address_exists($event_id) && tribe_embed_google_map($event_id)) {
$html .= sprintf('%s<div class="tribe-events-meta-group tribe-events-meta-group-gmap">%s</div>', tribe_get_meta_group('tribe_event_venue'), tribe_get_meta('tribe_venue_map'));
$group_venue = false;
} else {
$group_venue = true;
}
}
// Organizer Details
if (tribe_has_organizer($event_id)) {
$html .= tribe_get_meta_group('tribe_event_organizer');
}
$html .= apply_filters('tribe_events_single_event_the_meta_addon', '', $event_id);
$html .= '</div>';
}
if (!$skeleton_mode && $group_venue) {
// If there's a venue map and custom fields or organizer, show venue details in this seperate section
$venue_details = tribe_get_meta_group('tribe_event_venue') . tribe_get_meta('tribe_venue_map');
if (!empty($venue_details)) {
$html .= apply_filters('tribe_events_single_event_the_meta_venue_row', sprintf('<div class="tribe-events-single-section tribe-events-event-meta tribe-clearfix">%s</div>', $venue_details));
}
}
return apply_filters('tribe_events_single_event_meta', $html);
}
示例6: tribe_events_event_recurring_info_tooltip
?>
</div><!-- end .social-wrapper -->
<div class="tribe-events-schedule updated published tribe-clearfix">
<?php
echo tribe_events_event_recurring_info_tooltip();
?>
</div>
<!-- Google Map -->
<?php
if (tribe_embed_google_map(get_the_ID())) {
?>
<?php
if (tribe_address_exists(get_the_ID())) {
?>
<div class="map-wrapper"><?php
tribe_the_embedded_map();
?>
</div>
<?php
}
?>
<?php
}
?>
<!-- Event Meta -->
<div class="tribe-event-meta">
示例7: tribe_events_event_classes
<?php $event_id = $event->ID; ?>
<div class="single-event-popup <?php echo tribe_events_event_classes( $event_id ); ?>">
<div class="col-sm-4">
<?php echo tribe_event_featured_image( $event_id, 'event-popup', false ); ?>
</div>
<div class="col-sm-8">
<h2 class="event-title"><?php echo $event->post_title; ?></h2>
<?php echo apply_filters( 'the_content', $event->post_content ); ?>
<ul class="meta-info">
<li><label>What:</label> <?php echo $event->post_title; ?></li>
<li><label>When:</label> <?php echo tribe_events_event_schedule_details( $event_id ); ?></li>
<?php if ( tribe_address_exists( $event_id ) ) : ?>
<li><label>Where:</label> <?php echo tribe_get_full_address( $event_id ); ?></li>
<?php endif; ?>
<li><label>Cost:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_2', true ); ?></li>
<?php if ( tribe_has_organizer( $event_id ) ): ?>
<li><label>Info:</label> <a href="mailto:<?php echo tribe_get_organizer_email( $event_id ); ?>"><?php echo tribe_get_organizer_email( $event_id ); ?></a></li>
<?php endif; ?>
<li><label>Register:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_5', true ); ?></li>
</ul>
<?php echo bones_get_edit_link( $event_id ); ?>
</div>
</div>
示例8: sp_address_exists
/**
* @deprecated
*/
function sp_address_exists($postId = null)
{
_deprecated_function(__FUNCTION__, '2.0', 'tribe_address_exists()');
return tribe_address_exists($postId);
}
示例9: esc_url
echo esc_url(tribe_get_event_link());
?>
" title="<?php
the_title();
?>
" rel="bookmark">
<?php
the_title();
?>
</a>
</h4>
<?php
do_action('tribe_events_after_the_event_title');
?>
<?php
echo tribe_address_exists() ? '<address class="tribe-events-address"><i class="fa fa-clock-o"></i> ' . tribe_get_start_date($post->ID, false, 'H:i m/d/Y') . ' <i class="fa fa-map-marker"></i>' . tribe_get_full_address() . '</address>' : '';
?>
</div>
</div>
</div>
</div>
</article>
</div>
<div class="action col-sm-2 col-xs-12">
<a class="view-more btn btn-outline" href="<?php
the_permalink();
?>
"><?php
_e('View more', TEXTDOMAIN);
?>
</a>
示例10: tribe_get_template_part
}
// Include organizer meta if appropriate
if (tribe_has_organizer()) {
tribe_get_template_part('modules/meta/organizer');
}
do_action('tribe_events_single_event_meta_primary_section_end');
?>
<?php
if ($not_skeleton) {
echo '</div>';
}
?>
<?php
if ($set_venue_apart && tribe_address_exists()) {
?>
<?php
if ($not_skeleton) {
echo '<div class="tribe-events-single-section tribe-events-event-meta secondary tribe-clearfix">';
}
?>
<?php
do_action('tribe_events_single_event_meta_secondary_section_start');
tribe_get_template_part('modules/meta/venue');
tribe_get_template_part('modules/meta/map');
do_action('tribe_events_single_event_meta_secondary_section_end');
?>
<?php
if ($not_skeleton) {
echo '</div>';
示例11: tribe_events_single_event_meta
/**
* Return the single event meta
*
* @return string
* @since 3.0
* @author Jessica Yazbek
**/
function tribe_events_single_event_meta()
{
$event_id = get_the_ID();
$skeleton_mode = apply_filters('tribe_events_single_event_the_meta_skeleton', false, $event_id);
$group_venue = apply_filters('tribe_events_single_event_the_meta_group_venue', false, $event_id);
$html = '';
if ($skeleton_mode) {
// show all visible meta_groups in skeleton view
$html .= tribe_get_the_event_meta();
} else {
$html .= '<div class="tribe-events-single-section tribe-events-event-meta tribe-clearfix">';
// Event Details
$html .= tribe_get_meta_group('tribe_event_details');
// When there is no map show the venue info up top
if (!$group_venue && !tribe_embed_google_map($event_id)) {
// Venue Details
$html .= tribe_get_meta_group('tribe_event_venue');
$group_venue = false;
} else {
if (!$group_venue && !tribe_has_organizer($event_id) && tribe_address_exists($event_id) && tribe_embed_google_map($event_id)) {
$html .= sprintf('%s<div class="tribe-events-meta-group">%s</div>', tribe_get_meta_group('tribe_event_venue'), tribe_get_meta('tribe_venue_map'));
$group_venue = false;
} else {
$group_venue = true;
}
}
// Organizer Details
if (tribe_has_organizer($event_id)) {
$html .= tribe_get_meta_group('tribe_event_organizer');
}
$html .= apply_filters('tribe_events_single_event_the_meta_addon', '', $event_id);
$html .= '</div>';
}
if (!$skeleton_mode && $group_venue) {
// If there's a venue map and custom fields or organizer, show venue details in this seperate section
$venue_details = tribe_get_meta_group('tribe_event_venue') . tribe_get_meta('tribe_venue_map');
if (!empty($venue_details)) {
$html .= apply_filters('tribe_events_single_event_the_meta_venue_row', sprintf('<div class="tribe-events-single-section tribe-events-event-meta tribe-clearfix">%s</div>', $venue_details));
}
}
return apply_filters('tribe_events_single_event_meta', $html);
}
示例12: the_title
" title="<?php
the_title();
?>
" rel="bookmark">
<?php
the_title();
?>
</a>
</h4>
<?php
do_action('tribe_events_after_the_event_title');
?>
</div>
<?php
echo tribe_address_exists() ? '<address class="tribe-events-address"><i class="fa fa-map-marker"></i>' . tribe_get_full_address() . '</address>' : '';
?>
<div class="updated published time-details">
<i class="fa fa-calendar"></i><?php
echo tribe_events_event_schedule_details();
?>
</div>
</div>
<div class="right">
<div class="event-cost">
<i class="fa fa-ticket"></i>
<?php
if (tribe_get_cost(get_the_ID()) > 0) {
echo tribe_get_cost(get_the_ID());
echo '$';
} else {
示例13: the_content
?>
<!-- Organizer Content -->
<?php
the_content();
?>
<!-- Organizer Meta -->
<div class="grve-row">
<div class="grve-column-1-3">
<?php
tribe_get_template_part('modules/meta/venue');
?>
</div>
<div class="grve-column-2-3">
<?php
if (tribe_embed_google_map() && tribe_address_exists()) {
?>
<!-- Venue Map -->
<div class="grve-tribe-events-map-wrap">
<?php
echo tribe_get_embedded_map($venue_id, '100%', '250px');
?>
</div>
<?php
}
?>
</div>
</div>
</div>
<!-- Upcoming event list -->