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


PHP tribe_get_meta_group函數代碼示例

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