php Facebook,Twitter,Google Plus和LinkedIn的自定义社交分享图标
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Facebook,Twitter,Google Plus和LinkedIn的自定义社交分享图标相关的知识,希望对你有一定的参考价值。
<a href="http://twitter.com/intent/tweet?status={{ print(urlencode(the_title())); }}+{{ print(urlencode(get_permalink())); }}" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a href="http://www.facebook.com/share.php?u={{ print(urlencode(get_permalink())); }}&title={{ print(urlencode(the_title())); }}" target="_blank">
<i class="fa fa-facebook"></i>
</a>
<a href="https://plus.google.com/share?url={{ print(urlencode(get_permalink())); }}" target="_blank">
<i class="fa fa-google-plus"></i>
</a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url={{ print(urlencode(get_permalink())); }}&title={{ print(urlencode(the_title())); }}&source={{ print(urlencode(home_url())); }}" target="_blank">
<i class="fa fa-linkedin"></i>
</a>
<a href="http://pinterest.com/pin/create/bookmarklet/?url={{ print(urlencode(get_permalink())); }}&is_video=false&description={{ print(urlencode(the_title())); }}" target="_blank">
<i class="fa fa-pinterest"></i>
</a>
以上是关于php Facebook,Twitter,Google Plus和LinkedIn的自定义社交分享图标的主要内容,如果未能解决你的问题,请参考以下文章
php Facebook,Twitter,Google Plus和LinkedIn的自定义社交分享图标
web网页动态分享facebook和twitter
Twitter OAuth (PHP):需要好的基本示例才能开始
Facebook API php - 将新闻项目发布到 facebook 群组
Facebook 预定帖子和 Twitter
UIActivityViewController 和 facebook/twitter