Snippi
A super awesome snippet tool.
- 1.
<?php - 2.
/** - 3.
* If 'Default Events Template' is selected in Settings -> The Events Calendar -> Theme Settings -> Events Template, - 4.
* then this file loads the page template for all ECP views except for the individual - 5.
* event view. Generally, this setting should only be used if you want to manually - 6.
* specify all the shell HTML of your ECP pages in this template file. Use one of the other Theme - 7.
* Settings -> Events Template to automatically integrate views into your - 8.
* theme. - 9.
* - 10.
* You can customize this view by putting a replacement file of the same name (ecp-page-template.php) in the events/ directory of your theme. - 11.
*/ - 12.
- 13.
// Don't load directly - 14.
if ( !defined('ABSPATH') ) { die('-1'); } - 15.
- 16.
?> - 17.
<?php global $mysite; get_header(); ?> - 18.
- 19.
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> - 20.
- 21.
<?php mysite_before_entry(); ?> - 22.
- 23.
<div class="entry"> - 24.
- 25.
<?php tribe_events_before_html(); ?> - 26.
<h2 class="tribe-events-cal-title"><?php tribe_events_title(); ?></h2> - 27.
<?php include(tribe_get_current_template()); ?> - 28.
- 29.
<div class="clearboth"></div> - 30.
- 31.
<?php tribe_events_after_html(); ?> - 32.
- 33.
</div><!-- .entry --> - 34.
- 35.
<?php mysite_after_page_content(); ?> - 36.
- 37.
</div><!-- #post --> - 38.
- 39.
<div class="clearboth"></div> - 40.
</div><!-- #main_inner --> - 41.
</div><!-- #main --> - 42.
- 43.
<?php mysite_after_page_content(); ?> - 44.
- 45.
<?php get_footer(); ?>