Advertisement
Guest User

ecp-page-template.php

a guest
Feb 11th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 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.  
  19. <div id="content" class="grid col-620">
  20.   <?php the_post(); global $post; ?>
  21.   <div id="post-<?php the_ID() ?>" <?php post_class() ?>>
  22.     <h1 class="post-title tribe-events-cal-title">
  23.       <?php tribe_events_title(); ?>
  24.     </h1>
  25.     <?php include(tribe_get_current_template()) ?>
  26.     <?php edit_post_link(__('Edit','tribe-events-calendar'), '<span class="edit-link">', '</span>'); ?>
  27.   </div>
  28.   <!-- post -->
  29.   <?php if(tribe_get_option('showComments','no') == 'yes'){ comments_template();} ?>
  30. </div>
  31. <!-- /#main -->
  32. <!-- /#content -->
  33. <?php get_sidebar(); ?>
  34. <?php tribe_events_after_html() ?>
  35. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement