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_true' );
- //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
- global $post;
- $event = EEH_Event_View::get_event();
- $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_archive() ) : ?>
- <div class="kgm-single-course-box">
- <div class="kgm-course-title">
- <?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
- </div>
- <div class="kgm-course-details">
- <?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
- <?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
- <?php $keyvalue2 = get_post_meta( get_the_ID(), 'Ages', true );
- // Check if the custom field has a value.
- if ( ! empty( $keyvalue2 ) ) {
- echo 'Ages: ' , $keyvalue2;
- } ?>
- </div>
- <div id="espresso-event-thumbnail" class="kgm-course-thumbnail">
- <?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
- </div>
- <div class="kgm-course-desc">
- <?php $event->description(); ?>
- <div class="kgm-course-register-bttn"><?php espresso_view_details_btn($event); ?></div>
- <?php $keyvalue = get_post_meta( get_the_ID(), 'Barcode', true );
- // Check if the custom field has a value.
- if ( ! empty( $keyvalue ) ) {
- echo 'Barcode: ' , $keyvalue;
- } ?>
- </div>
- </div>
- <?php endif; ?>
- </article>
- <!-- #post -->
- <?php do_action( 'AHEE_event_details_after_post', $post );
Add Comment
Please, Sign In to add comment