Guest User

Events Calendar Single Template

a guest
Dec 6th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  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 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-single-template.php) in the events/ directory of your theme.
  11. */
  12.  
  13. // Don't load directly
  14. if ( !defined('ABSPATH') ) { die('-1'); }
  15. ?>
  16. <?php get_header(); ?>
  17. <?php tribe_events_before_html(); ?>
  18. <div id="container">
  19. <div id="content" class="tribe-events-event widecolumn">
  20. <?php the_post(); global $post; ?>
  21. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  22. <h2 class="entry-title"><?php the_title(); ?></h2>
  23. <?php include(tribe_get_current_template()); ?>
  24. <?php edit_post_link(__('Edit','tribe-events-calendar'), '<span class="edit-link">', '</span>'); ?>
  25. </div><!-- post -->
  26. <?php if(tribe_get_option('showComments','no') == 'yes'){ comments_template(); } ?>
  27. </div><!-- #content -->
  28. </div><!--#container-->
  29. <?php get_sidebar(); ?>
  30. <?php tribe_events_after_html(); ?>
  31. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment