Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="entry-meta eventorganiser-event-meta">
- <!-- Does the event have a venue? -->
- <?php if( eo_get_venue() ): ?>
- <!-- Display map -->
- <div class="eo-event-venue-map">
- <?php echo eo_get_venue_map(eo_get_venue(),array('width'=>'100%','height'=>'375px')); ?>
- </div>
- <?php endif; ?>
- <div style="clear:both"></div>
- <div class="left" style="width: 35%;">
- <h3>Date/Time</h3>
- <p> <!-- Choose a different date format depending on whether we want to include time -->
- <?php if( eo_is_all_day() ){
- $date_format = 'j F Y';
- }else{
- $date_format = 'j F Y ' . get_option('time_format');
- } ?>
- <?php if( !eo_reoccurs() ){ ?>
- <!-- Single event -->
- <?php eo_the_start($date_format); ?>
- <?php } ?>
- </p>
- <h3>Address</h3>
- <?php if( eo_get_venue() ){
- $tax = get_taxonomy( 'event-venue' ); ?>
- <p><?php eo_venue_name(); ?><br/>
- <?php $address = array_filter( eo_get_venue_address() );
- echo $address['address'] . '<br />';
- echo $address['city'] . '<br />';
- echo $address['state'] . '<br />';
- echo $address['country']; ?></p>
- <?php } ?>
- <h3>With any questions related to this event, please contact:</h3>
- <p><?php $user_email = get_the_author_meta( 'first_name' ); ?><?php $first_name = the_author_meta( 'first_name' ); ?> <?php $last_name = get_the_author_meta( 'last_name' ); ?><br />
- <?php $user_email = get_the_author_meta( 'user_email' ); ?>
- <a href="mailto:<?php $user_email = the_author_meta( 'user_email' ); ?>">
- <?php $user_email = the_author_meta( 'user_email' ); ?>
- </a>
- </p>
- </div><!-- / .left -->
- <div class="right" style="width: 65%;">
- <h3>Event Details</h3>
- <!-- The content or the description of the event-->
- <?php the_content(); ?>
- <h3>Name(s) of the speakers</h3>
- <p><?php if ( get_post_meta( get_the_ID(), 'namesofthespeakers', true ) ) : ?>
- <?php echo get_post_meta( get_the_ID(), 'namesofthespeakers', true ); ?>
- <?php endif; ?></p>
- <?php do_action( 'eventorganiser_additional_event_meta' ) ?>
- <p><strong>Will there be a Show-and-Tell Lounge?</strong><br />
- <?php if ( get_post_meta( get_the_ID(), 'willtherebeashow-and-telllounge', true ) ) : ?>
- <?php echo get_post_meta( get_the_ID(), 'willtherebeashow-and-telllounge', true ); ?>
- <?php endif; ?></p>
- <p><strong>Are men welcome at the event?</strong><br />
- <?php if ( get_post_meta( get_the_ID(), 'aremenwelcome', true ) ) : ?>
- <?php echo get_post_meta( get_the_ID(), 'aremenwelcome', true ); ?>
- <?php endif; ?></p>
- <p><strong>Is the event free to attend?</strong><br />
- <?php if ( get_post_meta( get_the_ID(), 'iseventfreetoattend', true ) ) : ?>
- <?php echo get_post_meta( get_the_ID(), 'iseventfreetoattend', true ); ?>
- <?php endif; ?></p>
- <p><strong>Will refreshments be offered?</strong><br />
- <?php if ( get_post_meta( get_the_ID(), 'willrefreshmentsbeoffered', true ) ) : ?>
- <?php echo get_post_meta( get_the_ID(), 'willrefreshmentsbeoffered', true ); ?>
- <?php endif; ?></p>
- <p><strong>Website:</strong><br />
- <?php if ( get_post_meta( get_the_ID(), 'linktoyourwebsite', true ) ) : ?>
- <?php echo esc_url( get_post_meta( get_the_ID(), 'linktoyourwebsite', true ) ); ?>
- <?php endif; ?>
- </p>
- </div><!-- / .right -->
- <div class="clear"> </div>
- <p style="margin: 20px 0;">
- <img src="<?php echo get_post_meta( get_the_ID(), 'thumbnail', true ); ?>" alt="<?php the_title(); ?>" />
- </p>
- <div class="left">
- <h3>Register for This Event</h3>
- booking form goes here
- </div>
- <!-- Is event recurring or a single event -->
- <?php if( eo_reoccurs() ):?>
- <!-- Event reoccurs - is there a next occurrence? -->
- <?php $next = eo_get_next_occurrence($date_format);?>
- <?php if($next): ?>
- <!-- If the event is occurring again in the future, display the date -->
- <?php printf('<p>'.__('This event is running from %1$s until %2$s. It is next occurring on %3$s','eventorganiser').'.</p>', eo_get_schedule_start('j F Y'), eo_get_schedule_last('j F Y'), $next);?>
- <?php else: ?>
- <!-- Otherwise the event has finished (no more occurrences) -->
- <?php printf('<p>'.__('This event finished on %s','eventorganiser').'.</p>', eo_get_schedule_last('d F Y',''));?>
- <?php endif; ?>
- <?php endif; ?>
- </div><!-- .entry-meta -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement