Skip to content
forked from Julienh/Sharrre

jQuery plugin for Social Sharing and Likes. Added VK.com and changed Facebook and Twitter behavior.

Notifications You must be signed in to change notification settings

annexare/Sharrre

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharrre: jQuery Plugin for Sharing

Sharrre is a jQuery plugin that allows you to create nice widgets sharing for Facebook, Twitter, Google Plus (with PHP script), VK and more.

Current modification aims to add VK support and improve behavior for corporate websites: Facebook Pages support, Twitter followers (and some more things are planned). Basically created by Julien Hany.

Usage

	$('#sharrre').sharrre({
		share: {
			googlePlus: true,
			facebook: true,
			twitter: true,
			vk: true
		},
		buttons: {
			vk: {
				apiId: 0, // VK.com App ID is required
			}
		},
		url: 'http://jquery.com/'
	});

Examples

	<div id="demo1" data-title="sharrre" data-url="http://jquery.com/"></div>
	$(document).ready(function(){
		$('#demo1').sharrre({
			share: {
				googlePlus: true,
				facebook: true,
				twitter: true,
				delicious: true
			},
			buttons: {
				googlePlus: {size: 'tall'},
				facebook: {layout: 'box_count'},
				twitter: {count: 'vertical'},
				delicious: {size: 'tall'}
			},
			hover: function(api, options){
				$(api.element).find('.buttons').show();
			},
			hide: function(api, options){
				$(api.element).find('.buttons').hide();
			}
		});
	});

See more examples on author's official website.

Dependencies

Author

Modifications

Changes by Annexare Studio:

  • Facebook Page likes count.
  • Twitter Followers button and followers global count.
  • VK support.
	buttons: {
		twitter: {
			username: false // if string, gets number of followers instead of tweets
		},
		vk: {
			apiId: 0,     // VK.com App ID
			height: 22,   // button height: 18, 20, 22, 24
			// pageTitle
			// pageDescription
			pageUrl: '',  // if you need to personalize url button
			// pageImage
			// text: '',  // 140 chars max
			type: 'full', // button, full, mini, vertical
			verb: 0,      // 0 like, 1 recommend
			width: 350    // only for type = full
		}
	}

About

jQuery plugin for Social Sharing and Likes. Added VK.com and changed Facebook and Twitter behavior.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.6%
  • PHP 9.4%