-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
98 lines (82 loc) · 2.87 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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage Twenty_Twenty_One
* @since Twenty Twenty-One 1.0
*/
?>
<section class="instagram-section">
<?php echo do_shortcode(get_field('instagram_feed_shortcode','option')); ?>
</section>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- #content -->
<?php //get_template_part( 'template-parts/footer/footer-widgets' ); ?>
<footer id="colophon" class="site-footer" role="contentinfo">
<?php if(get_field('frieze')) {
$frieze = get_field('frieze'); ?>
<section id="frieze" style="background: url(<?php echo $frieze; ?>) repeat center;">
</section>
<?php } ?>
<div class="site-info">
<div class="site-name">
<?php if ( has_custom_logo() ) : ?>
<div class="site-logo"><?php the_custom_logo(); ?></div>
<?php else : ?>
<?php if ( get_bloginfo( 'name' ) && get_theme_mod( 'display_title_and_tagline', true ) ) : ?>
<?php if ( is_front_page() && ! is_paged() ) : ?>
<?php bloginfo( 'name' ); ?>
<?php else : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div><!-- .site-name -->
<?php if ( has_nav_menu( 'footer' ) ) : ?>
<nav aria-label="<?php esc_attr_e( 'Secondary menu', 'twentytwentyone' ); ?>" class="footer-navigation">
<ul class="footer-navigation-wrapper">
<?php
wp_nav_menu(
array(
'theme_location' => 'footer',
'items_wrap' => '%3$s',
'container' => false,
'depth' => 1,
'link_before' => '<span>',
'link_after' => '</span>',
'fallback_cb' => false,
)
);
?>
</ul><!-- .footer-navigation-wrapper -->
</nav><!-- .footer-navigation -->
<?php endif; ?>
<div class="powered-by">
<?php
printf(
/* translators: %s: WordPress. */
esc_html__( 'Designed by %s', 'twentytwentyone' ),
'<a href="' . esc_url( __( 'https://annssite.com/', 'twentytwentyone' ) ) . '">Ann Newcomer</a>'
);
printf(
/* translators: %s: WordPress. */
esc_html__( ' on a theme by %s.', 'twentytwentyone' ),
'<a href="' . esc_url( __( 'https://wordpress.org/', 'twentytwentyone' ) ) . '">WordPress</a>'
);
?>
</div><!-- .powered-by -->
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<!-- Magnific Popup core JS file -->
<!-- <script src="https://merritt.dev.cc/wp-content/themes/twentytwentyone-child/js/magnific.js"></script> -->
<!-- <script src="https://merritt.dev.cc/wp-content/themes/twentytwentyone-child/js/custom-lightbox.js"></script> -->
<?php wp_footer(); ?>
</body>
</html>