-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicyboard-page.php
79 lines (52 loc) · 1.85 KB
/
policyboard-page.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
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/*
Template Name: Policy Board
*/
get_header(); ?>
<div class="wrapper">
<h1 class="page-header"><?php the_title(); ?></h1>
<div class="policyboard-container">
<div class="about-board">
<p><?php the_field('about_the_board'); ?></p>
<a href="<?php the_field('board_pdf_file'); ?>"><?php the_field('board_pdf_text'); ?></a>
</div>
<a href="<?php the_field('board_pdf_file'); ?>"><img class="board" src="<?php the_field('board_image'); ?>" /></a>
</div><!-- policyboard-container -->
<div class="meetings-container">
<h1 class="page-header">Meetings</h1>
<div class="about-meetings">
<p><?php the_field('about_the_meetings'); ?></p>
</div>
<div class="table">
<div class="table-head">
<div class="column" data-label="Meeting Date">Date</div>
<div class="column" data-label="Agenda Files">Agenda</div>
<div class="column" data-label="Minutes Files">Minutes</div>
</div>
<?php
$args = array(
'post_type' => 'meetings',
'posts_per_page' => 6
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="row">
<div class="column" data-label="Meeting Date"><?php the_field('date_of_meeting'); ?></div>
<div class="column" data-label="Agenda Files">
<?php if( have_rows('agenda_files') ):
while ( have_rows('agenda_files') ) : the_row(); ?>
<a href="<?php the_sub_field('agenda_file_upload'); ?>"><?php the_sub_field('agenda_file_text'); ?></a>
<?php endwhile;
else :
endif; ?>
</div>
<div class="column" data-label="Minutes Files"><a href="<?php the_field('minutes_file_upload'); ?>"><?php the_field('minutes_file_text'); ?></a></div>
</div>
<?php endwhile; ?>
</div><!-- table -->
</div><!-- meetings-container -->
<div class="project-archive-nav">
<a href="/?page_id=150">All Meetings ></a>
</div>
</div><!-- wrapper -->
<?php get_footer(); ?>