Example 2 - Custom Buttons

The buttons can be added/removed by editing the button list for the "buttons" option. Changing the order of the buttons will also alter the order in which the buttons will appear in the page.

The following example also shows the use of the email button with the obfuscated email to hide the email address from spam harvesters - the source code will show "moc//niamod/liame" but when the email button is clicked the correct, unscrambled email appears in the email form.

jQuery Code

$(document).ready(function($){
	$('#social-share').dcSocialShare({
		buttons: 'facebook,linkedin,twitter,xing,digg,print,email',
		email: 'moc//niamod/liame'
	});
});

HTML

<div id="social-share"></div>

Note: Google plus button will not show for local addresses.