Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.pinterest-<?php the_ID(); ?>').each(function(){
- var self = this;
- $(this).sharrre({
- share: {
- pinterest: true
- },
- enableHover: false,
- template: '<div class="box"><a class="count" href="#">{total}</a><a class="share" href="#">Pin</a></div>',
- enableTracking: true,
- buttons: {
- pinterest: {
- description: '<?php echo the_title(); ?>'<?php if( has_post_thumbnail() ){ ?>,media: '<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>'<?php } ?>
- }
- },
- click: function(api, options){
- api.simulateClick();
- api.openPopup('pinterest');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement