updatedaddthis Updated version of AddThis widget by thiagovidal

  1. Usage
  2. Resources

This widget is just a tiny update of original code by thiagovidal — http://www.yiiframework.com/extension/addthis

I had to add some custom buttons, but original code didn't allow to add custom data to service's [A] HTML element. I've changed code a bit so widget's $showServices property can contain associative arrays within, where key is the service code (as per AddThis documentation), and value will be passed as htmlOptions to [A] HTML element.

Usage

$this->widget('application.extensions.addThis', array(
	'id'=>'addThis',
	'username'=>...,
	'htmlOptions'=>array(
		'class'=>'addthis_default_style',
		 ...
	),
	...
	'showServices'=>array(
		'tweet',
		'google_plusone'=>array(
			'g:plusone:size'=>'medium',
			'g:plusone:annotation'=>'bubble',
		),
		'facebook_like',
	),
	...
	'config'=>...
	'share'=>...
);

Resources

http://www.yiiframework.com/extension/addthis

4 0
10 followers
421 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Webkadabra
Created on: Sep 20, 2011
Last updated: 12 years ago

Downloads

show all

Related Extensions