Example #1
0
    	<div class="col-md-8">
            <!-- <div id="primary" role="main" class="content-area"> -->
            
                	<!-- Page header-->
                    <h2 class="chesterRed entry">
                    
                    <?php 
if (eo_is_event_archive('day')) {
    //Viewing date archive
    echo __('Galas: ', 'eventorganiser') . ' ' . eo_get_event_archive_date('jS F Y');
} elseif (eo_is_event_archive('month')) {
    //Viewing month archive
    echo __('Galas: ', 'eventorganiser') . ' ' . eo_get_event_archive_date('F Y');
} elseif (eo_is_event_archive('year')) {
    //Viewing year archive
    echo __('Galas: ', 'eventorganiser') . ' ' . eo_get_event_archive_date('Y');
} else {
    _e('Galas', 'eventorganiser');
}
?>
                    </h2>

<hr>
                    
					<?php 
eo_get_template_part('eo-loop-events');
//Lists the events
?>
            
            </div><!-- #primary -->
    
get_header();
?>
<div class="row collapse">
  <?php 
get_template_part('parts/agenda_sidebar');
?>
  <div class="row uncollapse small-collapse">
    <div id="agenda-container" class="small-12 large-9 columns" role="main">
      
      <?php 
if (have_posts()) {
    ?>

      <button class='offcanvas-opener show-for-medium-down left-off-canvas-toggle'>Filter öffnen</button>
      <h1 class="agenda-dateheader"><?php 
    echo 'Events am ' . eo_get_event_archive_date('l j. F');
    ?>
</h1>
      <div class="agenda">
        <div id="sorts" class="table-head table-row button-group">
          <div class="sort-button table-col table-event" data-sort-value="name">Event</div>
          <div class="sort-button table-col table-location" data-sort-value="location">Location</div>
          <div class="sort-button table-col table-eventart" data-sort-value="eventart">Event-Art</div>
          <div class="sort-button table-col table-genre" data-sort-value="genre">Genre</div>
          <div class="sort-button table-col table-datum selected" data-sort-value="datum">Zeit</div>
          <div class="sort-button table-col table-region" data-sort-value="region">Region</div>
        </div>
      </div>
      <ul id="agenda-isotope" class="agenda">
        <?php 
    while (have_posts()) {
 public function testOndateSlug()
 {
     global $wp_rewrite;
     update_option('permalink_structure', '/%year%/%monthnum%/%day%/%postname%/');
     $options = eventorganiser_get_option(false);
     $options['url_on'] = 'events-on';
     update_option('eventorganiser_options', $options);
     eventorganiser_cpt_register();
     $GLOBALS['wp_rewrite']->init();
     flush_rewrite_rules();
     $this->go_to(eo_get_event_archive_link(2014, 03));
     $this->assertTrue(eo_is_event_archive('month'));
     $this->assertEquals('2014-03-01', eo_get_event_archive_date('Y-m-d'));
     $this->assertEquals('http://example.org/events/event/events-on/2014/03', eo_get_event_archive_link(2014, 03));
 }