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

PHP tribe_get_meta_group函数代码示例

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

本文整理汇总了PHP中tribe_get_meta_group函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_get_meta_group函数的具体用法?PHP tribe_get_meta_group怎么用?PHP tribe_get_meta_group使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了tribe_get_meta_group函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_the_post_thumbnail

?>
		</div>
		<?php 
if (has_post_thumbnail($venue_ID)) {
    ?>
			<div class="tribe-venue-widget-thumbnail">
				<?php 
    echo get_the_post_thumbnail($venue_ID, 'related-event-thumbnail');
    ?>
			</div>
		<?php 
}
?>
		<div class="tribe-venue-widget-address">
			<?php 
echo tribe_get_meta_group($venue_ID, 'tribe_event_venue');
?>
		</div>
	</div>

	<?php 
if (0 === $events->post_count) {
    ?>
		<?php 
    _e('No upcoming events.', 'tribe-events-calendar-pro');
    ?>
	<?php 
} else {
    ?>
	<?php 
    do_action('tribe_events_venue_widget_before_the_list');
开发者ID:pellio11,项目名称:ns-select-project,代码行数:31,代码来源:venue-widget.php


示例2: tribe_get_meta

    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');
    ?>
			<?php 
    do_action('tribe_events_single_venue_after_the_meta');
    ?>

		</div><!-- .tribe-events-event-meta -->

		<!-- Venue Description -->
		<?php 
    if (get_the_content()) {
        ?>
		<div class="tribe-venue-description tribe-events-content entry-content">
			<?php 
        the_content();
        ?>
开发者ID:simple-beck,项目名称:project-gc,代码行数:31,代码来源:single-venue.php


示例3: single_event_the_meta_addon

 /**
  * Filters in a meta walker group for new items regarding the PRO addon.
  *
  * @param string $html The current HTML for the event meta..
  * @param int $event_id The post_id of the current event.
  *
  * @return string The modified HTML for the event meta.
  */
 public function single_event_the_meta_addon($html, $event_id)
 {
     // add custom meta if it's available
     $html .= tribe_get_meta_group('tribe_event_group_custom_meta');
     return $html;
 }
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:14,代码来源:Main.php


示例4: 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


示例5: tribe_display_meta_group

 /**
  *  Simple diplay of meta group tag
  *
  * @uses tribe_get_meta_group()
  *
  * @param string $meta_group_id
  *
  * @return echo tribe_get_meta_group( $meta_group_id )
  */
 function tribe_display_meta_group($meta_group_id)
 {
     echo apply_filters('tribe_display_meta_group', tribe_get_meta_group($meta_group_id));
 }
开发者ID:hubbardsc,项目名称:field_day,代码行数:13,代码来源:meta.php


示例6: do_action

?>
	<?php 
do_action('tribe_events_single_venue_after_title');
?>
	
	<?php 
do_action('tribe_events_single_organizer_before_organizer');
?>
	<div class="tribe-events-organizer-meta vcard tribe-clearfix">

		<!-- Organizer Meta -->
		<?php 
do_action('tribe_events_single_organizer_before_the_meta');
?>
		<?php 
echo tribe_get_meta_group('tribe_event_organizer');
?>
		<?php 
do_action('tribe_events_single_organizer_after_the_meta');
?>

		<!-- Organizer Featured Image -->
		<?php 
echo tribe_event_featured_image(null, 'full');
?>

		<!-- Organizer Content -->
		<?php 
if (get_the_content()) {
    ?>
		<div class="tribe-organizer-description tribe-events-content entry-content">
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:31,代码来源:single-organizer.php


示例7: 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


示例8: tribe_display_meta_group

/**
 *  Simple diplay of meta group tag
 *
 * @uses tribe_get_meta_group()
 * @deprecated 4.3
 *
 * @param string $meta_group_id
 *
 * @return echo tribe_get_meta_group( $meta_group_id )
 */
function tribe_display_meta_group($meta_group_id)
{
    _deprecated_function(__FUNCTION__, '4.3');
    echo apply_filters('tribe_display_meta_group', tribe_get_meta_group($meta_group_id));
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:15,代码来源:functions.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP tribe_get_month_view_date函数代码示例发布时间:2022-05-23
下一篇:
PHP tribe_get_meta函数代码示例发布时间: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