<?php
$permalink = urlencode(get_permalink($post->ID));
$title = urlencode($post->post_title);
$title = str_replace('+','%20',$title);
?>
<li id="xianguo">
<a href="http://www.xianguo.com/service/submitdigg/?link=<?php echo $permalink; ?>&
title=<?php echo $title; ?>" target="_blank" rel="nofollow">分享到鲜果</a>
</li>
<li id="douban">
<a href="http://www.douban.com/recommend/?url=<?php echo $permalink; ?>&title=<?php echo $title; ?>&sel=&v=1" target="_blank" rel="nofollow">分享到豆瓣</a>
</li>
<li id="zuosa">
<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200">分享到做啥</a>
</li>
<li id="xiaonei">
<a href="http://share.xiaonei.com/share/buttonshare.do?link=<?php the_permalink() ?>&title=<?php the_title(); ?>"target="_blank" rel="nofollow" >分享到人人网</a>
</li>
<li id="kaixin001">
<a href="http://www.kaixin001.com/repaste/share.php?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="分享到开心网" target="_blank" rel="nofollow">分享到开心网</a>
</li>
<li id="sina"><a href="http://v.t.sina.com.cn/share/share.php?url=<?php the_permalink() ?>&title=<?php the_title(); ?>"target="_blank" rel="nofollow" " title="分享到新浪微博" target="_blank" rel="nofollow">分享到新浪微博</a></li>
/************************************************
* bookmark *
************************************************/
#share {
background:none repeat scroll 0 0 #FFF6EE;
-moz-border-radius:5px 5px 5px 5px;
-webkit-border-radius: 5px;
background:none repeat scroll 0 0 #FFF6EE;
border:1px solid #FFF6CC;
width:602px;
float:left;
}
#share li {
background:url("images/share.gif") no-repeat scroll 0 0 transparent;
float:left;
margin:6px 0 0 5px;
padding:4px 0 4px 20px;
list-style-type:none;
}
#share li#fanfou {
background-position:0 -44px;
}
#share li#facebook {
background-position:0 -22px;
}
#share li#friendfeed {
background-position:0 -66px;
}
#share li#douban {
background-position:0 -110px;
}
#share li#xiaonei {
background-position:0 -87px;
}
#share li#zuosa {
background-position:0 -130px;
}
#share li#myspace {
background-position:0 -153px;
}
#share li#kaixin001 {
background-position:0 -176px;
}
#share li#xianguo {
background-position:0 -199px;
}
#share li#sina {
background-position:0 -220px;
}
<p id="share">
<ul><?php include(TEMPLATEPATH."/bookmark.php");?></ul>
</p>
以上就是安达网络工作室关于《手工添加WordPress文章分享按钮(无插件)实现步骤》的一些看法。更多内容请查看本栏目更多内容!
在 WordPress 后盾,用户是依照用户名排序的,并且没有显示注册工夫,假如咱们心愿可以在后盾看到用户的注册...
明天收到了很多Bloger冤家的E-mail拜年短信,嘿嘿,觉得很好玩,可是他们是如何完成的这个呢,很简略的,可...
即便你的博客治理后盾的治理员身份被人破解了,普通他也不会同时破解你的网站空间ftp账号,所以他也更改不了...
作者 查问和某些作者(用户)无关的文章,能够应用 4 个参数: author(整数):用户 ID author_name(...
博客改换主域名是很失常的事件,但改换完主域名之后,有一些事件是必需实现,否则会影响到你的WordPress博客...
很多采纳WordPress顺序搭建的博客都相当注重与读者之间的互动,以评论为例,为了进步读者的体验品质,有的博...