-
Notifications
You must be signed in to change notification settings - Fork 4
/
footer.php
54 lines (47 loc) · 1.93 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
<?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 Dro_Pizza
*/
$display_footer_logo = get_theme_mod( 'dro_pizza_footer_logo' );
$display_footer_blogname = get_theme_mod( 'dro_pizza_footer_blogname' );
$copyright_link = get_theme_mod( 'dro_pizza_copyright_link' );
$copyright_text = get_theme_mod( 'dro_pizza_copyright_text' );
?>
</div><!-- #content / .row -->
<footer id="colophon" class="site-footer row">
<?php if($display_footer_blogname): ?>
<div class="col-12 blog-name-footer">
<h3><?php bloginfo( 'blog_name' )?></h3>
</div>
<?php endif;?>
<div class="site-info col-12">
<?php
if( $display_footer_logo ):
the_custom_logo();
endif;
?>
<?php
if( ! empty( $copyright_link ) && ! empty( $copyright_text )): ?>
© <a href="<?php echo esc_url( $copyright_link )?>" title="<?php echo esc_attr( $copyright_text )?>">
<?php echo esc_html( $copyright_text ) ?>
</a>
<?php elseif ( ! empty( $copyright_link ) ): ?>
© <a href="<?php echo esc_url( $copyright_link )?>" title="<?php echo esc_attr( $copyright_link ) ?>">
<?php echo esc_html( $copyright_link ) ?>
</a>
<?php elseif( ! empty( $copyright_text ) ): ?>
© <?php echo esc_html( $copyright_text ); ?>
<?php endif; ?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- .container-fluid -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>