This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfooter.php
executable file
·72 lines (54 loc) · 1.72 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
<?php
/**
* The template for displaying the footer
*
* @package Designer
* @link https://themebeans.com/themes/designer
*/
if ( ! is_404() && ! is_page_template( 'template-underconstruction.php' ) ) {
$page_content_layout = get_post_meta( $post->ID, '_bean_page_content_layout', true );
$colophon = get_theme_mod( 'footer_colophon' );
$copyright = get_theme_mod( 'footer_copyright' );
$allowed_html = array(
'br' => array(),
'strong' => array(),
'em' => array(),
'a' => array(
'alt' => array(),
'href' => array(),
'target' => array(),
),
);
?>
<footer class="footer <?php echo esc_attr( $page_content_layout ); ?>">
<?php if ( $colophon ) { ?>
<p class="colophon">
<?php echo wp_kses( $colophon, $allowed_html ); ?>
</p>
<?php } ?>
<?php if ( $copyright ) { ?>
<p class="copyright"><span>© <?php echo esc_html( date( 'Y' ) ); ?></span><?php echo wp_kses( $copyright, $allowed_html ); ?></p>
<?php } else { ?>
<p class="copyright"><span>© <?php echo esc_html( date( 'Y' ) ); ?></span><?php echo esc_html__( 'Designed by', 'designer' ); ?> <a href="https://themebeans.com">ThemeBeans</a></p>
<?php } ?>
<a href="#page-container" id="back-to-top" class="back-to-top"><?php echo esc_html__( 'Back to Top', 'designer' ); ?><span></span></a>
</footer>
<?php
if ( get_theme_mod( 'portfolio_flyout' ) === true ) {
get_template_part( 'template-parts/portfolio-flyout' );
}
?>
</div>
<?php
wp_reset_query();
if ( is_singular( 'portfolio' ) ) {
get_template_part( 'template-parts/photoswipe' );
if ( get_theme_mod( 'portfolio_cta' ) === true ) {
get_template_part( 'template-parts/portfolio-form' );
}
}
}
wp_footer();
?>
</body>
</html>