本文整理匯總了PHP中tribe_events_after_html函數的典型用法代碼示例。如果您正苦於以下問題:PHP tribe_events_after_html函數的具體用法?PHP tribe_events_after_html怎麽用?PHP tribe_events_after_html使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了tribe_events_after_html函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: die
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
*
* @package TribeEventsCalendar
*
*/
if (!defined('ABSPATH')) {
die('-1');
}
get_header();
?>
<div id="tribe-events-pg-template">
<?php
dimox_breadcrumbs();
?>
<?php
tribe_events_before_html();
?>
<?php
tribe_get_view();
?>
<?php
tribe_events_after_html();
?>
</div> <!-- #tribe-events-pg-template -->
<?php
get_footer();
示例2: load_ecp_into_page_template
/**
* Loads the contents into the page template
*
* @return string Page content
*/
public static function load_ecp_into_page_template()
{
// only run once!!!
remove_filter('the_content', array(__CLASS__, 'load_ecp_into_page_template'));
self::restoreQuery();
ob_start();
echo tribe_events_before_html();
tribe_get_view();
echo tribe_events_after_html();
$contents = ob_get_contents();
ob_end_clean();
// make sure the loop ends after our template is included
if (!is_404()) {
self::endQuery();
}
return $contents;
}