social Insert twitter, googleplusone and facebook button

  1. Requirements
  2. Install
  3. Usage
  4. Usual parameters to be adjusted:
  5. Resources

Insert twitter, googleplusone and facebook button, accepting horizontal and vertical alignment.

Extension's code is XHTML valid.

Requirements

Tested with Yii 1.1.7

Install

  • Download the latest release package
  • Unpack it in /protected/extensions/ folder

Usage

Insert next code in your page, where do you want to place buttons.

<?php $this->widget('application.extensions.social.social', array(
	'style'=>'vertical', 
        'networks' => array(
		'twitter'=>array(
			'data-via'=>'', //http://twitter.com/#!/YourPageAccount if exists else leave empty
			), 
		'googleplusone'=>array(
			"size"=>"medium",
			"annotation"=>"bubble",
		), 
		'facebook'=>array(
			'href'=>'https://www.facebook.com/your_facebook_page',//asociate your page http://www.facebook.com/page 
			'action'=>'recommend',//recommend, like
			'colorscheme'=>'light',
			'width'=>'120px',
			)
		)
));?>

Usual parameters to be adjusted:

- style: button's alignment (string: horizontal or vertical).
- networks: social network which you must have (twitter, googleplusone, facebook);
- data-via:Your Twitter Page Account if exists or leave empty (url: //http://twitter.com/#!/YourPageAccount)
- size: google button size (string:small, standard, **medium**, tall)
- annotation: google button mode to show annotation(string: **bubble**, inline, none)
- href: Your Facebook Page (url: http://www.facebook.com/facebook_page)
- action: action for facebook button (string: **recommend** or like)
- colorscheme: used color scheme for facebook button (string: **light** or dark)
- width: the width for facebook button container (pixels: **120px**)

Resources

10 0
26 followers
2 330 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: matricks
Created on: Sep 23, 2011
Last updated: 6 years ago

Downloads

show all

Related Extensions