function wp_share_button($s)
{
    global $post;
    $key_qq = 801069107;
    $key_sina = 1767202731;
    $post_title = trim(strip_tags($post->post_title));
    $post_content = trim(strip_tags($post->post_content));
    $post_excerpt = trim(strip_tags(get_the_excerpt()));
    $post_link = get_permalink($post->ID);
    $post_id = $post->ID;
    // 设置分类ID
    $url = urlencode($post_link);
    // 文章网址
    $turl = "";
    $title = urlencode($post_title);
    // 文章标题
    $content .= $post_excerpt ? $post_excerpt : $post_content;
    // 内容摘要
    // 截取字数
    $qq = urlencode(str_replace($post_link, '', wp_status($content, '', 140, 1)));
    $sina = urlencode(str_replace($post_link, '', wp_status($content, '', 140, 1)));
    //$sohu = urlencode(str_replace($post_link, '', wp_status($content, '', 140, 1)));
    //$netease = urlencode(str_replace($post_link, '', wp_status($content, '', 140)));
    $content = urlencode(str_replace($post_link, '', wp_status($content, '', 140)));
    $pic = p2_catch_that_image();
    // 第一张图
    $pic_m = p2_catch_that_image_m();
    $share = array();
    $share['sina'] = array("新浪微博", "http://service.weibo.com/share/share.php?appkey=" . $key_sina . "&title=" . $sina . "&pic=" . $pic . "&url=" . $url);
    $share['qq'] = array("腾讯微博", "http://v.t.qq.com/share/share.php?appkey=" . $key_qq . "&title=" . $qq . "&pic=" . $pic . "&url=" . $url);
    //$share['sohu'] = array("搜狐微博","http://t.sohu.com/third/post.jsp??appkey=EyXuAogJI4bhlwJYVvtZ&title=".$sohu."&pic=".$pic."&content=utf-8&url=".$url);
    //$share['baidu'] = array("百度搜藏","http://cang.baidu.com/do/add?it=".$content."&iu=".$url."&dc=&fr=ien#nw=1");
    //$share['netease'] = array("网易微博","http://t.163.com/article/user/checkLogin.do?info=".$netease." ".$url."&images=".$pic."&link=http://tmd.cc/&source=糗事微博&togImg=true");
    $share['qzone'] = array("QQ空间", "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" . $url . "&pics=" . $pic . "&title=" . $title . "&summary=" . $content);
    $share['renren'] = array("人人网", "http://share.renren.com/share/buttonshare.do?title=" . $content . "&link=" . $url . "&pic=" . $pic);
    //$share['kaixin001'] = array("开心网","http://www.kaixin001.com/repaste/bshare.php?rtitle=".$title."&rcontent=".$content."&rurl=".$url);
    //$share['douban'] = array("豆瓣","http://www.douban.com/recommend/?url=".$url."&title=".$content."&v=1");
    // 最终输出
    foreach ($share as $key => $vaule) {
        echo '<a class="left" rel="nofollow" href="' . $vaule[1] . '" title="' . $vaule[0] . '" target="_blank"><span alt="' . $vaule[0] . '" class="shareico share' . $s . '_' . $key . '"></span></a> ';
    }
}
    the_ID();
    ?>
" class="shareico share_sina"></span><span alt="转帖到腾讯微博" data="s_<?php 
    the_ID();
    ?>
" class="shareico share_qq"></span><span alt="转帖到QQ空间" data="s_<?php 
    the_ID();
    ?>
" class="shareico share_qzone"></span></div></div><!-- .ts_post -->
                
                <div class="posrel">
				<a target="_blank" href="<?php 
    the_permalink();
    ?>
" class="ajax ximg thepermalink"><?php 
    the_post_thumbnail(array(192, 20048), array('class' => 'dhpic', 'title' => get_the_title(), 'alt' => get_the_title(), 'date-enlarge' => p2_catch_that_image()));
    ?>
               </a>
                           
                              
                             <div class="exinfo marbot"><a target="_blank" href="<?php 
    the_permalink();
    ?>
"><?php 
    echo get_the_excerpt();
    ?>
</a></div>
               
               </div>