BakerMan

Canvas/TEC 2.0.11 ecp-single

Apr 19th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | None | 0 0
  1. <?php
  2. /**
  3. * Possible adaption of ecp-single-template.php to work with WooThemes Canvas.
  4.  *
  5.  * (The Events Calendar 2.0.11)
  6.  *
  7.  * @see http://tri.be/support/forums/topic/problem-with-calendar-view-and-woothemes-canvas-theme/
  8.  * @see http://tri.be/support/documentation/events-calendar-themers-guide/
  9. */
  10.  
  11. // Don't load directly
  12. if ( !defined('ABSPATH') ) { die('-1'); }
  13. ?>
  14. <?php get_header(); ?>
  15. <?php tribe_events_before_html(); ?>
  16. <div id="content">
  17.     <div id="main-sidebar-container" class="tribe-events-event widecolumn">
  18.         <div id="main">
  19.             <?php the_post(); global $post; ?>
  20.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  21.                 <h2 class="entry-title"><?php the_title(); ?></h2>
  22.                 <?php include(tribe_get_current_template()); ?>
  23.                 <?php edit_post_link(__('Edit','tribe-events-calendar'), '<span class="edit-link">', '</span>'); ?>
  24.             </div><!-- post -->
  25.             <?php if(tribe_get_option('showComments','no') == 'yes'){ comments_template(); } ?>
  26.         </div> <!-- #main -->
  27.         <?php get_sidebar(); ?>
  28.     </div> <!-- #main-sidebar-container -->
  29. </div> <!--#content-->
  30.  
  31. <?php tribe_events_after_html(); ?>
  32. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment