Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*header removed*/
- <?php $venue_id = get_queried_object_id(); ?>
- <?php echo eo_get_venue_map( $venue_id, array('width'=>"100%") ); ?>
- <div class="container">
- <section id="venue">
- <h1><?php echo eo_get_venue_name($venue_id); ?></h1>
- <div class="location">
- <?php
- $venue_name = eo_get_venue_name($venue_id);
- $address_details = eo_get_venue_address($venue_id);
- echo $address_details["address"].", ".$address_details["city"].", ".$address_details["state"];
- ?>
- </div>
- </section>
- <section>
- <div class="news-box">
- <div class="title">
- <span>Aktuální události</span>
- </div>
- <?php
- $current_event = eo_get_venue_slug($venue_id);
- $events = eo_get_events(array(
- 'event-venue' => $current_event,
- 'event_start_after' => 'today',
- ));
- if ($events) : foreach( $events as $post ) :
- setup_postdata( $post );
- ?>
- <article>
- <div class="dateinfo">
- <div class="month"><?php eo_the_start('F'); ?></div>
- <div class="day"><?php eo_the_start('d'); ?></div>
- </div>
- <div class="inner">
- <h1><?php the_title(); ?></h1>
- <?php the_content(); ?>
- <div class="bottom">
- <div class="category"><i class="fa fa-folder-o"></i> <?php echo get_the_term_list( get_the_ID(),'event-category', '', ', ', '' ); ?></div>
- <div class="date">
- <?php
- if ( !eo_is_all_day() ) {
- echo ' <i class="fa fa-clock-o"></i> ';
- eo_the_start('G:i');
- echo ' - ';
- eo_the_end('G:i');
- }
- ?>
- </div>
- </div>
- </div>
- </article>
- <?php wp_reset_postdata(); endforeach; endif; ?>
- </div>
- <div class="news-box gray">
- <div class="title">
- <span>Události, které již skončili</span>
- </div>
- <?php
- $old_events = eo_get_events(array(
- 'event-venue' => $current_event,
- 'event_end_before' => 'yesterday',
- 'event_start_after' => 'last month',
- ));
- if ($old_events) : foreach( $old_events as $post ) :
- setup_postdata( $post );
- ?>
- <article>
- <div class="dateinfo">
- <div class="month"><?php eo_the_start('F'); ?></div>
- <div class="day"><?php eo_the_start('d'); ?></div>
- </div>
- <div class="inner">
- <h1><?php the_title(); ?></h1>
- <?php the_content(); ?>
- <div class="bottom">
- <div class="category"><i class="fa fa-folder-o"></i> <?php echo get_the_term_list( get_the_ID(),'event-category', '', ', ', '' ); ?></div>
- <div class="date">
- <?php
- if ( !eo_is_all_day() ) {
- echo ' <i class="fa fa-clock-o"></i> ';
- eo_the_start('G:i');
- echo ' - ';
- eo_the_end('G:i');
- }
- ?>
- </div>
- </div>
- </div>
- </article>
- <?php wp_reset_postdata(); endforeach; endif; ?>
- </div>
- </section>
- <div class="clearer"></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment