-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-event.php
More file actions
48 lines (40 loc) · 1.42 KB
/
single-event.php
File metadata and controls
48 lines (40 loc) · 1.42 KB
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
<?php
/**
* General page template
*/
get_header();
$Event = new Event();
$postId = null;
$eventDisplayDiscussion = null;
$eventStartDate = null;
?>
<div class="site-content">
<?php
while ( have_posts() )
{
the_post();
if( null !== $post->ID && null === $postId )
{
$postId = $post->ID;
}
if( null !== get_field('event_display_discussions') && null === $eventDisplayDiscussion )
{
$eventDisplayDiscussion = get_field('event_display_discussions');
}
include HBSC_PATH . 'partials/events/details-section.php';
// DISCUSSION LEADERS
include HBSC_PATH . 'partials/events/discussion-leaders-section.php';
// ONLINE DISCUSSION
include HBSC_PATH . 'partials/events/online-discussion-section.php';
}
// UPCOMING SALONS
$upcomingEventsSectionConfig = array(
'classes' => 'module--events-upcoming-inline u-bg-white',
'direction' => 'inline',
// Looking for upcoming events, based on today's date
'start_date' => date('Y-m-d') . ' 00:00:00'
);
include HBSC_PATH . 'partials/events/upcoming-section.php';
?>
</div>
<?php get_footer(); ?>