-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
executable file
·139 lines (126 loc) · 8.19 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package understrap
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
$container = get_theme_mod( 'understrap_container_type' );
?>
<?php get_template_part( 'sidebar-templates/sidebar', 'footerfull' ); ?>
</div><!-- #page we need this extra closing tag here -->
<footer id="page-footer" class="container-fluid d-flex p-0 bg-dark text-light">
<div id= "footer-container" class="container-fluid p-0">
<div id="footer-navbar" class="container-fluid d-inline-flex flex-row align-items-center justify-content-center justify-content-sm-between bg-primary text-white">
<div id="footer-logo-share-navbar" class="m-0 my-sm-1 mr-sm-auto d-none d-sm-inline-flex">
<div class="d-inline-flex mr-1 my-auto">
<div class="footer-logo" align="center">
<a class="footer-logo" href="/">
<img class="icon " alt="<?php echo get_bloginfo('name'); ?>" title="<?php echo get_bloginfo('name'); ?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ) ?>/img/logos/logo_white_small.svg"></a>
</div>
</div>
<div id="footer-share" class="footer-share d-inline-flex flex-row justify-content-start ml-1 mr-auto mt-auto mb-auto">
<a title="Facebook | /SaylorFoundation" target="_blank" href="https://www.facebook.com/SaylorAcademy" class="fa fa-facebook fa-2x p-1"></a>
<a title="Twitter | @saylordotorg" target="_blank" href="https://twitter.com/saylordotorg" class="fa fa-twitter fa-2x p-1"></a>
<a title="Instagram | @saylordotorg" target="_blank" href="https://www.instagram.com/saylordotorg" class="fa fa-instagram fa-2x p-1"></a>
<a title="GitHub | /saylordotorg" target="_blank" href="https://github.com/saylordotorg" class="fa fa-github fa-2x p-1"></a>
<a title="LinkedIn | Saylor Academy" target="_blank" href="https://www.linkedin.com/school/1229385/" class="fa fa-linkedin fa-2x p-1"></a>
</div>
</div>
<?php wp_nav_menu(
array(
'theme_location' => 'footer',
'container_class' => 'd-inline-flex flex-row flex-nowrap align-items-center justify-content-between justify-content-sm-end mx-auto mr-sm-1 my-2',
'container_id' => 'footer-links',
'menu_class' => 'footer-nav d-flex align-items-center justify-content-center list-inline mt-auto mb-auto',
'menu_id' => '',
'fallback_cb' => '',
'before' => '<h4>',
'after' => '</h4>',
'menu_id' => 'footer1',
'depth' => 1,
'walker' => new Understrap_WP_Bootstrap_Navwalker(),
)
); ?>
</div>
<div id="footer-logo-share-bottom-container" class="container-fluid d-sm-none mx-auto my-2 my-sm-0" align="center">
<div id="footer-logo-share-bottom" class="d-inline-flex flex-row d-sm-none justify-content-between mx-auto">
<div class="d-inline-flex my-1">
<div class="footer-logo mx-auto">
<a class="footer-logo" href="/">
<img class="icon " alt="<?php echo get_bloginfo('name'); ?>" title="<?php echo get_bloginfo('name'); ?>" src="<?php echo esc_url( get_stylesheet_directory_uri() ) ?>/img/logos/logo_white_small.svg">
</a>
</div>
</div>
<div id="footer-share" class="footer-share d-inline-flex flex-row justify-content-around my-auto mx-auto">
<a title="Facebook | /SaylorFoundation" target="_blank" href="https://www.facebook.com/SaylorFoundation" class="fa fa-facebook fa-3x p-1 mx-auto"></a>
<a title="Twitter | @saylordotorg" target="_blank" href="https://twitter.com/saylordotorg" class="fa fa-twitter fa-3x p-1 mx-auto"></a>
<a title="Instagram | @saylordotorg" target="_blank" href="https://www.instagram.com/saylordotorg" class="fa fa-instagram fa-3x p-1 mx-auto"></a>
<a title="GitHub | /saylordotorg" target="_blank" href="https://github.com/saylordotorg" class="fa fa-github fa-3x p-1"></a>
<a title="LinkedIn | Saylor Academy" target="_blank" href="https://www.linkedin.com/school/1229385/" class="fa fa-linkedin fa-3x p-1 mx-auto"></a>
</div>
</div>
</div>
<div id="footer-text-container" class="font-weight-light small text-center d-flex flex-column container-fluid mt-1">
<p class="mb-0">© Saylor Academy 2010-<?php echo date('Y'); ?> except as otherwise noted. Excluding course final exams, content authored by Saylor Academy is available under a <a class="text-secondary" rel="license" href="http://creativecommons.org/licenses/by/3.0/" target="_blank">Creative Commons Attribution 3.0 Unported</a> license. Third-party materials are the copyright of their respective owners and shared under various licenses. See <a class="text-secondary" href="https://www.saylor.org/open/licensing-information" target="_blank">detailed licensing information</a>.</p>
<p class="mt-0">Saylor Academy®, Saylor.org®, and Harnessing Technology to Make Education Free® are trade names of the Constitution Foundation, a 501(c)(3) organization through which our educational activities are conducted.</p>
</div>
<div class="d-flex-row d-flex-md-inline-row flex-wrap" align="center">
<div id="footer-ccby-logo" class="ccby-logo float-md-right mr-md-5">
<img class="icon " alt="CCBY" title="CCBY" src="<?php echo esc_url( get_stylesheet_directory_uri() ) ?>/img/logos/cc/ccby.svg">
</div>
<div class="col-md-9">
<p class="mx-auto my-auto d-flex flex-nowrap"><h5><a href="https://www.saylor.org/sitemap">Sitemap</a> | <a href="https://www.saylor.org/terms-of-use">Terms of Use</a> | <a href="https://www.saylor.org/privacy-policy">Privacy Policy</a></h5></p>
</div>
</div>
<div id="footer-end" class="container-fluid text-center">
<?php wp_footer(); ?>
</div>
</div>
</footer>
<div id="nav-drawer" data-region="drawer" class="d-print-none moodle-has-zindex closed d-flex flex-column" aria-hidden="" tabindex="-1">
<?php wp_nav_menu(
array(
'theme_location' => 'footer2',
'container' => 'nav',
'container_class' => 'mb-1',
'container_id' => '',
'menu_class' => 'list-group',
'fallback_cb' => '',
'link_before' => '<div class="ml-1">',
'link_after' => '</div>',
'menu_id' => 'nav-footer',
'depth' => 0,
'walker' => new Understrap_WP_Bootstrap_Navwalker(),
)
); ?>
<?php wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'd-md-none mb-1',
'container_id' => '',
'menu_class' => 'list-group',
'fallback_cb' => '',
'link_before' => '<div class="ml-1">',
'link_after' => '</div>',
'menu_id' => 'main-menu',
'depth' => 2,
'walker' => new Understrap_WP_Bootstrap_Navwalker(),
)
); ?>
</div>
<script>
jQuery( document ).ready(function() {
jQuery("#budrawer").click(function() {
jQuery("#nav-drawer").toggleClass("closed");
jQuery("body").toggleClass("drawer-open-left");
});
});
</script>
</body>
</html>