This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingle-dhrees-resource.php
66 lines (57 loc) · 1.97 KB
/
single-dhrees-resource.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
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package _s
*/
get_header(); ?>
<div id="primary" class="content-area">
<div class="single-page single-project"></div>
<main id="main" class="site-main dhrees-team-member-page" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php $subtitle = "RESOURCE";
$bottom_left_text = "";
$bottom_left_class = "";
include(locate_template( 'template-parts/split-hero.php') ); ?>
<div class="featured-project-container">
<div class="event-full-text-container">
<?php echo the_content();
endwhile; // End of the loop. ?>
</div>
</div>
<?php $post_objects = get_field('related_links'); ?>
<?php if( $post_objects ): ?>
<div class="related-posts">
<div class="related-posts-title">RELATED</div>
<!-- variable must be called $post -->
<?php foreach( $post_objects as $post): ?>
<?php setup_postdata($post); ?>
<a class="related-post" href="#<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endforeach; ?>
<?php wp_reset_postdata(); ?>
</div>
<?php endif; ?>
<?php $terms = get_field('tags'); ?>
<?php if($terms): ?>
<div class="tag-links">
<div class="tag-links-title">TAGS</div>
<?php foreach( $terms as $term ): ?>
<?php if( $term->name ): ?>
<a class="tag-link" href="#<?php echo get_term_link( $term );?>">
<span><?php echo $term->name; ?></span>
</a>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<!-- Parallelograms -->
<div class="clear-both"></div>
<div class="events-parallelograms">
<?php get_template_part( 'template-parts/contact-parallelograms', 'none' ); ?>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();