當前位置: 首頁>>代碼示例>>PHP>>正文


PHP tribe_get_embedded_map函數代碼示例

本文整理匯總了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);
 }
開發者ID:jvcanote,項目名稱:wp-the-events-calendar,代碼行數:14,代碼來源:meta.php

示例2: printf

    ?>
" rel="bookmark"><?php 
    printf(__('&larr; 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');
開發者ID:simple-beck,項目名稱:project-gc,代碼行數:31,代碼來源:single-venue.php

示例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>
開發者ID:poweronio,項目名稱:mbsite,代碼行數:19,代碼來源:map.php

示例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);
 }
開發者ID:brooklyntri,項目名稱:btc-plugins,代碼行數:8,代碼來源:deprecated.php

示例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(); }
?>
開發者ID:xdividr,項目名稱:wi,代碼行數:31,代碼來源:single.php

示例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>
開發者ID:alexmacarthur,項目名稱:LyonCountyRepublicans,代碼行數:24,代碼來源:map.php

示例7: _e

_e('&laquo; 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();
?>
開發者ID:donwea,項目名稱:nhap.org,代碼行數:31,代碼來源:single-venue.php

示例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 
        }
開發者ID:mpaskew,項目名稱:isc-dev,代碼行數:22,代碼來源:events-calendar-pro.php


注:本文中的tribe_get_embedded_map函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。