Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $share = array(
- 'url' => urlencode(get_permalink()),
- 'thumb' => urlencode(get_branding_image($post->ID)),
- 'title' => urlencode(get_the_title()),
- 'twitter' => urlencode('twitter_handle'),
- );
- $twitter_account = 'whatever';
- ?>
- <ul class="share">
- <li class="email">
- <a href="mailto:?subject=<?php echo $share['title']; ?>&body=<?php echo $share['url']; ?>" data-rel="0" target="_blank" title="Share <?php echo $post->post_title; ?> via email"></a>
- </li>
- <li class="facebook">
- <a href="//facebook.com/sharer.php?u=<?php echo $share['url']; ?>" data-rel="1" target="_blank" title="Share <?php echo $post->post_title; ?> on Facebook"></a>
- </li>
- <li class="google">
- <a href="//plus.google.com/share?url=<?php echo $share['url']; ?>" data-rel="2" target="_blank" title="+1 <?php echo $post->post_title; ?>"></a>
- </li>
- <li class="twitter">
- <a href="//twitter.com/share?url=<?php echo $share['url']; ?>&text=Title&via=<?php echo $share['twitter']; ?>" data-rel="3" target="_blank" title="Tweet about <?php echo $post->post_title; ?>"></a>
- </li>
- <li class="pinterest">
- <a href="//pinterest.com/pin/create/button/?url=<?php echo $share['url']; ?>&media=<?php echo $share['thumbnail']; ?>&description=abcdefg" data-rel="4" target="_blank" title="Pin <?php echo $post->post_title; ?>"></a>
- </li>
- <li class="reddit">
- <a href="//reddit.com/submit?url<?php echo $share['url']; ?>&title=Title" data-rel="5" target="_blank" title="Upvote <?php echo $post->post_title; ?> on Reddit"></a>
- </li>
- <li class="tumblr">
- <a href="//tumblr.com/share/link?url=<?php echo $share['url']; ?>&name=Title" data-rel="6" target="_blank" title="Blog about <?php echo $post->post_title; ?>"></a>
- </li>
- <?php if (is_single() && comments_open()) : ?>
- <li class="comments">
- <a href="#comments" data-rel="7" title="Read comments on <?php echo $post->post_title; ?>"><?php echo $post->comment_count; ?></a>
- </li>
- <?php endif; ?>
- </ul>
Add Comment
Please, Sign In to add comment