160+ World Class Divi WordPress theme free layout packs with original Photos and Graphics

‘,
enableHover: false,
enableTracking: true,
buttons: { twitter: {via: ‘smashingapps’}},
click: function(api, options){
api.simulateClick();
api.openPopup(‘twitter’);
}
});
jQuery(‘#facebook’).sharrre({
share: {
facebook: true
},
template: ‘

{total}

‘,
enableHover: false,
enableTracking: true,
click: function(api, options){
api.simulateClick();
api.openPopup(‘facebook’);
}
});
jQuery(‘#googleplus’).sharrre({
share: {
googlePlus: true
},
template: ‘

{total}

‘,
enableHover: false,
enableTracking: true,
urlCurl: ‘http://www.smashingapps.com/wp-content/themes/smashingapps/js/sharrre.php’,
click: function(api, options){
api.simulateClick();
api.openPopup(‘googlePlus’);
}
});
jQuery(‘#pinterest’).sharrre({
share: {
pinterest: true
},
template: ‘

{total}

‘,
enableHover: false,
enableTracking: true,
buttons: {
pinterest: {
description: ‘160+ World Class Divi WordPress theme free layout packs with original Photos and Graphics’,media: ‘http://my-smashing.smashingapps.netdna-cdn.com/wp-content/uploads/2020/05/divi-header.jpg’ }
},
click: function(api, options){
api.simulateClick();
api.openPopup(‘pinterest’);
}
});

// Scrollable sharrre bar, contributed by Erik Frye. Awesome!
var shareContainer = jQuery(“.sharrre-container”),
header = jQuery(‘#header’),
postEntry = jQuery(‘.entry’),
$window = jQuery(window),
distanceFromTop = 20,
startSharePosition = shareContainer.offset(),
contentBottom = postEntry.offset().top + postEntry.outerHeight(),
topOfTemplate = header.offset().top;
getTopSpacing();

shareScroll = function(){
if($window.width() > 719){
var scrollTop = $window.scrollTop() + topOfTemplate,
stopLocation = contentBottom – (shareContainer.outerHeight() + topSpacing);
if(scrollTop > stopLocation){
shareContainer.offset({top: contentBottom – shareContainer.outerHeight(),left: startSharePosition.left});
}
else if(scrollTop >= postEntry.offset().top-topSpacing){
shareContainer.offset({top: scrollTop + topSpacing, left: startSharePosition.left});
}else if(scrollTop 1024)
topSpacing = distanceFromTop + jQuery(‘.nav-wrap’).outerHeight();
else
topSpacing = distanceFromTop;
}

});

Leave a comment

Your email address will not be published.