..code..
<?php do_action('photo_after_gplus_icon'); ?>
//part added by me
<div class="entry-pinterest-button">
<a href="//www.pinterest.com/pin/create/button/?url=<?php get_page_link($id, $leavename, $sample); ?>" data-pin-do="buttonPin" data-pin-config="above" data-pin-color="red"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a>
<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></div>
I think I should add class="entry-pinterest-button" somewhere in style.css?