-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtemplate-event-calendar.php
42 lines (34 loc) · 1.38 KB
/
template-event-calendar.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
<?php
/* Template Name: Event Calendar */
get_header();
get_template_part("parts/navigation/breadcrumb");
?>
<main class="full">
<div class="row column column-block">
<div id="calendar" class="wisv-calendar"></div>
<?php
// Get all event categories
$categories = get_terms([
'taxonomy' => 'event_category',
'hide_empty' => false,
]);
if (! empty($categories) && count($categories) > 0) {
?>
<div class="dropdown-pane" id="event-filter-dropdown" data-auto-focus="true" data-close-on-click="true" data-position="bottom" data-alignment="center">
<fieldset class="large-6 cell">
<?php
foreach ($categories as $c) {
$slug = esc_attr($c->slug); ?>
<input type="checkbox" name="cat-<?=$slug?>" data-slug="<?=$slug?>" value="<?=esc_attr($c->name)?>" id="cat-<?=$slug?>" checked><label
for="cat-<?=$slug?>" class="cat-<?=$slug?>"><?=esc_html($c->name)?></label><br>
<?php } ?>
</fieldset>
</div>
<?php } ?>
</div>
<div class="row column">
<?php the_content(); ?>
</div>
</main>
<?php
get_footer();