default-template.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Default Events Template
  4. * This file is the basic wrapper template for all the views if 'Default Events Template'
  5. * is selected in Events -> Settings -> Template -> Events Template.
  6. *
  7. * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
  8. *
  9. * @package TribeEventsCalendar
  10. * @since 3.0
  11. * @author Modern Tribe Inc.
  12. *
  13. */
  14. if ( ! defined('ABSPATH') ) {
  15. die('-1');
  16. }
  17. $article_class = array( VamtamTemplates::get_layout() );
  18. if ( ! is_singular() ) {
  19. VamtamFramework::set( 'page_title', tribe_get_events_title( false ) );
  20. array_merge( $article_class, get_post_class() );
  21. }
  22. add_filter( 'vamtam_had_limit_wrapper', '__return_true' );
  23. get_header(); ?>
  24. <div class="row page-wrapper">
  25. <article class="<?php echo esc_attr( implode( ' ', $article_class ) ) ?>">
  26. <div class="page-content">
  27. <?php tribe_events_before_html(); ?>
  28. <?php tribe_get_view(); ?>
  29. <?php tribe_events_after_html(); ?>
  30. </div>
  31. </article>
  32. <?php get_template_part( 'sidebar' ) ?>
  33. </div>
  34. <?php
  35. get_footer();