-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
163 lines (158 loc) · 6.94 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<div class="clear"></div>
</div>
<footer id="footer">
<section id="footer-boxes" class="pure-g">
<div class="footer-column pure-u-lg-1-3 pd30 fs footer-info">
<h1 class="footer-title">Contact</h1>
<ul class="contact-info">
<?php
$contactName = ot_get_option('pp_contact_name');
if ($contactName) { ?>
<li><i class="slide-icon icon-user"></i><p><?php echo $contactName; ?></p></li>
<?php } ?>
<?php
$contactMail = ot_get_option('pp_contact_mail');
if ($contactMail) { ?>
<li><i class="slide-icon icon-mail"></i><p><?php echo $contactMail; ?></p></li>
<?php } ?>
<?php
$contactAddress = ot_get_option('pp_contact_address');
if ($contactAddress) { ?>
<li><i class="slide-icon icon-office"></i><p><?php echo $contactAddress; ?></p></li>
<?php } ?>
<?php
$contactPhone = ot_get_option('pp_contact_phone');
if ($contactPhone) { ?>
<li><i class="slide-icon icon-phone"></i><p><?php echo $contactPhone; ?></p></li>
<?php } ?>
</ul>
</div>
<div class="footer-column pure-u-lg-1-3 pd30 fs footer-navigation">
<h1 class="footer-title">Navigation</h1>
<div class="recent pure-g">
<?php wp_nav_menu(); ?>
</div>
</div>
<div class="footer-column pure-u-lg-1-3 pd30 fs footer-recent">
<h1 class="footer-title">Recent Projects</h1>
<ul class="recent pure-g">
<?php
$query = new WP_Query(array(
'posts_per_page' => 5,
'post_type' => 'theportfolio'
));
while ($query->have_posts()): $query->the_post();
?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<p><?php echo get_the_date(); ?></p>
</li>
<?php endwhile; ?>
</ul>
</div>
</section>
<div id="copyright" class="pure-g">
<div class="center-parent copyright-date pure-u-lg-1-3 pd30">
<div class="center-child fs">
<!--<p><?php
echo sprintf(__('%1$s %2$s %3$s. All Rights Reserved.', 'blankslate'), '©', date('Y'), esc_html(get_bloginfo('name')));
echo sprintf(__(' Theme By: %1$s.', 'blankslate'), '<a href="http://tidythemes.com/">TidyThemes</a>');
?></p>-->
<p>
<?php
$pp_copyrights = ot_get_option('pp_copyrights');
echo $pp_copyrights;
?>
</p>
</div>
</div>
<?php $pp_enable_socials = ot_get_option('pp_enable_socials');
if ($pp_enable_socials === "on") { ?>
<div class="pure-u-lg-2-3 socials-icons pd30">
<ul class="socials">
<?php
if (function_exists('ot_get_option')) {
/* get the slider array */
$socials = ot_get_option('pp_headericons', array());
if (!empty($socials)) {
foreach ($socials as $social) {
?>
<li><a href="<?php
if ($social['icons_url']) {
echo $social['icons_url'];
}
?>"><span class="link-desc"><?php
if ($social['title']) {
echo $social['title'];
}
?></span><i class="slide-icon icon-<?php
if ($social['icons_service']) {
echo $social['icons_service'];
}
?>"></i></a></li>
<?php
}
}
}
?>
</ul>
</div>
<?php } ?>
</div>
</footer>
</div>
<?php wp_footer(); ?>
<nav id="responsive-menu">
<div class="responsive-menu-wrapp fs">
<?php wp_nav_menu(array('theme_location' => 'main-nav-menu')); ?>
<?php $pp_enable_socials = ot_get_option('pp_enable_socials');
if ($pp_enable_socials === "on") { ?>
<ul class="socials">
<?php
if (function_exists('ot_get_option')) {
/* get the slider array */
$socials = ot_get_option('pp_headericons', array());
if (!empty($socials)) {
foreach ($socials as $social) {
?>
<li><a href="<?php
if ($social['icons_url']) {
echo $social['icons_url'];
}
?>"><span class="link-desc"><?php
if ($social['title']) {
echo $social['title'];
}
?></span><i class="slide-icon icon-<?php
if ($social['icons_service']) {
echo $social['icons_service'];
}
?>"></i></a></li>
<?php
}
}
}
?>
</ul>
<?php } ?>
</div>
</nav>
<script src="<?php echo get_template_directory_uri(); ?>/dist/js/scripts.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-59562314-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>