-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
57 lines (45 loc) · 1.61 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
<?php
$footer = esc_attr( get_option( 'footer_text' ) );
$fb = esc_attr( get_option( 'facebook_link' ) );
$tw = esc_attr( get_option( 'twitter_link' ) );
$ig = esc_attr( get_option( 'instagram_link' ) );
$tumblr = esc_attr( get_option( 'tumblr_link' ) );
$gplus = esc_attr( get_option( 'gplus_link' ) );
?>
<div id="footer">
<p class="vert">
© <?php echo date( 'Y' ). ' ' . $footer; ?>
</p>
<div id="socialbar">
<?php
if ($fb) {
echo '<a href="' . $fb . '">
<img src="' . get_template_directory_uri() . '/img/icons/facebook.png' . '"></img>
</a>';
}
if ($tw) {
echo '<a href="' . $tw . '">
<img src="' . get_template_directory_uri() . '/img/icons/twitter.png' . '"></img>
</a>';
}
if ($ig) {
echo '<a href="' . $ig . '">
<img src="' . get_template_directory_uri() . '/img/icons/instagram.png' . '"></img>
</a>';
}
if ($tumblr) {
echo '<a href="' . $tumblr . '">
<img src="' . get_template_directory_uri() . '/img/icons/tumblr.png' . '"></img>
</a>';
}
if ($gplus) {
echo '<a href="' . $gplus . '">
<img src="' . get_template_directory_uri() . '/img/icons/google+.png' . '"></img>
</a>';
}
?>
</div> <!-- #socialbar -->
</div>
<?php wp_footer(); ?>
</body>
</html>