-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
45 lines (37 loc) · 975 Bytes
/
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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package understrap
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
$container = get_theme_mod( 'understrap_container_type' );
?>
<div class="wrapper" id="wrapper-footer">
<div class="<?php echo esc_attr( $container ); ?>">
<div class="row">
<div class="col-md-12">
<footer class="site-footer" id="colophon">
<div class="site-info">
<?php
$posts = get_posts( [
'post_type' => 'wp_block',
'title' => 'footer'
] );
if ( ! empty( $posts ) ) {
apply_filters( 'the_content', $posts[0]->post_content );
}
?>
</div>
</footer>
</div>
</div>
</div>
</div>
</div><!-- #page we need this extra closing tag here -->
<?php wp_footer(); ?>
</body>
</html>