本文整理汇总了PHP中tribe_show_google_map_link函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_show_google_map_link函数的具体用法?PHP tribe_show_google_map_link怎么用?PHP tribe_show_google_map_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_show_google_map_link函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: do_action
<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');
?>
</dt>
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:venue.php
示例2: 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);
}
开发者ID:jvcanote,项目名称:wp-the-events-calendar,代码行数:16,代码来源:meta.php
示例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');
?>
<?php
if (tribe_show_google_map_link()) {
?>
<!-- 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');
开发者ID:TyRichards,项目名称:river_of_life,代码行数:31,代码来源:single-venue.php
示例4: 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');
开发者ID:simple-beck,项目名称:project-gc,代码行数:30,代码来源:single-venue.php
示例5: _e
<?php
if (tribe_address_exists(get_the_ID())) {
?>
<dt class="event-label event-label-address">
<?php
_e('Address:', 'tribe-events-calendar');
?>
<br />
</dt>
<dd class="event-meta event-meta-address">
<?php
echo tribe_get_full_address(get_the_ID());
?>
<?php
if (tribe_show_google_map_link(get_the_ID())) {
?>
<!-- <a class="gmap" itemprop="maps" href="<?php
echo tribe_get_map_link();
?>
" title="<?php
_e('Click to view a Google Map', 'tribe-events-calendar');
?>
" target="_blank"><?php
_e('Google Map', 'tribe-events-calendar');
?>
</a> -->
<?php
}
?>
</dd>
开发者ID:xdividr,项目名称:wi,代码行数:30,代码来源:single.php
注:本文中的tribe_show_google_map_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论