Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This template will display a single event - copy it to your theme folder
- *
- * @ package Event Espresso
- * @ author Seth Shoultes
- * @ copyright (c) 2008-2013 Event Espresso All Rights Reserved.
- * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing *
- * @ link http://www.eventespresso.com
- * @ version 4+
- */
- /*************************** IMPORTANT *************************
- * if you are creating a custom template based on this file,
- * and do not wish to use the template display order controls in the admin,
- * then change the following filter to:
- * add_filter( 'FHEE__content_espresso_events__template_loaded', '__return_true' );
- * comment out calls to the_content() and espresso_event_content_or_excerpt()
- * then UN-comment and position the additional template parts
- * that are loaded via the espresso_get_template_part() function to your liking
- * and/or use any of the template tags functions found in:
- * \wp-content\plugins\event-espresso-core\public\template_tags.php
- ************************** IMPORTANT **************************/
- add_filter( 'FHEE__content_espresso_events__template_loaded', '__return_false' );
- //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
- global $post;
- $event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
- $event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class );
- ?>
- <?php do_action( 'AHEE_event_details_before_post', $post ); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>
- <?php if ( is_single() ) : ?>
- <div id="espresso-event-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
- <?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
- <?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
- </div>
- <div class="espresso-event-wrapper-dv">
- <?php the_content(); ?>
- <?php //espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
- <?php //espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
- <?php //espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
- <?php //espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
- <footer class="event-meta">
- <?php do_action( 'AHEE_event_details_footer_top', $post ); ?>
- <?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?>
- </footer>
- </div>
- <?php elseif ( is_archive() ) : ?>
- <div class="espresso-event-list-header-dv-<?php echo $post->ID;?> vc_row wpb_row vc_row-fluid mkd-section mkd-content-aligment-left" style="">
- <div class="clearfix mkd-full-section-inner">
- <div class="wpb_column vc_column_container vc_col-sm-4">
- <div class="vc_column-inner ">
- <div class="wpb_wrapper">
- <?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
- </div>
- </div>
- </div>
- <div class="wpb_column vc_column_container vc_col-sm-8">
- <div class="vc_column-inner ">
- <div class="wpb_wrapper">
- <?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
- <div class="mkd-section-subtitle-holder mkd-section-subtitle-left" style="">
- <p style="text-align: left; font-weight:lighter;" class="mkd-section-subtitle"><?php if ( is_archive() && has_excerpt( $post->ID )): echo get_the_excerpt(); endif;?></p>
- </div>
- <div class="mkd-section-subtitle-holder mkd-section-subtitle-left" style="">
- <h4 style="text-align: left" class="mkd-section-subtitle"><?php echo '<strong>Venue: </strong>'; espresso_venue_name(); ?></h4>
- </div>
- <div class="mkd-section-subtitle-holder mkd-section-subtitle-left" style="">
- <p style="text-align: left" class="mkd-section-subtitle"><?php echo 'Entry Fee(s): '. espresso_event_tickets_available(); ?></p>
- </div>
- <a href="<?php the_permalink(); ?>" target="_self" class="mkd-btn mkd-btn-small mkd-btn-gradient mkd-btn-fill-from-top mkd-btn-with-animation mkd-type1-gradient-left-to-right-2x mkd-btn-hover-outline"> <span class="mkd-btn-text">Register Now</span> <span class="mkd-btn-helper"></span> </a></div>
- </div>
- </div>
- </div>
- </div>
- <?php endif; ?>
- </article>
- <!-- #post -->
- <?php do_action( 'AHEE_event_details_after_post', $post );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement