forked from okfde/jh-lauch-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-exchange.php
43 lines (31 loc) · 874 Bytes
/
single-exchange.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
<?php
/**
* The template for displaying all single events
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Lauch
*/
get_header();
while ( have_posts() ) :
the_post(); ?>
<?php
if (get_field('is_current')) { ?>
<?php get_template_part( 'template-parts/current', 'exchange'); ?>
<div class="c-page-section pb-0">
<?php get_template_part( 'template-parts/support-cta', get_post_type() ); ?>
</div>
<?php } else { ?>
<?php get_template_part( 'template-parts/retro', 'exchange'); ?>
<div class="c-page-section pb-0 white">
<?php get_template_part( 'template-parts/support-cta', get_post_type() ); ?>
</div>
<?php
} ?>
<?php
endwhile; ?>
<script>
document.querySelector('html').style.setProperty("--event-single-color", "#e95197");
</script>
<?php
get_footer();