-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsection-colophon.php
163 lines (152 loc) · 5.16 KB
/
section-colophon.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
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="container">
<div class="four columns">
<?php
$partners = get_posts(array(
'post_type' => 'partner',
'posts_per_page' => -1,
'orderby' => 'rand'
));
if($partners) :
?>
<div class="partners row">
<h3><?php _e('Partners', 'humus'); ?></h3>
<div class="partner-list">
<ul>
<?php
foreach($partners as $partner) :
$image = get_field('partner_logo', $partner->ID);
if(!$image)
continue;
?>
<li><a href="<?php echo get_permalink($partner->ID); ?>" title="<?php echo get_the_title($partner->ID); ?>"><img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo get_the_title($partner->ID); ?>" /></a></li>
<?php
endforeach;
?>
</ul>
</div>
<div class="navigate">
<a href="#" class="prev-partner"><?php _e('Previous partner', 'humus'); ?></a>
<a href="#" class="next-partner"><?php _e('Next partner', 'humus'); ?></a>
</div>
</div>
<script type="text/javascript">
(function($) {
var sly;
var activeItem = 0;
var t;
$(document).ready(function() {
sly = new Sly('.partner-list', {
horizontal: 1,
itemNav: 'basic',
smart: 1,
startAt: activeItem,
scrollBy: 0,
speed: 200,
ease: 'easeOutExpo'
});
sly.init();
$('.partners .next-partner').click(function() {
cycle();
clearInterval(t);
t = setInterval(cycle, 4000);
return false;
});
$('.partners .prev-partner').click(function() {
if(!sly.items[sly.rel.activeItem-1])
sly.activate(sly.items.length-1);
else
sly.activate(sly.rel.activeItem-1);
clearInterval(t);
t = setInterval(cycle, 4000);
return false;
});
function cycle() {
if(!sly.items[sly.rel.activeItem+1])
sly.activate(0);
else
sly.activate(sly.rel.activeItem+1);
}
t = setInterval(cycle, 4000);
});
})(jQuery);
</script>
<?php
endif;
?>
<div class="social row">
<h3><?php _e('Around the web', 'humus'); ?></h3>
<div class="social-content">
<div class="social-icons">
<?php
$facebook = get_field('facebook_url', 'option');
if($facebook)
echo '<a href="' . $facebook . '" title="Facebook" target="_blank"></a>';
$twitter = get_field('twitter_url', 'option');
if($twitter)
echo '<a href="' . $twitter . '" title="Twitter" target="_blank"></a>';
$youtube = get_field('youtube_url', 'option');
if($youtube)
echo '<a href="' . $youtube . '" title="YouTube" target="_blank"></a>';
$instagram = get_field('instagram_url', 'option');
if($instagram)
echo '<a href="' . $instagram . '" title="Instagram" target="_blank"></a>';
$gplus = get_field('gplus_url', 'option');
if($gplus)
echo '<a href="' . $gplus . '" title="Google Plus" target="_blank"></a>';
$pinterest = get_field('pinterest_url', 'option');
if($pinterest)
echo '<a href="' . $pinterest . '" title="Pinterest" target="_blank"></a>';
?>
</div>
</div>
</div>
</div>
<div class="four columns">
<div class="newsletter row">
<h3><?php _e('Newsletter', 'humus'); ?></h3>
<div class="newsletter-container">
<p><?php _e('Sign up to our newsletter and be the first to know about our latest contents', 'humus'); ?></p>
<?php humus_newsletter_form(); ?>
</div>
</div>
</div>
<div class="four columns">
<?php
$contact = get_field('footer_contact', 'option');
if($contact) :
?>
<div class="contacts row">
<h3><?php _e('Contact', 'humus'); ?></h3>
<?php echo $contact; ?>
</div>
<?php
endif;
?>
<div class="colophon row">
<h3><?php _e('Colophon', 'humus'); ?></h3>
<table class="colophon-table">
<tr>
<th><?php _e('Typography', 'humus'); ?></th>
<td><a href="http://www.latofonts.com/" target="_blank">Lato</a>, <a href="http://www.google.com/fonts/specimen/Open+Sans" target="_blank">Open Sans</a></td>
</tr>
<tr>
<th><?php _e('Some icons by', 'humus'); ?></th>
<td><a href="http://www.entypo.com/" target="_blank">Entypo</a>, <a href="http://kudakurage.com/ligature_symbols/" target="_blank">Ligature Symbols</a></td>
</tr>
<tr>
<th><?php _e('License', 'humus'); ?></th>
<td><a href="http://creativecommons.org/licenses/by-sa/3.0/deed.pt" target="_blank">CC BY - SA 3.0</a></td>
</tr>
<tr>
<th><?php _e('Development', 'humus'); ?></th>
<td class="logos"><a href="http://espacohumus.com/" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/img/humus.png" /></a><span class="plus">+</span><a href="http://cardume.art.br/" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/img/cardume.png" /></a></td>
</tr>
</table>
</div>
</div>
</div>
<div class="site-info">
<?php do_action( 'humus_credits' ); ?>
</div><!-- .site-info -->
</footer><!-- #colophon -->