-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-event.php
More file actions
37 lines (29 loc) · 1.08 KB
/
single-event.php
File metadata and controls
37 lines (29 loc) · 1.08 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
<?php get_header();
while (have_posts()) {
the_post();
pageBanner(); ?>
<div class="container container--narrow page-section">
<div class="metabox metabox--position-up metabox--with-home-link">
<p>
<a class="metabox__blog-home-link" href="<?php echo get_post_type_archive_link( 'event' ) ?>"><i class="fa fa-home" aria-hidden="true"></i> Back to Events Home</a> <span class="metabox__main"><?php the_title(); ?></span>
</p>
</div>
<div class="generic-content">
<?php the_content(); ?>
</div>
<?php
$relatedPrograms = get_field('related_programs');
if ($relatedPrograms) { ?>
<hr class="section-break">
<h2 class="headline headline--medium"> Related Program(s)</h2>
<?php
echo '<ul class="link-list min-list">';
foreach ($relatedPrograms as $program) { ?>
<li><a href="<?php echo get_the_permalink($program); ?>"><?php echo get_the_title($program); ?></a></li>
<?php }} ?>
</ul>
</div>
<?php
}
get_footer();
?>