本文整理汇总了PHP中tribe_get_embedded_map函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_get_embedded_map函数的具体用法?PHP tribe_get_embedded_map怎么用?PHP tribe_get_embedded_map使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_get_embedded_map函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: venue_map
/**
* Get the venue map
*
* @param int $meta_id
* @return string
*/
public static function venue_map($meta_id)
{
global $_tribe_meta_factory;
$post_id = get_the_ID();
$map = tribe_get_embedded_map($post_id);
$venue_map = empty($map) ? '' : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $map, $meta_id);
return apply_filters('tribe_event_meta_venue_map', $venue_map);
}
示例2: printf
?>
" rel="bookmark"><?php
printf(__('← Back to %s', 'tribe-events-calendar-pro'), tribe_get_event_label_plural());
?>
</a>
</p>
<div class="tribe-events-venue-meta vcard tribe-clearfix">
<?php
if (tribe_embed_google_map() && tribe_address_exists()) {
?>
<!-- Venue Map -->
<div class="tribe-events-map-wrap">
<?php
echo tribe_get_embedded_map($venue_id, '100%', '200px');
?>
</div><!-- .tribe-events-map-wrap -->
<?php
}
?>
<!-- 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');
示例3: apply_filters
<?php
/**
* Single Event Meta (Map) Template
*
*/
$map = apply_filters('tribe_event_meta_venue_map', tribe_get_embedded_map());
if (empty($map)) {
return;
}
?>
<div class="grve-tribe-events-venue-map">
<?php
do_action('tribe_events_single_meta_map_section_start');
echo $map;
do_action('tribe_events_single_meta_map_section_end');
?>
</div>
示例4: tribe_the_embedded_map
/**
* @deprecated
*/
function tribe_the_embedded_map($postId = null, $width = null, $height = null)
{
_deprecated_function(__FUNCTION__, '2.0.1', 'echo tribe_get_embedded_map()');
echo tribe_get_embedded_map($postId, $width, $height);
}
示例5: tribe_the_custom_fields
<?php
tribe_the_custom_fields(get_the_ID());
?>
<?php
}
?>
</div>
<?php
if (tribe_embed_google_map(get_the_ID())) {
?>
<?php
if (tribe_address_exists(get_the_ID())) {
echo tribe_get_embedded_map();
}
?>
<?php
}
?>
<div class="entry clear">
<?php
the_content();
?>
<?php
// if ( function_exists( 'tribe_get_ticket_form' ) && tribe_get_ticket_form() ) { tribe_get_ticket_form(); }
?>
示例6: tribe_get_embedded_map
<?php
/**
* Single Event Meta (Map) Template
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe-events/modules/meta/details.php
*
* @package TribeEventsCalendar
*/
$map = tribe_get_embedded_map();
if (empty($map)) {
return;
}
?>
<div class="col-md-6 tribe-events-venue-map">
<?php
// Display the map.
do_action('tribe_events_single_meta_map_section_start');
echo $map;
do_action('tribe_events_single_meta_map_section_end');
?>
</div>
示例7: _e
_e('« Back to Events', 'tribe-events-calendar-pro');
?>
</a></span>
<?php
// Single venue meta
?>
<div id="tribe-events-event-meta">
<?php
// Map
?>
<div style="margin: 0 0 10px 0; float: right;">
<?php
echo tribe_get_embedded_map(get_the_ID(), '350px', '200px');
?>
</div>
<?php
// Location
?>
<dl class="column location" itemscope itemtype="http://schema.org/Place">
<dt class="venue-label venue-label-name"><?php
_e('Name:', 'tribe-events-calendar-pro');
?>
</dt>
<dd itemprop="name" class="venue-meta venue-meta-name"><?php
the_title();
?>
示例8: add_google_map_preview
public function add_google_map_preview($postId)
{
if (!$postId) {
return;
}
if (tribe_get_option('embedGoogleMaps')) {
$display = tribe_embed_google_map($postId) ? 'block' : 'none';
?>
<div style="float:right; display:<?php
echo $display;
?>
;">
<?php
echo tribe_get_embedded_map($postId, 200, 200, true);
?>
</div>
<?php
}
?>
<div style="clear:both"></div>
<?php
}