Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <div class="entry-meta eventorganiser-event-meta">
  2.  
  3. <!-- Does the event have a venue? -->
  4. <?php if( eo_get_venue() ): ?>
  5. <!-- Display map -->
  6. <div class="eo-event-venue-map">
  7. <?php echo eo_get_venue_map(eo_get_venue(),array('width'=>'100%','height'=>'375px')); ?>
  8. </div>
  9. <?php endif; ?>
  10. <div style="clear:both"></div>
  11.  
  12. <div class="left" style="width: 35%;">
  13. <h3>Date/Time</h3>
  14. <p> <!-- Choose a different date format depending on whether we want to include time -->
  15. <?php if( eo_is_all_day() ){
  16. $date_format = 'j F Y';
  17. }else{
  18. $date_format = 'j F Y ' . get_option('time_format');
  19. } ?>
  20.  
  21. <?php if( !eo_reoccurs() ){ ?>
  22. <!-- Single event -->
  23. <?php eo_the_start($date_format); ?>
  24. <?php } ?>
  25. </p>
  26.  
  27. <h3>Address</h3>
  28. <?php if( eo_get_venue() ){
  29. $tax = get_taxonomy( 'event-venue' ); ?>
  30. <p><?php eo_venue_name(); ?><br/>
  31. <?php $address = array_filter( eo_get_venue_address() );
  32. echo $address['address'] . '<br />';
  33. echo $address['city'] . '<br />';
  34. echo $address['state'] . '<br />';
  35. echo $address['country']; ?></p>
  36. <?php } ?>
  37. <h3>With any questions related to this event, please contact:</h3>
  38. <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 />
  39. <?php $user_email = get_the_author_meta( 'user_email' ); ?>
  40. <a href="mailto:<?php $user_email = the_author_meta( 'user_email' ); ?>">
  41. <?php $user_email = the_author_meta( 'user_email' ); ?>
  42. </a>
  43. </p>
  44. </div><!-- / .left -->
  45.  
  46. <div class="right" style="width: 65%;">
  47.  
  48. <h3>Event Details</h3>
  49. <!-- The content or the description of the event-->
  50. <?php the_content(); ?>
  51.  
  52. <h3>Name(s) of the speakers</h3>
  53. <p><?php if ( get_post_meta( get_the_ID(), 'namesofthespeakers', true ) ) : ?>
  54. <?php echo get_post_meta( get_the_ID(), 'namesofthespeakers', true ); ?>
  55. <?php endif; ?></p>
  56.  
  57. <?php do_action( 'eventorganiser_additional_event_meta' ) ?>
  58.  
  59. <p><strong>Will there be a Show-and-Tell Lounge?</strong><br />
  60. <?php if ( get_post_meta( get_the_ID(), 'willtherebeashow-and-telllounge', true ) ) : ?>
  61. <?php echo get_post_meta( get_the_ID(), 'willtherebeashow-and-telllounge', true ); ?>
  62. <?php endif; ?></p>
  63.  
  64. <p><strong>Are men welcome at the event?</strong><br />
  65. <?php if ( get_post_meta( get_the_ID(), 'aremenwelcome', true ) ) : ?>
  66. <?php echo get_post_meta( get_the_ID(), 'aremenwelcome', true ); ?>
  67. <?php endif; ?></p>
  68.  
  69. <p><strong>Is the event free to attend?</strong><br />
  70. <?php if ( get_post_meta( get_the_ID(), 'iseventfreetoattend', true ) ) : ?>
  71. <?php echo get_post_meta( get_the_ID(), 'iseventfreetoattend', true ); ?>
  72. <?php endif; ?></p>
  73.  
  74. <p><strong>Will refreshments be offered?</strong><br />
  75. <?php if ( get_post_meta( get_the_ID(), 'willrefreshmentsbeoffered', true ) ) : ?>
  76. <?php echo get_post_meta( get_the_ID(), 'willrefreshmentsbeoffered', true ); ?>
  77. <?php endif; ?></p>
  78.  
  79. <p><strong>Website:</strong><br />
  80. <?php if ( get_post_meta( get_the_ID(), 'linktoyourwebsite', true ) ) : ?>
  81. <?php echo esc_url( get_post_meta( get_the_ID(), 'linktoyourwebsite', true ) ); ?>
  82. <?php endif; ?>
  83. </p>
  84.  
  85. </div><!-- / .right -->
  86.  
  87. <div class="clear"> </div>
  88. <p style="margin: 20px 0;">
  89. <img src="<?php echo get_post_meta( get_the_ID(), 'thumbnail', true ); ?>" alt="<?php the_title(); ?>" />
  90. </p>
  91.  
  92. <div class="left">
  93. <h3>Register for This Event</h3>
  94. booking form goes here
  95. </div>
  96.  
  97.  
  98. <!-- Is event recurring or a single event -->
  99. <?php if( eo_reoccurs() ):?>
  100. <!-- Event reoccurs - is there a next occurrence? -->
  101. <?php $next = eo_get_next_occurrence($date_format);?>
  102.  
  103. <?php if($next): ?>
  104. <!-- If the event is occurring again in the future, display the date -->
  105. <?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);?>
  106.  
  107. <?php else: ?>
  108. <!-- Otherwise the event has finished (no more occurrences) -->
  109. <?php printf('<p>'.__('This event finished on %s','eventorganiser').'.</p>', eo_get_schedule_last('d F Y',''));?>
  110. <?php endif; ?>
  111. <?php endif; ?>
  112.  
  113. </div><!-- .entry-meta -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement