<?php //主にモバイル用に表情は早くするためのアイコンボタン ?>
<?php if ( is_all_sns_share_btns_visible() ): ?>
<div class="sns-buttons sns-buttons-icon">
  <?php if ( get_share_msg() ): //シェアボタン用のメッセージを取得?>
  <p class="sns-share-msg"><?php echo esc_html( get_share_msg() ) ?></p>
  <?php endif; ?>
  <ul class="snsb clearfix snsbs">
    <?php if ( is_twitter_btn_visible() )://Twitterボタンを表示するか ?>
  	<li class="twitter-btn-icon"><a href="http://twitter.com/share?text=<?php echo urlencode( get_the_title() ); ?>&amp;url=<?php the_permalink() ?><?php echo get_twitter_via_param(); //ツイートにTwitter ID ?>" class="twitter-btn-icon-link" rel="nofollow"><span class="icon-twitter"></span><span class="social-count twitter-count"><i class="fa fa-spinner fa-spin"></i></span></a></li>
    <?php endif; ?>
    <?php if ( is_facebook_btn_visible() )://Facebookボタンを表示するか ?>
  	<li class="facebook-btn-icon"><a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink() ?>&amp;t=<?php echo urlencode( get_the_title() ); ?>" class="facebook-btn-icon-link" rel="nofollow"><span class="icon-facebook"></span><span class="social-count facebook-count"><i class="fa fa-spinner fa-spin"></i></span></a></li>
    <?php endif; ?>
    <?php if ( is_google_plus_btn_visible() )://Google＋ボタンを表示するか ?>
  	<li class="google-plus-btn-icon"><a href="https://plus.google.com/share?url=<?php echo rawurlencode(get_permalink($post->ID)) ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" class="google-plus-btn-icon-link" rel="nofollow"><span class="icon-googleplus"></span><span class="social-count googleplus-count"><i class="fa fa-spinner fa-spin"></i></span></a></li>
    <?php endif; ?>
    <?php if ( is_hatena_btn_visible() )://はてなボタンを表示するか ?>
  	<li class="hatena-btn-icon"><?php
//    $page_title=trim(wp_title( '', false));
//    $page_title_encoded=urlencode(mb_convert_encoding($page_title, "UTF-8"));
?>
    <a href="http://b.hatena.ne.jp/add?mode=confirm&amp;url=<?php echo get_encoded_url(get_permalink()) ?>&amp;title=<?php echo get_encoded_title( trim(wp_title( '', false)) ); ?>" class="hatena-btn-icon-link" rel="nofollow"><span class="icon-hatena"></span><span class="social-count hatebu-count"><i class="fa fa-spinner fa-spin"></i></span></a></li>
    <?php endif; ?>
    <?php if ( is_pocket_btn_visible() )://pocketボタンを表示するか ?>
  	<li class="pocket-btn-icon"><a href="https://getpocket.com/edit?url=<?php the_permalink() ?>" class="pocket-btn-icon-link" rel="nofollow"><span class="icon-pocket"></span><span class="social-count pocket-count"><i class="fa fa-spinner fa-spin"></i></span></a></li>
    <?php endif; ?>
    <?php if ( is_line_btn_visible() )://LINEボタンを表示するか ?>
      <?php if (wp_is_mobile()): //モバイルの時のみ表示?>
    	<li class="line-btn-icon"><a href="http://line.me/R/msg/text/?<?php the_title(); ?>%0D%0A<?php the_permalink(); ?>" class="line-btn-icon-link" rel="nofollow"><span class="icon-line"></span></a></li>
      <?php endif; ?>
    <?php endif; ?>
    <?php if ( is_evernote_btn_visible() )://Evernoteボタンを表示するか ?>
    <li class="evernote-btn-icon">
    <a href="#" onclick="Evernote.doClip({url:'<?php the_permalink();?>',
    providerName:'<?php bloginfo('name'); ?>',
    title:'<?php the_title();?>',
    contentId:'the-content',
    }); return false;" class="evernote-btn-icon-link" rel="nofollow"><span class="icon-evernote"></span></a></li>
    <?php endif; ?>
    <?php if ( is_feedly_btn_visible() )://feedlyボタンを表示するか ?>
    <li class="feedly-btn-icon">
    <a href="http://feedly.com/index.html#subscription%2Ffeed%2F<?php urlencode(bloginfo('rss2_url')); ?>" class="evernote-btn-icon-link" rel="nofollow"><span class="icon-feedly"></span><span class="social-count feedly-count"><i class="fa fa-spinner fa-spin"></i></span></a></li>
    <?php endif; //is_feedly_btn_visible?>
  </ul>
</div>
<?php endif; ?>