Created
May 30, 2012 22:55
-
-
Save jo-snips/2839432 to your computer and use it in GitHub Desktop.
The Events Calendar: ecp-page-template.php for Karmag Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* If 'Default Events Template' is selected in Settings -> The Events Calendar -> Theme Settings -> Events Template, | |
* then this file loads the page template for all ECP views except for the individual | |
* event view. Generally, this setting should only be used if you want to manually | |
* specify all the shell HTML of your ECP pages in this template file. Use one of the other Theme | |
* Settings -> Events Template to automatically integrate views into your | |
* theme. | |
* | |
* You can customize this view by putting a replacement file of the same name (ecp-page-template.php) in the events/ directory of your theme. | |
*/ | |
// Don't load directly | |
if ( !defined('ABSPATH') ) { die('-1'); } | |
?> | |
<?php get_header(); ?> | |
<?php get_template_part("subheader"); ?> | |
<?php if( tribe_is_month() ) { // The Main Calendar Page ?> | |
<?php } else { ?> | |
<?php if (of_get_option('leftsidebar')==1) get_template_part('sidebarleft'); ?> | |
<?php } ?> | |
<?php if( tribe_is_month() ) { // The Main Calendar Page ?> | |
<div class="fullcontent fullcontentwrap main single"> | |
<?php } else { //were on the list ?> | |
<div class="contentwrap left" style="width: 720px;<?php if (of_get_option('leftsidebar')!=1) { ?> border-right: 6px solid #f7f7f7;<?php } else { ?>border-left: 6px solid #f7f7f7;<?php } ?> "> | |
<?php } ?> | |
<div class="ktpost"> | |
<div class="cb"></div> | |
<?php if( tribe_is_month() ) { // The Main Calendar Page ?> | |
<div class="seperator category full"></div> | |
<div class="category-title full"> | |
<?php } else { ?> | |
<div class="seperator category" style="margin-left: -1px;"></div> | |
<div class="category-title" style="margin-left: -1px;"> | |
<?php } ?> | |
<div class="inner"> | |
<h2 class="page-title"><?php tribe_events_title(); ?></h2> | |
</div> | |
</div> | |
<div class="cb"></div> | |
<?php if( tribe_is_month() ) { // The Main Calendar Page ?> | |
<div class="seperator category full"></div> | |
<?php } else { ?> | |
<div class="seperator category" style="margin-left: -1px;"></div> | |
<?php } ?> | |
<div class="cb"></div> | |
<?php tribe_events_before_html() ?> | |
<?php if( tribe_is_month() ) { // The Main Calendar Page ?> | |
<div class="page-box-full"> | |
<div class="page-box-full-inner"> | |
<?php } else { ?> | |
<div class="page-box"> | |
<div class="page-box-inner"> | |
<?php } ?> | |
<?php include(tribe_get_current_template()); ?> | |
<div class="cb"></div></div> | |
<div class="cb"></div></div> | |
</div> | |
<div class="cb"></div> | |
</div> | |
<?php if( tribe_is_month() ) { // The Main Calendar Page ?> | |
<?php } else { ?> | |
<?php if (of_get_option('leftsidebar')!=1) get_template_part('sidebar'); ?> | |
<?php } ?> | |
<?php tribe_events_after_html() ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment