Created
May 30, 2012 23:17
-
-
Save jo-snips/2839507 to your computer and use it in GitHub Desktop.
The Events Calendar: ecp-single-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 | |
// Don't load directly | |
if ( !defined('ABSPATH') ) { die('-1'); } | |
?> | |
<?php get_header(); ?> | |
<?php get_template_part("subheader"); ?> | |
<?php if (of_get_option('leftsidebar')==1) get_template_part('sidebarleft'); ?> | |
<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 if (have_posts()) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<div class="ktpost <?php if ( has_post_thumbnail() ) { ?>withimage<?php } ?>"> | |
<div class="seperator category" style="margin-left: -1px;"></div> | |
<div class="category-title" style="margin-left: -1px;"> | |
<div class="inner"> | |
<h2 class="page-title"><?php the_title(); ?></h2> | |
</div> | |
</div> | |
<div class="cb"></div> | |
<div class="seperator category" style="margin-left: -1px;"></div> | |
<div class="cb"></div> | |
<div class="page-box"> | |
<div class="page-box-inner"> | |
<?php include(tribe_get_current_template()) ?> | |
<?php edit_post_link(__('Edit','tribe-events-calendar'), '<span class="edit-link">', '</span>'); ?> | |
<div class="cb"></div></div> | |
<div class="cb"></div></div> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<h2><?php _e( 'Not Found', 'karmathemes' ); ?></h2> | |
<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'karmathemes' ); ?></p><br /> | |
<ul> | |
<li class="search"> | |
<form class="searchform" method="get" action="index.php"> | |
<div> | |
<input type="text" onclick="this.value=' '" name="s" class="s" size="15" value="<?php _e('search here', 'karmathemes'); ?>"/> | |
<input type="submit" style="cursor: pointer; cursor: hand;" class="submit" value="<?php _e('OK', 'karmathemes'); ?>" /> | |
</div> | |
</form> | |
</li> | |
</ul> | |
<?php endif; ?> | |
<!-- //the loop --> | |
<div class="cb"></div> | |
</div> | |
<div class="cb"></div> | |
</div> | |
<?php if (of_get_option('leftsidebar')!=1) get_template_part('sidebar'); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment