Created
June 26, 2013 20:58
-
-
Save adrianrodriguez/5871606 to your computer and use it in GitHub Desktop.
Single Event page using Code from plugin
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 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-single-template.php) in the events/ directory of your theme. | |
*/ | |
// Don't load directly | |
if ( !defined('ABSPATH') ) { die('-1'); } | |
?> | |
<?php get_header(); ?> | |
<div class="container" id="content-container"> | |
<div class="row content"> | |
<div class="eightcol left-column promo"> | |
<?php the_post(); global $post; ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<h2 class="title"><?php the_title(); ?></h2> | |
<?php include(tribe_get_current_template()); ?> | |
<?php edit_post_link(__('Edit','tribe-events-calendar'), '<span class="edit-link">', '</span>'); ?> | |
<!-- AddThis Button BEGIN --> | |
<div class="addthis_toolbox addthis_default_style "> | |
<a class="addthis_button_facebook"></a> | |
<a class="addthis_button_twitter"></a> | |
<a class="addthis_button_email last"></a> | |
</div> | |
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> | |
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5127966e2c3c352f"></script> | |
<!-- AddThis Button END --> | |
<div class="promo-container"> | |
<?php the_content(); ?> | |
<div class="promo-info" style="display: none"><?php the_field('rules'); ?></div> | |
</div> | |
</article> | |
</div> | |
<!-- end left-column --> | |
<div class="fourcol sidebar last"> | |
<div class="widget details"> | |
<h4>Details</h4> | |
<p class="promo-title"><?php the_title(); ?></p> | |
<ul> | |
<li> | |
<i class="icon-calendar"></i> | |
<p>Start Date: <?php the_time('D F d, Y'); ?></p> | |
</li> | |
<li> | |
<i class="icon-time"></i> | |
<p><?php the_field('promotion_time'); ?></p> | |
</li> | |
<li> | |
<i class="icon-file-alt"></i> | |
<p> | |
<a href="javascript:void(0);" class="rules-trigger">See Rules</a> | |
<a href="javascript:void(0);" class="close-trigger" style="display: none">Close Rules</a></p> | |
</li> | |
</ul> | |
<p><?php the_field('sidebar_details'); ?></p> | |
</div> | |
<?php get_sidebar(); ?> | |
</div> | |
<!-- end sidebar --> | |
</div> | |
<!-- end row.content --> | |
</div> | |
<!-- end content-container --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment