主頁 > 打破石頭, 科技網絡 > 在 Wordpress 安裝分享按鈕(PHP Code)

在 Wordpress 安裝分享按鈕(PHP Code)

wordpress share icon 480x222 在 Wordpress 安裝分享按鈕(PHP Code)

今天終在網友教學下,學會了一點點 PHP Code,也成功在 Wordpress  的環境下安裝自訂分享按鈕。現把該段 PHP Code 分享出來。由於該段 PHP Code 是以本網為基礎,所以若轉貼到閣下網站後,不能使用,請修正。(小弟能力有限,可幫必定幫忙)

<!– Twitter、Plurk、Facebook推文按鈕開始 –>
<div>
<span style=”color: #ff348c;”><strong>如果你覺得這篇文章吸引,請分享給更多人知道:</strong></span>
<br/><br/>
<!– <span class=”left”> –>

<a href=”http://twitter.com/home?status=推文:<?php the_title(); ?>%20<?php echo get_permalink() ?>” target=”_blank”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/twittericon-150×150.png” alt=”Twitter It!” height=”58″ title=”Twitter It!” style=”border:0px solid #CCCCCC”/></a>

<a href=’http://www.facebook.com/sharer.php?u=<?php echo get_permalink() ?>&amp;t=<?php the_title(); ?>’ target=’_blank’ title=’Share to Facebook!’><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/facebook-icon-150×1501.png” alt=”Share to Facebook!”  height=”58″ title=”Share to Facebook!” style=”border:0px solid #CCCCCC”/></a>

<a href=”javascript: void(window.open(‘http://www.plurk.com/?qualifier=shares&status=’ .concat(encodeURIComponent(location.href)) .concat(‘ ‘) .concat(‘&#40;’) .concat(encodeURIComponent(document.title)) .concat(‘&#41;’)));”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/plurk-icon-150×150.jpg” alt=”Plurk this!” title=”Plurk this!”  height=”58″ style=”border:0px solid #CCCCCC”/></a>

<a href=”http://funp.com/push/submit/add.php?url=<?php echo get_permalink() ?>”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/funp.gif” height=”58″</a>

<a href=”http://ping.fm/ref/?link=<?php echo get_permalink() ?>&title=<?php the_title(); ?>&body=”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/pingfm-icon-100×100.jpg” height=”58″></a>

<a href=”http://www.google.com/bookmarks/mark?op=edit&bkmk=<?php echo get_permalink() ?>&annotation=<?php the_title(); ?>&body=”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/googlebookmark-icon-150×150.png” height=”58″</a>

<a href=”http://www.hemidemi.com/user_bookmark/new?title=<?php the_title(); ?>&url=<?php echo get_permalink() ?>”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/hemidemi-ico.png” height=”58″></a>

<a href=”http://delicious.com/post?url=<?php echo get_permalink() ?>&notes=<?php the_title(); ?>”><img src=”http://www.stoneip.info/wp-content/uploads/2009/07/delicious-icon-150×150.png” height=”58″></a>
</span>
</div>
<!– Twitter、Plurk、Facebook推文按鈕結束 –>

感謝各位幫忙。


Categories: 打破石頭, 科技網絡

WP Greet Box icon

  第一次光臨石先生部落?那你可以訂閱 RSS feed 來隨時留意本網誌的更新啊!

  1. July 7th, 2009 at 10:07 | #1

    這東西好用~我推到噗浪、推特、臉書去。^_^

  1. 暫時沒有外部連結.
Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).