Skip to content

Instantly share code, notes, and snippets.

@mono96
Created January 31, 2016 05:37
Show Gist options
  • Save mono96/ca2ac2fa50db9d909e4b to your computer and use it in GitHub Desktop.
Save mono96/ca2ac2fa50db9d909e4b to your computer and use it in GitHub Desktop.
<!-- begin facebookページ いいね for moblie -->
<?php if (is_mobile()) :?>
<div class="p-shareButton p-asideList p-shareButton-bottom">
<div class="p-shareButton__cont">
<div class="p-shareButton__a-cont">
<div class="p-shareButton__a-cont__img" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>')">
</div>
<div class="p-shareButton__a-cont__btn">
<p>この記事が気に入ったらいいね!しよう</p>
<div class="p-shareButton__fb-cont p-shareButton__fb">
<div class="fb-like" data-href="https://www.facebook.com/boxofpicture/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false">
</div>
<span class="p-shareButton__fb-unable"></span>
</div>
</div>
</div>
</div>
</div>
<?php else: ?>
<!-- begin facebookページ いいね for Pc -->
<div style="padding:10px 0px;"></div>
<div class="p-entry__push">
<div class="p-entry__pushThumb" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>')">
</div>
<div class="p-entry__pushLike">
<p>この記事が気に入ったら<br>いいね!しよう</p>
<div class="p-entry__pushButton">
<div class="fb-like" data-href="https://www.facebook.com/boxofpicture/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false">
</div>
</div>
</div>
</div>
<?php endif; ?>
<!-- end facebookページ いいね end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment