Advertisement
BakerMan

Embedding the calendar in a page template

Sep 10th, 2012
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2. // Don't load directly
  3. if ( !defined('ABSPATH') ) { die('-1'); }
  4.  
  5. // Load your theme's standard header
  6. get_header();
  7.  
  8. // Show any additional HTML specified in the settings
  9. tribe_events_before_html();
  10.  
  11. // Create the title: we cannot use the tribe_events_title() tag
  12. // as it will assume we are viewing the upcoming events list rather
  13. // than the month view
  14. echo '<h2 class="tribe-events-cal-title"> Calendar </h2>';
  15.  
  16. // Load the gridview
  17. include(TribeEventsTemplates::getTemplateHierarchy('gridview'));
  18.  
  19. // Show any additional HTML specified in the settings
  20. tribe_events_after_html();
  21.  
  22. // Close out with the theme's regular footer
  23. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement