-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
97 lines (96 loc) · 3.21 KB
/
footer.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
</main>
<footer class="site-footer">
<section class="site-section">
<div class="section-header">
<h2 class="section-title"><?php echo get_theme_mod("contact_title"); ?></h2>
</div>
<div class="section-collapsed-content-footer">
<h6><?php echo get_theme_mod("contact_info_1"); ?></h6>
<h6><?php echo get_theme_mod("contact_info_2"); ?></h6>
<div class="collapsed-cta">
<a href="<?php bloginfo("url"); echo '/' . get_page_uri(get_theme_mod("contact_cta_url")); ?>">
<button type="button" class="section-cta">
<?php echo get_theme_mod("contact_cta_text"); ?>
</button>
</a>
</div>
</div>
</section>
<section class="widgets-wrapper">
<section class="widget-section">
<?php
if(is_active_sidebar('widgets-section-1')) :
dynamic_sidebar('widgets-section-1');
endif;
?>
</section>
<section class="widget-section">
<?php
if(is_active_sidebar('widgets-section-2')) :
dynamic_sidebar('widgets-section-2');
endif;
?>
</section>
<section class="widget-section">
<?php
if(is_active_sidebar('widgets-section-3')) :
dynamic_sidebar('widgets-section-3');
endif;
?>
</section>
<section class="widget-section">
<?php
if(is_active_sidebar('widgets-section-4')) :
dynamic_sidebar('widgets-section-4');
endif;
?>
<a href="<?php echo get_theme_mod("intranet_cta_url"); ?>" target="_blank" class="btn-cta">
<button type="button" class="btn-secondary-cta"><?php echo get_theme_mod("intranet_cta_text"); ?></button>
</a>
</section>
</section>
<section class="social-links">
<?php
$social_networks = array("linkedin", "facebook", "instagram", "youtube", "twitter");
$uri = get_template_directory_uri();
foreach($social_networks as $network) {
$id = "social_" . $network . "_url";
$url = get_theme_mod($id);
$url = isset($url) ? trim($url) : false;
if(!empty($url)) {
$html = '<a href="' . $url . '" target="_blank">
<img src="' . $uri . '/assets/media/images/icon-' . $network . '.svg"
alt="' . $network . '"></a>';
echo $html;
}
}
unset($network);
?>
</section>
<section class="site-credits">
<div class="site-branding">
<?php if(has_custom_logo()) : the_custom_logo(); endif; ?>
</div>
<div class="site-copyright">
<p>
<?php
echo get_theme_mod("credits_text") . ' ' . date("Y");
echo ' ';
bloginfo('name');
?>
</p>
</div>
<div class="site-labels">
<?php
if(is_active_sidebar('widgets-section-5')) :
dynamic_sidebar('widgets-section-5');
endif;
?>
</div>
</section>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/overlayscrollbars/1.13.0/js/OverlayScrollbars.min.js" integrity="sha512-5R3ngaUdvyhXkQkIqTf/k+Noq3phjmrqlUQyQYbgfI34Mzcx7vLIIYTy/K1VMHkL33T709kfh5y6R9Xy/Cbt7Q==" crossorigin="anonymous"></script>
<script src="<?php echo get_template_directory_uri() . '/assets/scripts/main.js'?>" type="text/javascript"></script>
<?php wp_footer(); ?>
</body>
</html>