-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathfooter.php
126 lines (123 loc) · 6.04 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
/**
* Footer
*
* @package WordPress
* @subpackage Visual Composer Starter
* @since Visual Composer Starter 1.0
*/
if ( visualcomposerstarter_is_the_footer_displayed() ) : ?>
<?php visualcomposerstarter_hook_before_footer(); ?>
<footer id="footer">
<?php
if ( get_theme_mod( 'vct_footer_area_widget_area', false ) ) :
$footer_columns = get_theme_mod( 'vct_footer_area_widgetized_columns', 1 );
$footer_columns_width = 12 / $footer_columns;
?>
<div class="footer-widget-area">
<div class="<?php echo esc_attr( visualcomposerstarter_get_content_container_class() ); ?>">
<div class="row">
<div class="col-md-<?php echo esc_attr( $footer_columns_width ); ?>">
<?php if ( is_active_sidebar( 'footer' ) ) : ?>
<?php dynamic_sidebar( 'footer' ); ?>
<?php endif; ?>
</div>
<?php for ( $i = 2; $i <= $footer_columns; $i ++ ) : ?>
<div class="col-md-<?php echo esc_attr( $footer_columns_width ); ?>">
<?php if ( is_active_sidebar( 'footer-' . $i ) ) : ?>
<?php dynamic_sidebar( 'footer-' . $i ); ?>
<?php endif; ?>
</div>
<?php endfor; ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="footer-bottom">
<div class="<?php echo esc_attr( visualcomposerstarter_get_content_container_class() ); ?>">
<?php if ( get_theme_mod( 'vct_footer_area_social_icons', false ) ) : ?>
<div class="footer-right-block">
<div class="footer-socials">
<ul>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_facebook', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_facebook', '' ) ); ?>"><span class="vct-icon-facebook-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_twitter', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_twitter', '' ) ); ?>"><span class="vct-icon-twitter-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_linkedin', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_linkedin', '' ) ); ?>"><span class="vct-icon-linkedin-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_instagram', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_instagram', '' ) ); ?>"><span class="vct-icon-instagram-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_pinterest', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_pinterest', '' ) ); ?>"><span class="vct-icon-pinterest-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_youtube', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_youtube', '' ) ); ?>"><span class="vct-icon-youtube-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_vimeo', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_vimeo', '' ) ); ?>"><span class="vct-icon-vimeo-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_flickr', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_flickr', '' ) ); ?>"><span class="vct-icon-flickr-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_github', '' ) ) ) : ?>
<li>
<a target="_blank" rel="noreferrer" href="<?php echo esc_url( get_theme_mod( 'vct_footer_area_social_link_github', '' ) ); ?>"><span class="vct-icon-github-with-circle"></span></a>
</li>
<?php endif; ?>
<?php if ( strlen( get_theme_mod( 'vct_footer_area_social_link_email', '' ) ) ) : ?>
<li>
<a href="<?php echo esc_url( 'mailto:' . antispambot( get_theme_mod( 'vct_footer_area_social_link_email', '' ) ) ); ?>"><span class="vct-icon-mail-circle"></span></a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
<?php endif; ?>
<div class="footer-left-block">
<p class="copyright">
<span>
<?php /* translators: 1. date, 2. blog name */
printf( esc_html__( 'Copyright © %1$s %2$s. All Rights Reserved.', 'visual-composer-starter' ), esc_html( date( 'Y' ) ), esc_html( get_bloginfo( 'name' ) ) ); ?></span>
<span>
<?php /* translators: 1. link opening tag, 2. link opening tag, 3. link closing tag */
printf( esc_html__( 'Proudly powered by %1$sVisual Composer%3$s and %2$sWordPress%3$s', 'visual-composer-starter' ), '<a href="https://visualcomposer.com/?utm_campaign=vc-theme&utm_source=vc-theme-front&utm_medium=vc-theme-footer" target="_blank" rel="noreferrer">', '<a href="https://wordpress.org" target="_blank" rel="noreferrer">', '</a>' ); ?></span>
</p>
<?php if ( has_nav_menu( 'secondary' ) ) : ?>
<div class="footer-menu">
<?php
wp_nav_menu( array(
'theme_location' => 'secondary',
) );
?>
</div>
<?php endif; ?>
</div>
<?php do_action( 'visualcomposerstarter_after_footer_copyright' ); ?>
</div>
</div>
</footer>
<?php visualcomposerstarter_hook_after_footer(); ?>
<?php endif; ?>
<?php wp_footer(); ?>
</body>
</html>