socialshareprivacy Widget for jQuery socialshareprivacy Plugin - For Facebook, Twitter and Google+

  1. Requirements
  2. Usage
  3. Resources

This is basicly a wrapper extension for the jQuery socialshareprivacy Plugin developed by heise.de. It allows to include the typical 'I Like', 'Tweet' and '+1' Buttons from Facebook, Twitter and Google+ respectively.
Unlike the original scripts, this one requires the user to "switch on" the buttons before loading the external scripts from the mentioned providers, allowing the user to take control of their personal data and offer them a way to opt-out of data collection for advertising and other reasons.

Requirements

Yii 1.1.5

Usage

Using the extension is straightforward.

  1. Extract the Widget within your application (typically within the extension directory)
  2. Use the following code within your layout (or within a view) to show the bar.
$this->widget('ext.socialshareprivacy.SocialSharePrivacy', array(
	// Options are directly passed to the plugin as JSON array
	// See offical documentation for valid values (See below)
	'options' => array(
		'services' => array(
			// Turn off the twitter button
			'twitter' => array('status' => 'off'),
		),
	),
	'htmlOptions' => array(
		// Assign your own options if you want
		// 'style' => 'width: 900px; margin: 0 auto;',
	),
));

Example Preview (With twitter enabled):
Social Share Privacy HTML Preview

With all buttons turned on the bar requires approximately 600px in width and 290px in height.

Resources

1 0
5 followers
426 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: Coksnuss
Created on: Aug 18, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions