forked from forkable/wp-theme-mx
/
footer.php
64 lines (61 loc) · 1.79 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
58
59
60
61
62
63
64
<?php
/**
* ad
*/
if(class_exists('theme_adbox') && !empty(theme_adbox::display_frontend('above-footer'))){
?>
<div class="g"><div class="ad-container ad-above-footer"><?= theme_adbox::display_frontend('above-footer');?></div></div>
<?php
}
?>
<footer id="footer">
<?php if(!wp_is_mobile()){ ?>
<div class="g">
<div class="widget-area row">
<?php if(!theme_cache::dynamic_sidebar('widget-area-footer')){ ?>
<div class="g-desktop-1-1">
<div class="panel">
<div class="content">
<div class="page-tip">
<?= status_tip('info', ___('Please set some widgets in footer.'));?>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<!-- links -->
<?php if(theme_cache::is_home()){ ?>
<div class="widget panel links-container">
<div class="heading">
<h2 class="widget-title">
<i class="fa fa-link"></i> <?= ___('Links');?>
</h2>
</div>
<div class="content">
<?php
/**
* links
*/
theme_cache::wp_nav_menu([
'theme_location' => 'links-footer',
'container' => 'nav',
'menu_class' => 'menu',
'menu_id' => 'links-footer',
'fallback_cb' => 'custom_navwalker::fallback',
'walker' => new custom_navwalker
]);
?>
</div>
</div>
<?php } ?>
</div><!-- /.g -->
<p class="footer-meta copyright">
<?= class_exists('theme_user_code') ? theme_user_code::get_frontend_footer_code() : null;?>
</p>
<?php }else{ ?>
<div class="g"><p><?= class_exists('theme_user_code') ? theme_user_code::get_frontend_footer_code() : null;?></p></div>
<?php } ?>
</footer>
<a href="#" id="back-to-top" class="fa fa-arrow-up fa-2x" title="<?= ___('Back to top');?>"></a>
<?php wp_footer();?></body></html>