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


PHP tribe_show_google_map_link函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。