• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tribe_address_exists函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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);
 }
开发者ID:jvcanote,项目名称:wp-the-events-calendar,代码行数:16,代码来源:meta.php


示例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');
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:venue.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');
    ?>

		<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


示例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');
开发者ID:chicosilva,项目名称:olharambiental,代码行数:30,代码来源:venue+(1).php


示例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);
 }
开发者ID:TMBR,项目名称:johnjohn,代码行数:55,代码来源:meta.php


示例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">
开发者ID:TyRichards,项目名称:river_of_life,代码行数:31,代码来源:single-event.php


示例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>
开发者ID:simple-beck,项目名称:project-gc,代码行数:31,代码来源:_partial-single-event.php


示例8: sp_address_exists

 /**
  * @deprecated
  */
 function sp_address_exists($postId = null)
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_address_exists()');
     return tribe_address_exists($postId);
 }
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:8,代码来源:deprecated.php


示例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>&nbsp;' . tribe_get_start_date($post->ID, false, 'H:i m/d/Y') . '&nbsp;&nbsp;&nbsp;<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>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:event-layout-3.php


示例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>';
开发者ID:estrategasdigitales,项目名称:Golone,代码行数:31,代码来源:meta.php


示例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);
 }
开发者ID:TyRichards,项目名称:river_of_life,代码行数:49,代码来源:meta.php


示例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 {
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:single-event-2.php


示例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 -->
开发者ID:poweronio,项目名称:mbsite,代码行数:31,代码来源:single-venue.php



注:本文中的tribe_address_exists函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tribe_beginning_of_day函数代码示例发布时间:2022-05-23
下一篇:
PHP tree_to_list函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap