-
Notifications
You must be signed in to change notification settings - Fork 4
/
footer-credits.php
78 lines (52 loc) · 1.77 KB
/
footer-credits.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
<?php
/**
* Theme credits
*
* It is completely optional, but if you like this WordPress theme,
* I would appreciate it if you keep the credit link in the footer.
*
* @package Auberge
* @copyright WebMan Design, Oliver Juhas
*
* @since 2.0
* @version 2.7.2
*/
/**
* Helper variables
*/
$custom_credits = trim( (string) apply_filters( 'wmhook_wm_credits_output', '' ) );
/**
* Requirements check
*/
if ( '-' === $custom_credits ) {
return;
}
?>
<div class="site-footer-area footer-area-site-info">
<div class="site-info-container">
<div class="site-info" role="contentinfo">
<?php if ( empty( $custom_credits ) ) : ?>
© <?php echo date( 'Y' ); ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
<span class="sep"> | </span>
<?php
printf(
esc_html_x( 'Using %1$s %2$s theme.', '1: theme name, 2: linked "WordPress" word.', 'auberge' ),
'<a rel="nofollow" href="' . esc_url( wp_get_theme( get_template() )->get( 'ThemeURI' ) ) . '"><strong>' . wp_get_theme( get_template() )->get( 'Name' ) . '</strong></a>',
'<a rel="nofollow" href="' . esc_url( __( 'https://wordpress.org/', 'auberge' ) ) . '">WordPress</a>'
);
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '<span class="sep"> | </span>' );
}
?>
<span class="sep"> | </span>
<a href="#top" id="back-to-top" class="back-to-top"><?php esc_html_e( 'Back to top ↑', 'auberge' ); ?></a>
<?php else : ?>
<?php
// This is already validated/sanitized when stored in customizer (with wp_kses_post()).
echo $custom_credits; // WPCS: XSS OK.
?>
<?php endif; ?>
</div>
<?php get_template_part( 'template-parts/menu', 'social' ); ?>
</div>
</div>