Skip to content
Permalink
Browse files

Add social buttons.

  • Loading branch information...
treby committed Jan 3, 2015
1 parent db4520a commit 4a1e6f3e9de53285d8eeb88e30cdcf61800ebf4e
Showing with 19 additions and 0 deletions.
  1. +4 −0 css/nodoka.css
  2. +15 −0 post.php
@@ -2,6 +2,10 @@ body.modal-open {
margin-right: 0;
}

iframe.twitter-share-button {
width: 100px!important;
}

/* {{{ blog entry */
.blog .entry {
}
@@ -26,6 +26,21 @@
the_tags('', ', ', '');
}
?>
<span class='pull-right' style='margin-top:3px;;'>
<a href="http://b.hatena.ne.jp/entry/<?php the_permalink(); ?>" class="hatena-bookmark-button"
data-hatena-bookmark-title="<?php the_title('', " | " . get_bloginfo('name')); ?>" data-hatena-bookmark-layout="simple-balloon"
title="このエントリーをはてなブックマークに追加">
<img src="https://b.st-hatena.com/images/entry-button/button-only@2x.png" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" />
</a>
<script type="text/javascript" src="https://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
<a href="https://twitter.com/share" class="twitter-share-button"
data-url="<?php the_permalink(); ?>" data-text="<?php the_title('', " | " . get_bloginfo('name')); ?>">
Tweet
</a>
<script>
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
</script>
</span>
</div>
<div class="entry-main">
<?php the_content(__('続きを読む'));?>

0 comments on commit 4a1e6f3

Please sign in to comment.
You can’t perform that action at this time.