Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * If 'Default Events Template' is selected in Settings -> The Events Calendar -> Theme Settings -> Events Template,
- * then this file loads the page template for all ECP views except for the individual
- * event view. Generally, this setting should only be used if you want to manually
- * specify all the shell HTML of your ECP pages in this template file. Use one of the other Theme
- * Settings -> Events Template to automatically integrate views into your
- * theme.
- *
- */
- // Don't load directly
- if ( !defined('ABSPATH') ) { die('-1'); }
- /**
- * Use different templates for specific category requests.
- */
- switch (tribe_meta_event_category_name()) {
- case 'Event Category 1':
- get_template_part('special-tpl-1');
- return;
- break;
- case 'Event Category 2':
- get_template_part('special-tpl-2');
- return;
- break;
- }
- ?>
- <?php get_header(); ?>
- <?php tribe_events_before_html() ?>
- <h2 class="tribe-events-cal-title"><?php tribe_events_title(); ?></h2>
- <?php include(tribe_get_current_template()); ?>
- <?php tribe_events_after_html() ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement