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 6
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·78 lines (62 loc) · 2.55 KB
/
footer.php
File metadata and controls
executable file
·78 lines (62 loc) · 2.55 KB
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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #page div and all content after
*
* @package Mark
* @link https://themebeans.com/themes/mark
*/
?>
</div><!-- .site-content -->
<?php get_sidebar(); ?>
<?php
/**
* Display the portfolio post modal on the portfolio template and portfolio index.
* We're onlying displaying the modal if the option is selected in the Customizer.
*/
get_template_part( 'template-parts/portfolio-modal' );
?>
<footer id="colophon" class="site-footer">
<div class="site-info">
<span class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">© <?php echo date( 'Y' ); ?> <?php bloginfo( 'name' ); ?></a>
</span>
<?php if ( get_theme_mod( 'powered_by_mark' ) || is_customize_preview() ) : ?>
<?php $visibility = ( false == get_theme_mod( 'powered_by_mark' ) ) ? 'hidden' : ''; ?>
<span class="site-theme <?php echo esc_attr( $visibility ); ?>">
<a href="https://themebeans.com/themes/mark/" class="powered-by-mark"><?php printf( esc_html__( '%1$s by %2$s', 'mark' ), 'Mark', 'ThemeBeans' ); ?></a>
</span>
<?php endif; ?>
<?php if ( get_theme_mod( 'powered_by_wordpress' ) || is_customize_preview() ) : ?>
<?php $visibility = ( false == get_theme_mod( 'powered_by_wordpress' ) ) ? 'hidden' : ''; ?>
<span class="powered-by <?php echo esc_attr( $visibility ); ?>">
<a href="https://wordpress.org/" class="powered-by-wordpress"><?php printf( esc_html__( 'Powered by %s', 'mark' ), 'WordPress' ); ?></a>
</span>
<?php endif; ?>
<?php
/**
* Display the portfolio post modal on the portfolio template and portfolio index.
* We're onlying displaying the modal if the option is selected in the Customizer.
*/
if ( get_theme_mod( 'mark_hireme_badge' ) || is_customize_preview() ) :
/*
* If selected in the Customizer.
* The visibility classes area used to show/hide the elements in the Customizer live preview.
*/
$visibility = ( false == get_theme_mod( 'mark_hireme_badge' ) ) ? 'hidden' : '';
printf(
'<span class="badge--hire-me %1s"><a href="%2s">%3s</a></span>',
esc_attr( $visibility ),
esc_url( get_theme_mod( 'mark_hireme_badge_url' ) ),
esc_html( get_theme_mod( 'mark_hireme_badge_text' ) )
);
endif;
?>
</div>
<?php mark_social_navigation(); ?>
</footer><!-- .site-footer -->
</div><!-- .site -->
<?php wp_footer(); ?>
</body>
</html>