lukassmida
3/30/2017 - 2:35 PM

Event Organiser (3.1.8) - archive-event.php template for Divi (3.0.39)

Event Organiser (3.1.8) - archive-event.php template for Divi (3.0.39)

<?php
/**
 * The template for displaying lists of events
 *
 * Queries to do with events will default to this template if a more appropriate template cannot be found
 *
 * @package Event Organiser (plug-in)
 * @since 1.0.0
 */
 ?>

<!-- Call template header -->
<?php get_header(); ?>

<div id="main-content">
  <article>
    <div class="entry-content">

      <!-- START Custom Page Title Section -->
      <div class="et_pb_section page-title">
        <div class="et_pb_row">
          <div class="et_pb_column et_pb_column_4_4">
            <div class="et_pb_module et_pb_post_title et_pb_bg_layout_light">
              <div class="et_pb_title_container">	
                <h1 class="entry-title">
                  <?php if ( eo_is_event_archive( 'day' ) ) {
                    //Viewing date archive
                    echo __( 'Events: ','eventorganiser' ) . ' ' . eo_get_event_archive_date( 'F j, Y' );
                  } elseif ( eo_is_event_archive( 'month' ) ) {
                    //Viewing month archive
                    echo __( 'Events: ','eventorganiser' ) . ' ' . eo_get_event_archive_date( 'F Y' );
                  } elseif ( eo_is_event_archive( 'year' ) ) {
                    //Viewing year archive
                    echo __( 'Events: ','eventorganiser' ) . ' ' . eo_get_event_archive_date( 'Y' );
                  } else {
                    _e( 'Events', 'eventorganiser' );
                  } ?>
                </h1> <!-- .entry-title -->
              </div> <!-- .et_pb_title_container -->
            </div> <!-- .et_pb_post_title -->
          </div> <!-- .et_pb_column -->
        </div> <!-- .et_pb_row -->
      </div> <!-- .et_pb_section -->
      <!-- END Custom Page Title Section -->

      <!-- START Divi Global Section -->
      <?php //echo do_shortcode('[et_pb_section global_module="ID"][/et_pb_section]'); ?>
      <!-- END Divi Global Section -->

      <!-- START Custom Content Section (.event-section and .event-row are custom CSS classes) -->
      <div class="et_pb_section et_section_regular event-section">
        <div class="et_pb_row event-row">
          <div class="et_pb_column et_pb_column_4_4">
            <div class="et_pb_text et_pb_module et_pb_bg_layout_light et_pb_text_align_left">
              <?php eo_get_template_part( 'eo-loop-events' ); //Lists the events ?>
            </div><!-- .et_pb_text -->
          </div><!-- .et_pb_column -->
        </div><!-- .et_pb_row -->
      </div><!-- .et_pb_section -->
      <!-- END Custom Content Section -->

    </div><!-- .entry-content -->
  </article>
</div><!-- #main-content -->

<!-- Call template sidebar and footer -->
<?php //get_sidebar(); ?>
<?php get_footer(); ?>