-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-event.php
70 lines (55 loc) · 2.06 KB
/
single-event.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?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/
*
***************** NOTICE: *****************
* Do not make changes to this file. Any changes made to this file
* will be overwritten if the plug-in is updated.
*
* To overwrite this template with your own, make a copy of it (with the same name)
* in your theme directory. See http://docs.wp-event-organiser.com/theme-integration for more information
*
* WordPress will automatically prioritise the template in your theme directory.
***************** NOTICE: *****************
*
* @package Event Organiser (plug-in)
* @since 1.0.0
*/
//Call the template header
get_header(); ?>
<?php get_template_part('pageheader'); ?>
<div class="container">
<!--<div id="primary">
<div id="content" role="main">-->
<div class="row">
<div class="col-lg-8">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Display event title -->
<h1 class="mb-0 entry-title"><?php the_title(); ?></h1>
<hr>
<div class="entry-content">
<!-- 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><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<div class="cls-post-footer d-print-none">
<?php get_template_part( 'sharing' ); ?>
</div>
<?php endwhile; // end of the loop. ?>
</div>
<div class="col-lg-4"><?php get_sidebar(); ?></div>
</div>
</div><!-- #content -->
<!-- Call template footer -->
<?php get_footer();