Guest User

Untitled

a guest
Apr 25th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.54 KB | None | 0 0
  1. /*header removed*/
  2.  
  3.         <?php $venue_id = get_queried_object_id(); ?>
  4.  
  5.         <?php echo eo_get_venue_map( $venue_id, array('width'=>"100%") ); ?>
  6.  
  7.         <div class="container">
  8.  
  9.             <section id="venue">
  10.                
  11.                 <h1><?php echo eo_get_venue_name($venue_id); ?></h1>
  12.  
  13.                 <div class="location">
  14.  
  15.                     <?php
  16.                     $venue_name      = eo_get_venue_name($venue_id);
  17.                     $address_details = eo_get_venue_address($venue_id);
  18.  
  19.                     echo $address_details["address"].", ".$address_details["city"].", ".$address_details["state"];
  20.                     ?>
  21.  
  22.                 </div>
  23.  
  24.             </section>
  25.  
  26.             <section>
  27.  
  28.                 <div class="news-box">
  29.  
  30.                     <div class="title">
  31.                         <span>Aktuální události</span>
  32.                     </div>
  33.  
  34.                     <?php
  35.  
  36.                     $current_event = eo_get_venue_slug($venue_id);
  37.  
  38.                     $events = eo_get_events(array(
  39.                          'event-venue' => $current_event,
  40.                          'event_start_after' => 'today',
  41.                     ));
  42.  
  43.                     if ($events) : foreach( $events as $post ) :
  44.  
  45.                         setup_postdata( $post );
  46.  
  47.                     ?>
  48.  
  49.                     <article>
  50.  
  51.                         <div class="dateinfo">
  52.                             <div class="month"><?php eo_the_start('F'); ?></div>
  53.                             <div class="day"><?php eo_the_start('d'); ?></div>
  54.                         </div>
  55.  
  56.                         <div class="inner">
  57.  
  58.                             <h1><?php the_title(); ?></h1>
  59.  
  60.                             <?php the_content(); ?>
  61.  
  62.                             <div class="bottom">
  63.  
  64.                                 <div class="category"><i class="fa fa-folder-o"></i> <?php echo get_the_term_list( get_the_ID(),'event-category', '', ', ', '' ); ?></div>
  65.  
  66.                                 <div class="date">
  67.  
  68.                                     <?php
  69.  
  70.                                         if ( !eo_is_all_day() ) {
  71.                                             echo ' <i class="fa fa-clock-o"></i> ';
  72.                                             eo_the_start('G:i');
  73.                                             echo ' - ';
  74.                                             eo_the_end('G:i');
  75.                                         }
  76.  
  77.                                     ?>
  78.  
  79.                                 </div>
  80.  
  81.                             </div>
  82.  
  83.                         </div>
  84.  
  85.                     </article>
  86.  
  87.                     <?php wp_reset_postdata(); endforeach; endif; ?>  
  88.  
  89.                 </div>
  90.  
  91.                 <div class="news-box gray">
  92.  
  93.                     <div class="title">
  94.                         <span>Události, které již skončili</span>
  95.                     </div>
  96.  
  97.                     <?php
  98.  
  99.                     $old_events = eo_get_events(array(
  100.                          'event-venue' => $current_event,
  101.                          'event_end_before' => 'yesterday',
  102.                          'event_start_after' => 'last month',
  103.                     ));
  104.  
  105.                     if ($old_events) : foreach( $old_events as $post ) :
  106.  
  107.                         setup_postdata( $post );
  108.  
  109.                     ?>
  110.  
  111.                     <article>
  112.  
  113.                         <div class="dateinfo">
  114.                             <div class="month"><?php eo_the_start('F'); ?></div>
  115.                             <div class="day"><?php eo_the_start('d'); ?></div>
  116.                         </div>
  117.  
  118.                         <div class="inner">
  119.  
  120.                             <h1><?php the_title(); ?></h1>
  121.  
  122.                             <?php the_content(); ?>
  123.  
  124.                             <div class="bottom">
  125.  
  126.                                 <div class="category"><i class="fa fa-folder-o"></i> <?php echo get_the_term_list( get_the_ID(),'event-category', '', ', ', '' ); ?></div>
  127.  
  128.                                 <div class="date">
  129.  
  130.                                     <?php
  131.  
  132.                                         if ( !eo_is_all_day() ) {
  133.                                             echo ' <i class="fa fa-clock-o"></i> ';
  134.                                             eo_the_start('G:i');
  135.                                             echo ' - ';
  136.                                             eo_the_end('G:i');
  137.                                         }
  138.  
  139.                                     ?>
  140.  
  141.                                 </div>
  142.  
  143.                             </div>
  144.  
  145.                         </div>
  146.  
  147.                     </article>
  148.  
  149.                     <?php wp_reset_postdata(); endforeach; endif; ?>  
  150.  
  151.                 </div>
  152.  
  153.             </section>
  154.  
  155.             <div class="clearer"></div>
  156.  
  157.         <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment