-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
69 lines (69 loc) · 3.59 KB
/
sidebar.php
File metadata and controls
69 lines (69 loc) · 3.59 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
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
<?php disallow_direct_load('sidebar.php');?>
<aside class="sidebar">
<div class="well">
<h3>Next Board Meeting</h3>
<?php $next_meeting = get_next_meeting(); if ( $next_meeting ) : ?>
<div class="row">
<div class="col-md-1">
<span style="margin-top: 10px;" class="fa fa-calendar"></span>
</div>
<div class="col-md-10">
<h4><?php echo $next_meeting->metadata['ucf_meeting_date']->format( 'F j, Y' ); ?></h4>
<time><?php echo $next_meeting->metadata['ucf_meeting_start_time']; ?> - <?php echo $next_meeting->metadata['ucf_meeting_end_time']; ?></time>
<p class="my-1"><?php echo $next_meeting->metadata['ucf_meeting_location']; ?></p>
<?php if ( $next_meeting->metadata['ucf_meeting_agenda'] ) : $file_url = wp_get_attachment_url( $next_meeting->metadata['ucf_meeting_agenda'] ); ?>
<p class="mb-0"><a class="document" href="<?php echo $file_url; ?>" target="_blank">View Agenda</a></li>
<?php endif ; ?>
<?php if ( $next_meeting->metadata['ucf_meeting_video'] ) : ?>
<p class="mt-1 mb-0"><a class="document" href="<?php echo $next_meeting->metadata['ucf_meeting_video']; ?>" target="_blank">View Livestream</a></p>
<?php endif; ?>
</div>
</div>
<?php else: ?>
<p>No Upcoming Meetings</p>
<?php endif; ?>
</div>
<div class="well">
<h3>Latest Board Minutes</h3>
<?php $minutes = get_latest_meeting_minutes(); if ( $minutes && ! empty( $minutes['file'] ) ) : ?>
<a href="<?php echo $minutes['file']; ?>" class="document latest-board-minutes"><?php echo $minutes['name']; ?></a>
<?php else : ?>
<p class="mb-0">No Minutes Available for Latest Meeting</p>
<?php endif; ?>
</div>
<div class="well">
<h3>Special Meeting</h3>
<?php $special_meeting = get_next_special_meeting(); if ( $special_meeting ) : ?>
<div class="row">
<div class="col-md-1">
<span style="margin-top: 10px;" class="fa fa-calendar"></span>
</div>
<div class="col-md-10">
<h4><?php echo $special_meeting->metadata['ucf_meeting_date']->format( 'F j, Y' ); ?></h4>
<time><?php echo $special_meeting->metadata['ucf_meeting_start_time']; ?> - <?php echo $special_meeting->metadata['ucf_meeting_end_time']; ?></time>
<p class="my-1"><?php echo $special_meeting->metadata['ucf_meeting_location']; ?></p>
<?php if ( isset( $special_meeting->metadata['ucf_meeting_special_name'] ) && ! empty( $special_meeting->metadata['ucf_meeting_special_name'] ) ) : ?>
<p class="my-1"><em><?php echo $special_meeting->metadata['ucf_meeting_special_name']; ?></em></p>
<?php endif; ?>
<?php if ( isset( $special_meeting->metadata['ucf_meeting_agenda'] ) && ! empty( $special_meeting->metadata['ucf_meeting_agenda'] ) ) :
$special_meeting_agenda = wp_get_attachment_url( $special_meeting->metadata['ucf_meeting_agenda'] );
?>
<p class="mb-0"><a class="document" href="<?php echo $special_meeting_agenda; ?>" target="_blank">View Agenda</a></p>
<?php endif; ?>
<?php if ( isset( $special_meeting->metadata['ucf_meeting_video'] ) && ! empty( $special_meeting->metadata['ucf_meeting_video'] ) ) : ?>
<p class="mt-1 mb-0"><a class="document" href="<?php echo $special_meeting->metadata['ucf_meeting_video']; ?>" target="_blank">View Livestream</a></p>
<?php endif; ?>
</div>
</div>
<?php else: ?>
<p>No Upcoming Special Meetings</p>
<?php endif; ?>
</div>
<?php $committees = get_terms( array( 'people_group' ) ); ?>
<h2>Committees</h2>
<ul class="list-gold-arrow">
<?php foreach( $committees as $committee ) : ?>
<li><a href="<?php echo get_committee_url( $committee ); ?>"><?php echo $committee->name; ?></a></li>
<?php endforeach; ?>
</ul>
</aside>