Exemplo n.º 1
0
 *
 * 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();
 /**
  * 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;
 }