-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
85 lines (81 loc) · 3.86 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<section class="footer-bottom">
<!-- Footer Widgets -->
<?php if( get_theme_mod('newsletter_en', false)): ?>
<div class="footer-mailchamp">
<div class="container">
<div class="row">
<div class="col-md-12">
<!-- News Latter -->
<div class="newslatter">
<?php echo do_shortcode(get_theme_mod( 'footer_newsletter' )); ?>
</div>
</div>
</div>
</div>
</div><!--/#bottom-wrap-->
<?php endif; ?>
<!-- Footer Widgets -->
<?php if ( get_theme_mod( 'bottom_en', false )) { ?>
<?php $docent_col = get_theme_mod( 'bottom_column', 3 ); ?>
<div id="bottom-wrap" class="footer">
<div class="container">
<div class="row clearfix border-wrap">
<?php if (is_active_sidebar('bottom1')):?>
<div class="col-sm-6 col-md-6 col-lg-<?php echo esc_attr($docent_col);?>">
<?php dynamic_sidebar('bottom1'); ?>
</div>
<?php endif; ?>
<?php if (is_active_sidebar('bottom2')):?>
<div class="col-sm-6 col-md-6 col-lg-<?php echo esc_attr($docent_col);?>">
<?php dynamic_sidebar('bottom2'); ?>
</div>
<?php endif; ?>
<?php if (is_active_sidebar('bottom3')):?>
<div class="col-sm-6 col-md-6 col-lg-<?php echo esc_attr($docent_col);?>">
<?php dynamic_sidebar('bottom3'); ?>
</div>
<?php endif; ?>
<?php if (is_active_sidebar('bottom4')):?>
<div class="col-sm-6 col-md-6 col-lg-<?php echo esc_attr($docent_col);?>">
<?php dynamic_sidebar('bottom4'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div><!--/#bottom-wrap-->
<?php } ?>
</section>
<?php if ( get_theme_mod( 'footer_en', true )) { ?>
<footer id="footer-wrap">
<div class="container">
<div class="row clearfix">
<?php $docent_pro_footer_logo = get_theme_mod( 'footer_logo', '' );
if($docent_pro_footer_logo){ ?>
<div class="col-sm-12 text-sm-center text-md-left col-md-6">
<div class="footer-logo">
<?php
if( !empty($docent_pro_footer_logo) ) { ?>
<a class="docent-navbar-brand" href="<?php echo esc_url(site_url()); ?>">
<img class="enter-logo img-responsive" src="<?php echo esc_url( $docent_pro_footer_logo ); ?>" alt="<?php esc_attr_e( 'Footer Logo', 'docent' ); ?>" title="<?php esc_attr_e( 'Footer Logo', 'docent' ); ?>">
</a>
<?php } ?>
</div> <!-- col-md-6 -->
</div> <!-- end footer-copyright -->
<?php } ?>
<?php if($docent_pro_footer_logo) {?>
<div class="col-sm-12 col-md-6 text-right">
<?php } else{?>
<div class="col-sm-12 col-md-12 text-center">
<?php }?>
<?php if( get_theme_mod( 'copyright_en', true ) ) { ?>
<?php echo esc_html(get_theme_mod( 'copyright_text', __('Docent. All Rights Reserved.','docent'))); ?>
<?php } ?>
</div>
</div><!--/.row clearfix-->
</div><!--/.container-->
</footer><!--/#footer-wrap-->
<?php } ?>
</div> <!-- #page -->
<?php wp_footer(); ?>
</body>
</html>