-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfooter.php
More file actions
65 lines (55 loc) · 1.97 KB
/
Copy pathfooter.php
File metadata and controls
65 lines (55 loc) · 1.97 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
<?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 Palmeria
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer">
<div class="wrapper footer-wrapper">
<?php
if(has_nav_menu('menu-2')):
wp_nav_menu(array(
'theme_location' => 'menu-2',
'menu_class' => 'footer-menu',
'depth' => 1,
));
endif;
if(has_nav_menu('menu-3')):
wp_nav_menu(array(
'theme_location' => 'menu-3',
'menu_class' => 'theme-social-menu footer-socials',
'depth' => 1,
'link_before' => '<span class="menu-text">',
'link_after' => '</span>',
));
endif;
?>
<div class="site-info">
<?php
$dateObj = new DateTime;
$current_year = $dateObj->format( "Y" );
printf(
wp_kses_post(get_theme_mod( 'palmeria_footer_text',
sprintf(
_x( '%2$s © %1$s All Rights Reserved.<br/><span style="opacity: .8;">Designed by <a href="https://motopress.com/" target="_blank" rel="noopener noreferrer nofollow">MotoPress</a>.</span>', 'Default footer text. %1$s - current year, %2$s - site title.', 'palmeria' ),
$current_year,
get_bloginfo( 'name' )
)
)),
$current_year,
get_bloginfo( 'name' )
);
?>
</div><!-- .site-info -->
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>