Example #1
0
	<div class="sns">
	<ul class="clearfix">
		<!--ツイートボタン-->
		<li class="twitter"> 
		<a href="http://twitter.com/intent/tweet?url=<?php 
    echo $url_encode;
    ?>
&text=<?php 
    echo $title_encode;
    ?>
&via=<?php 
    echo $twitter_name;
    ?>
&tw_p=tweetbutton" target="_blank"><i class="fa fa-twitter"></i><?php 
    if (function_exists('scc_get_share_twitter')) {
        echo scc_get_share_twitter() == 0 ? '' : '<span class="snstext">' . scc_get_share_twitter() . '</span>';
    }
    ?>
</a>
		</li>

		<!--Facebookボタン-->      
		<li class="facebook">
		<a href="http://www.facebook.com/sharer.php?src=bm&u=<?php 
    echo $url_encode;
    ?>
&t=<?php 
    echo $title_encode;
    ?>
" target="_blank"><i class="fa fa-facebook"></i>
		<?php 
Example #2
0
">twitter</p>
</a>
<?php 
if (function_exists('scc_get_share_twitter')) {
    if (is_singular()) {
        ?>
		<p class="share-count"><?php 
        echo scc_get_share_twitter();
        ?>
</p>
	<?php 
    } else {
        if (is_front_page() && !$is_scc_old_version) {
            ?>
		<p class="share-count"><?php 
            echo scc_get_share_twitter(array(post_id => 'home'));
            ?>
</p>
	<?php 
        }
    }
}
?>
</div>

<!-- facebook -->
<?php 
$count_blind_fb = false;
if (!function_exists('scc_get_share_facebook')) {
    $count_blind_fb = true;
}
<div class="sns">
<ul class="clearfix">
<!--ツイートボタン-->
<li class="twitter"> 
<a target="blank" href="http://twitter.com/intent/tweet?url=<?php 
echo $url_encode;
?>
&text=<?php 
echo urlencode(the_title("", "", 0));
if (get_the_author_meta('twitter')) {
    echo $tw_user;
}
?>
&tw_p=tweetbutton" onclick="window.open(this.href, 'tweetwindow', 'width=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1'); return false;"><i class="fa fa-twitter"></i><span class="text">Twitter</span><span class="count"><?php 
if (function_exists('scc_get_share_twitter')) {
    echo scc_get_share_twitter() == 0 ? '' : scc_get_share_twitter();
}
?>
</span></a>
</li>

<!--Facebookボタン-->      
<li class="facebook">
<a href="http://www.facebook.com/share.php?u=<?php 
the_permalink();
?>
"onclick="window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-facebook"></i>
<span class="text">Facebook</span><span class="count"><?php 
if (function_exists('scc_get_share_facebook')) {
    echo scc_get_share_facebook() == 0 ? '' : scc_get_share_facebook();
}
Example #4
0
		<!--ツイートボタン-->
		<li class="twitter"> 
		<a target="_blank" href="http://twitter.com/intent/tweet?url=<?php 
    echo $url_encode;
    ?>
&text=<?php 
    echo $title_encode;
    ?>
&via=<?php 
    echo $twitter_name;
    ?>
&tw_p=tweetbutton"><i class="fa fa-twitter"></i>
		<?php 
    if (function_exists('get_scc_twitter')) {
        if (scc_get_share_twitter(array('post_id' => 'home')) !== 0) {
            echo '<span class="snstext">' . scc_get_share_twitter(array('post_id' => 'home')) . '</span>';
        }
    }
    ?>
</a>
		</li>

		<!--Facebookボタン-->      
		<li class="facebook">
		<a target="_blank" href="http://www.facebook.com/sharer.php?src=bm&u=<?php 
    echo $url_encode;
    ?>
&t=<?php 
    echo $title_encode;
    ?>
"><i class="fa fa-facebook"></i>