-
Notifications
You must be signed in to change notification settings - Fork 10
/
footer.php
65 lines (51 loc) · 1.67 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package cpschool
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
?>
<footer class="wrapper has-background has-footer-main-bg-color-background-color" id="wrapper-footer">
<div id="footer-content">
<?php get_template_part( 'template-parts/sidebar-templates/sidebar', 'footerfull' ); ?>
<?php
$footer_block_id = get_theme_mod( 'footer_main_block' );
if ( $footer_block_id ) {
echo '<div class="container" id="footer-block">' . apply_filters( 'the_content', get_post_field( 'post_content', $footer_block_id ) ) . '</div>';
}
?>
<div class="container" id="footer-site-info">
<div class="row">
<div class="col-md-12">
<div class="site-footer" id="colophon">
<div class="site-info">
<?php cpschool_site_info(); ?>
</div><!-- .site-info -->
</div><!-- #colophon -->
</div><!--col end -->
</div><!-- row end -->
</div><!-- container end -->
</div>
<div id="footer-image-holder">
<?php
$footer_image = get_theme_mod( 'footer_main_bg_image' );
if ( isset( $footer_image['id'] ) ) {
echo wp_get_attachment_image( $footer_image['id'], 'full' );
}
?>
</div>
</footer><!-- wrapper end -->
</div><!-- #page we need this extra closing tag here -->
<?php
// TODO - We should have hook to trigger to load those only when required
get_template_part( 'template-parts/global-templates/modal', 'alert' );
get_template_part( 'template-parts/global-templates/modal', 'slide-in-menu' );
get_template_part( 'template-parts/global-templates/modal', 'search' );
?>
<?php wp_footer(); ?>
</body>
</html>