lukassmida
3/30/2017 - 6:19 PM

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

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

<?php
/**
 * The template for displaying a single event
 *
 * Please note that since 1.7, this template is not used by default. You can edit the 'event details'
 * by using the event-meta-event-single.php template.
 *
 * Or you can edit the entire single event template by creating a single-event.php template
 * in your theme. You can use this template as a guide.
 *
 * For a list of available functions (outputting dates, venue details etc) see http://codex.wp-event-organiser.com/
 *
 * @package Event Organiser (plug-in)
 * @since 1.0.0
 */

//Call the template header
get_header(); ?>

<div id="main-content">

  <?php while ( have_posts() ) : the_post(); ?>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-content">

        <!-- START Divi Page Title Global Section -->
        <?php //echo do_shortcode('[et_pb_section global_module="ID"][/et_pb_section]'); ?>
        <!-- END Divi Page Title Global 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">

                <!-- Get event information, see template: event-meta-event-single.php -->
                <?php eo_get_template_part( 'event-meta', 'event-single' ); ?>

                <!-- The content or the description of the event-->
                <?php the_content(); ?>

              </div><!-- .et_pb_text -->
            </div><!-- .et_pb_column -->
          </div><!-- .et_pb_row -->
        </div><!-- .et_pb_section -->
        <!-- END Custom Content Section -->

      </div><!-- .entry-content -->
    </article><!-- #post-<?php the_ID(); ?> -->			

  <?php endwhile; // end of the loop. ?>

</div><!-- #main-content -->

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