-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
57 lines (51 loc) · 1.91 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
<?php
/**
* Footer Template
* @package storyHub-alter
*/
$menu_class = \STORYHUB_ALTER\Inc\Menus::get_instance();
$menu_arr = get_nav_menu_locations();
if (array_key_exists('storyHub_alter_footer_menu', $menu_arr)) {
$footer_menus_id = $menu_class->get_menu_id('storyHub_alter_footer_menu');
$footer_menus = wp_get_nav_menu_items($footer_menus_id);
}
?>
<footer>
<div class="container-xl">
<div class="container mx-auto">
<div class="footer__area p-5 flex items-center justify-between">
<div class="left__footer">
<?php
// echo esc_html__(get_theme_mod('set_copyright', 'Copyright x - All rights reserved'),'storyHub-alter');
esc_html(printf(__('%s', 'storyHub-alter'), get_theme_mod('set_copyright', 'Copyright x - All rights reserved')));
?>
</div>
<div class="right__footer">
<?php
if (!empty($footer_menus) && is_array($footer_menus)) {
?>
<ul class="footer__nav_menu flex items-center">
<?php
foreach ($footer_menus as $menu) {
?>
<li class="<?php echo check_active_class_in_menu($menu); ?>">
<a href="<?php echo esc_url($menu->url); ?>"><?php printf(__('%s', 'storyHub-alter'), $menu->title); ?></a>
</li>
<?php
}
?>
</ul>
<?php
}
?>
</div>
</div>
</div>
</div>
</footer>
<!-- Overlay-->
<div class="overlay hide"></div>
</div>
<?php wp_footer(); ?>
</body>
</html>