-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
75 lines (69 loc) · 2.28 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
<?php
global $post;
$postId = $post->ID;
?>
<div class="share-block text-center">
<div class="share-block__label text-muted">Share</div>
<div class="share-block__icons">
<!--
<div class="share-block__upvote">
<a href="#">
<i class=" icon-angle-up remove-padding" aria-hidden="true"></i>
<i title="Show some love if you enjoyed this article"
class=" icon-heart-o remove-padding"
aria-hidden="true"></i>
<div class="text-muted"><?php echo $postId; ?></div>
</a>
</div>
-->
<div>
<a title="Share this on Twitter"
href="https://twitter.com/intent/tweet?text=<?php echo urlencode( get_the_title( $postId ) ) ?>&url=<?php echo urlencode( get_permalink( $postId ) ); ?>">
<i class=" icon-twitter icon-outline text-muted" aria-label="true"></i>
</a>
<!-- <div class="text-muted">10</div>-->
</div>
<div>
<a title="Share on Facebook"
href="http://www.facebook.com/sharer.php?u=<?php echo urlencode( get_permalink( $postId ) ); ?>&t=<?php echo urlencode( get_the_title( $postId ) ) ?>"
target="blank">
<i class=" icon-facebook icon-outline text-muted" aria-hidden="true"></i>
</a>
<!-- <div class="text-muted">15</div>-->
</div>
</div>
</div>
<footer class="footer footer-block">
<div class="container-fluid text-center">
<p class="text-muted">Copyright © <?php echo date( 'Y' ); ?> Zekler. All Rights Reserved. </p>
<ul class="list-inline">
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Send us your favorite tips</a></li>
<li><a href="#">Newletter</a></li>
<li><a href="#">RSS</a></li>
</ul>
</div>
</footer>
<?php wp_footer(); ?>
<?php
if ( is_front_page() ) { ?>
<script>
$(function () {
share.init();
search.init();
})
</script>
<?php
} else { ?>
<script>
$(function () {
share.init({offset: 50});
search.init();
})
</script>
<?php
}
?>
</body>
</html>