5

我正在使用“sharrre”插件在我的一个网站上添加社交按钮。

该代码在 facebook、twitter 和 google+ 上运行良好。Pinterest 和 Linkedin 按钮根本没有显示。有任何想法吗?

$('#twitter').sharrre({
  share: { twitter: true },
  url: 'voxita.com',
  enableHover: false,
  enableTracking: true,
  template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>Tweet</div></a>',
  buttons: { twitter: {via: 'romaeventi'}},
  click: function(api, options){
    api.simulateClick();
    api.openPopup('twitter');
  }
});

$('#facebook').sharrre({
  share: { facebook: true },
  url: 'voxita.com',
  enableHover: false,
  enableTracking: true,
  template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>Like</div></a>',
  click: function(api, options){
    api.simulateClick();
    api.openPopup('facebook');
  }
});

$('#google').sharrre({
  share: { googlePlus: true },
  url: 'voxita.com',
  template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>+1</div></a>',
  enableHover: false,
  enableTracking: true,
  urlCurl: '',
  buttons: { googlePlus: {size: 'tall', annotation:'bubble'}},
  click: function(api, options){
    api.simulateClick();
    api.openPopup('googlePlus');
  }
});
$('#pinterest').sharrre({
share: { pinterest: true },
template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>Pins</div></a>',
enableHover: false,
enableTracking: true,
buttons: { description: '<?php echo the_title(); ?>'},
urlCurl: '<?php echo get_template_directory_uri() .'/js/sharrre/sharrre.php'; ?>',
click: function(api, options){
   api.simulateClick();
    api.openPopup('pinterest');
  }
});
4

0 回答 0