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


PHP tribe_events_the_notices函數代碼示例

本文整理匯總了PHP中tribe_events_the_notices函數的典型用法代碼示例。如果您正苦於以下問題:PHP tribe_events_the_notices函數的具體用法?PHP tribe_events_the_notices怎麽用?PHP tribe_events_the_notices使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了tribe_events_the_notices函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tribe_get_events_link

<div id="tribe-events-content" class="tribe-events-single vevent hentry">

	<p class="tribe-events-back">
		<a href="<?php 
echo tribe_get_events_link();
?>
"> <?php 
_e('&laquo; All Events', 'tribe-events-calendar');
?>
</a>
	</p>

	<!-- Notices -->
	<?php 
tribe_events_the_notices();
?>

	<!-- Event featured image, but exclude link -->
	<?php 
echo tribe_event_featured_image($event_id, 'full', false);
?>

	<?php 
the_title('<h2 class="border-title"><span>', '</span></h2>');
?>

	<div class="tribe-events-schedule updated published tribe-clearfix">
		<?php 
echo tribe_events_event_schedule_details($event_id, '<h3>', '</h3>');
?>
開發者ID:h3rodev,項目名稱:sometheme,代碼行數:30,代碼來源:single-event.php

示例2: tribe_get_event_label_singular

$events_label_singular = tribe_get_event_label_singular();
$events_label_plural = tribe_get_event_label_plural();

$event_id = get_the_ID();

?>

<div id="tribe-events-content" class="tribe-events-single vevent hentry">

	<p class="tribe-events-back">
		<a href="<?php echo esc_url( tribe_get_events_link() ); ?>"> <?php printf( __( '&laquo; All %s', 'tribe-events-calendar' ), $events_label_plural ); ?></a>
	</p>

	<!-- Notices -->
	<?php tribe_events_the_notices() ?>

	<?php the_title( '<h2 class="tribe-events-single-event-title summary entry-title">', '</h2>' ); ?>

	<div class="tribe-events-schedule updated published tribe-clearfix">
		<?php echo tribe_events_event_schedule_details( $event_id, '<h3>', '</h3>' ); ?>
		<?php if ( tribe_get_cost() ) : ?>
			<span class="tribe-events-divider">|</span>
			<span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span>
		<?php endif; ?>
	</div>

	<!-- Event header -->
	<div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
		<!-- Navigation -->
		<h3 class="tribe-events-visuallyhidden"><?php printf( __( '%s Navigation', 'tribe-events-calendar' ), $events_label_singular ); ?></h3>
開發者ID:simple-beck,項目名稱:project-gc,代碼行數:30,代碼來源:single-event.php


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