示例#1
0
function rrssb_show_buttons($rrssb_content)
{
    $rrssb_content .= '
		<script>window.jQuery || document.write(\'<script src="js/vendor/jquery.1.10.2.min.js"><\\/script>\')</script>
		<style>
			' . get_option('rrssb_css') . '
		</style>
		<div class="share-container clearfix">
		<ul class="rrssb-buttons clearfix ' . get_option('rrssb_css_classes') . '">';
    if (1 == get_option('show_twitter')) {
        $rrssb_content .= rrssb_twitter_btn();
    }
    if (1 == get_option('show_facebook')) {
        $rrssb_content .= rrssb_facebook_btn();
    }
    if (1 == get_option('show_google')) {
        $rrssb_content .= rrssb_google_btn();
    }
    if (1 == get_option('show_github')) {
        $rrssb_content .= rrssb_github_btn();
    }
    if (1 == get_option('show_email')) {
        $rrssb_content .= rrssb_email_btn();
    }
    if (1 == get_option('show_linkedin')) {
        $rrssb_content .= rrssb_linkedin_btn();
    }
    if (1 == get_option('show_reddit')) {
        $rrssb_content .= rrssb_reddit_btn();
    }
    if (1 == get_option('show_pinterest')) {
        $rrssb_content .= rrssb_pinterest_btn();
    }
    if (1 == get_option('show_instagram')) {
        $rrssb_content .= rrssb_instagram_btn();
    }
    if (1 == get_option('show_youtube')) {
        $rrssb_content .= rrssb_youtube_btn();
    }
    if (1 == get_option('show_tumblr')) {
        $rrssb_content .= rrssb_tumblr_btn();
    }
    if (1 == get_option('show_pocket')) {
        $rrssb_content .= rrssb_pocket_btn();
    }
    $rrssb_content .= '</ul>';
    if (1 == get_option('give_rrssb_credit')) {
        $rrssb_content .= '
		<label><small> 
		<a href="https://github.com/ericakfranz/rrssb/">Get the RRSSB share plugin for your site.</a>
		</small></label>';
    }
    $rrssb_content .= '
		</div>';
    return $rrssb_content;
}
示例#2
0
function rrssb_show_buttons($rrssb_content)
{
    $rrssb_content .= '
		<script>window.jQuery || document.write(\'<script src="js/vendor/jquery.1.10.2.min.js"><\\/script>\')</script>
		<style>
			' . get_option('rrssb_css') . '
		</style>
		<div class="share-container clearfix">
		<ul class="rrssb-buttons clearfix ' . get_option('rrssb_css_classes') . '">';
    if (1 == get_option('show_facebook')) {
        $rrssb_content .= rrssb_facebook_btn();
    }
    if (1 == get_option('show_twitter')) {
        $rrssb_content .= rrssb_twitter_btn();
    }
    if (1 == get_option('show_google')) {
        $rrssb_content .= rrssb_google_btn();
    }
    if (1 == get_option('show_linkedin')) {
        $rrssb_content .= rrssb_linkedin_btn();
    }
    if (1 == get_option('show_reddit')) {
        $rrssb_content .= rrssb_reddit_btn();
    }
    if (1 == get_option('show_email')) {
        $rrssb_content .= rrssb_email_btn();
    }
    if (1 == get_option('show_pinterest')) {
        $rrssb_content .= rrssb_pinterest_btn();
    }
    if (1 == get_option('show_instagram')) {
        $rrssb_content .= rrssb_instagram_btn();
    }
    if (1 == get_option('show_youtube')) {
        $rrssb_content .= rrssb_youtube_btn();
    }
    if (1 == get_option('show_tumblr')) {
        $rrssb_content .= rrssb_tumblr_btn();
    }
    if (1 == get_option('show_pocket')) {
        $rrssb_content .= rrssb_pocket_btn();
    }
    if (1 == get_option('show_github')) {
        $rrssb_content .= rrssb_github_btn();
    }
    $rrssb_content .= '</ul>';
    if (1 == get_option('give_rrssb_credit')) {
        $rrssb_content .= '
		<label><small>Buttons by 
		<a href="https://wordpress.org/plugins/ridiculously-responsive-social-sharing-buttons/">RRSSB</a>
		</small></label>';
    }
    $rrssb_content .= '
		</div>';
    return $rrssb_content;
}