示例#1
0
function wdpv_get_vote_up($standalone = true, $post_id = false)
{
    return wdpv_get_vote_up_ms($standalone, false, $post_id);
}
                    break;
                case "reddit":
                    echo '<script type="text/javascript" src="http://www.reddit.com/static/button/button1.js"></script>';
                    break;
                case "linkedin":
                    if (!in_array('linkedin', $skip_script)) {
                        echo '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>';
                    }
                    echo '<script type="IN/Share" data-counter="right"></script>';
                    break;
                case "post_voting":
                    if (function_exists('wdpv_get_vote_up_ms') && is_singular()) {
                        global $blog_id;
                        $post_id = get_the_ID();
                        if ($post_id) {
                            echo wdpv_get_vote_up_ms(false, $blog_id, $post_id);
                            echo wdpv_get_vote_result_ms(true, $blog_id, $post_id);
                        }
                    }
                    break;
                case "pinterest":
                    if (!in_array('linkedin', $skip_script)) {
                        echo '<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>';
                    }
                    $count = in_array('pinterest', $no_count) ? 'none' : 'beside';
                    echo '<a data-pin-config="' . $count . '" href="//pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a>';
                    break;
            }
        }
        ?>
			</div>