-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-news.php
54 lines (42 loc) · 1.38 KB
/
page-news.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
<?php
/**
* The template for displaying the News page
*
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package saga
*/
get_header();
?>
<?php
$member_news_text_area = get_field('member_news_text_area');
while ( have_posts() ) : the_post(); ?>
<div class="page-heading-wrapper">
<h1 class="page-heading"><?php the_title(); ?></h1>
<div class="accent-strip"></div>
</div>
<main id="news" class="site-main">
<div id="new-members-slideshow">
<div class="slideshow-container">
<?php echo do_shortcode('[metaslider id="6048"]'); ?>
</div>
<h2 class="new-members-heading">Welcome to our new members!</h2>
</div>
<div class="accent-strip"></div>
<div class="member-news-text-area">
<?php echo $member_news_text_area ?>
</div>
<!-- View selector -->
<div class="view-selector view-selector-single">
<p id="member-news" class="view-option bold">Member News</p>
<p id="instagram" class="view-option">Latest Posts</p>
<p id="in-memoriam" class="view-option">In Memoriam</p>
</div>
<div class="news-items">
<?php the_content(); ?>
</div>
</main>
<?php endwhile; ?>
<?php
get_footer();