This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfooter.php
executable file
·148 lines (139 loc) · 6.03 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
$options = get_theme_mods();
if (isset($options['theme_option_street_txt_input'], $options['theme_option_city_txt_input'], $options['theme_option_state_txt_input'], $options['theme_option_zip_txt_input'])) {
$directions = silencio_build_directions_url(
$options['theme_option_street_txt_input'],
$options['theme_option_city_txt_input'],
$options['theme_option_state_txt_input'],
$options['theme_option_zip_txt_input']
);
}
?>
</div><!-- #content .site-content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="container">
<!-- <nav id="footer-nav" role="navigation">
<?php
wp_nav_menu(array('theme_location' => 'footer-menu'));
?>
</nav> -->
<!-- <aside class="footer-widget" role="complementary">
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer-sidebar')) {
}
?>
</aside> -->
<aside class="site-info">
<ul class="address" itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address">
<li>© <?php echo date('Y');?> <span itemprop="name"><?php bloginfo('name'); ?></span></li>
<?php
if (!empty($options['theme_option_street_txt_input'])) {
?>
<li><span itemprop="street-address"><?php echo $options['theme_option_street_txt_input']; ?></span></li>
<?php
}
if (!empty($options['theme_option_city_txt_input'])) {
?>
<li><span itemprop="locality"><?php echo $options['theme_option_city_txt_input']; ?></span>,
<?php
}
if (!empty($options['theme_option_state_txt_input'])) {
?>
<span itemprop="region"><?php echo $options['theme_option_state_txt_input']; ?></span>
<?php
}
if (!empty($options['theme_option_zip_txt_input'])) {
?>
<span itemprop="postal-code"><?php echo $options['theme_option_zip_txt_input']; ?></span></li>
<?php
}
if (!empty($options['theme_option_phone_txt_input'])) {
?>
<li><span itemprop="tel"><i class="fa fa-phone"></i><a href="tel:<?php echo $options['theme_option_phone_txt_input']; ?>"> <?php echo $options['theme_option_phone_txt_input']; ?></a></span></li>
<?php
}
if (!empty($options['theme_option_fax_txt_input'])) {
?>
<li><i class="fa fa-fax"></i> <span itemprop="faxNumber"><?php echo $options['theme_option_fax_txt_input']; ?></span></li>
<?php
}
if (!empty($options['theme_option_email_txt_input'])) {
?>
<li><span itemprop="email"> <i class="fa fa-envelope"></i> <a href="mailto:<?php echo $options['theme_option_email_txt_input']; ?>">Email</a></span></li>
<?php
}
?>
</ul><!-- .address -->
<?php
if (isset($directions)) {
?>
<!-- <div class="directions">
<a href="<?php echo $directions ?>"><i class="fa fa-map-marker"></i> View on a map</a>
</div> -->
<?php
}
?>
<ul class="social-media">
<?php
if (!empty($options['theme_option_facebook_txt_input'])) {
?>
<li>
<a href="<?php echo $options['theme_option_facebook_txt_input']; ?>" target="_blank">
<i class="fa fa-facebook"></i><span class="sr-only">Facebook</span>
</a>
</li>
<?php
} if (!empty($options['theme_option_twitter_txt_input'])) {
?>
<li>
<a href="<?php echo $options['theme_option_twitter_txt_input']; ?>" target="_blank">
<i class="fa fa-twitter"></i><span class="sr-only">Twitter</span>
</a>
</li>
<?php
} if (!empty($options['theme_option_youtube_txt_input'])) {
?>
<li>
<a href="<?php echo $options['theme_option_youtube_txt_input']; ?>" target="_blank">
<i class="fa fa-youtube-play"></i><span class="sr-only">YouTube</span>
</a>
</li>
<?php
} if (!empty($options['theme_option_googleplus_txt_input'])) {
?>
<li>
<a href="<?php echo $options['theme_option_googleplus_txt_input']; ?>" target="_blank">
<i class="fa fa-google-plus"></i><span class="sr-only">Google+</span>
</a>
</li>
<?php
} if (!empty($options['theme_option_instagram_txt_input'])) {
?>
<li>
<a href="<?php echo $options['theme_option_instagram_txt_input']; ?>" target="_blank">
<i class="fa fa-instagram"></i><span class="sr-only">Google+</span>
</a>
</li>
<?php
} if (!empty($options['theme_option_linkedin_txt_input'])) {
?>
<li>
<a href="<?php echo $options['theme_option_linkedin_txt_input']; ?>" target="_blank">
<i class="fa fa-linkedin"></i><span class="sr-only">Google+</span>
</a>
</li>
<?php
}
?>
</ul><!-- .social-media -->
</aside><!-- .site-info -->
<!-- <aside class="via_tag">
<p><a href="http://viastudio.com" rel="external" target="_blank" title="Built by VIA Studio"><?php echo file_get_contents(get_template_directory() . "/res/build/img/via-mark.svg");?>Built by VIA Studio</a></p>
</aside> -->
</div><!-- .container -->
</footer><!-- #colophon .site-footer -->
</div><!-- #page -->
</div> <!-- .body-wrap -->
<?php wp_footer(); ?>
</body>
</html>