-
Notifications
You must be signed in to change notification settings - Fork 1
/
social.php
36 lines (25 loc) · 2.08 KB
/
social.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
<?php if (Bunyad::options()->social_share): ?>
<div class="post-share">
<span class="text"><?php _e('Share.', 'bunyad'); ?></span>
<span class="share-links">
<a href="http://twitter.com/home?status=<?php echo urlencode(get_permalink()); ?>" class="fa fa-twitter" title="<?php _e('Tweet It', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('Twitter', 'bunyad'); ?></span></a>
<a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(get_permalink()); ?>" class="fa fa-facebook" title="<?php _e('Share at Facebook', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('Facebook', 'bunyad'); ?></span></a>
<a href="http://plus.google.com/share?url=<?php echo urlencode(get_permalink()); ?>" class="fa fa-google-plus" title="<?php _e('Share at Google+', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('Google+', 'bunyad'); ?></span></a>
<a href="http://pinterest.com/pin/create/button/?url=<?php
echo urlencode(get_permalink()); ?>&media=<?php echo urlencode(wp_get_attachment_url(get_post_thumbnail_id($post->ID))); ?>" class="fa fa-pinterest"
title="<?php _e('Share at Pinterest', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('Pinterest', 'bunyad'); ?></span></a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode(get_permalink()); ?>" class="fa fa-linkedin" title="<?php _e('Share at LinkedIn', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('LinkedIn', 'bunyad'); ?></span></a>
<a href="http://www.tumblr.com/share/link?url=<?php echo urlencode(get_permalink()) ?>&name=<?php echo urlencode(get_the_title()) ?>" class="fa fa-tumblr"
title="<?php _e('Share at Tumblr', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('Tumblr', 'bunyad'); ?></span></a>
<a href="mailto:?subject=<?php echo rawurlencode(get_the_title()); ?>&body=<?php echo rawurlencode(get_permalink()); ?>" class="fa fa-envelope-o"
title="<?php _e('Share via Email', 'bunyad'); ?>">
<span class="visuallyhidden"><?php _e('Email', 'bunyad'); ?></span></a>
</span>
</div>
<?php endif; ?>