Yii extension to include the Plusone button in any page of a website
Switch branches/tags
Nothing to show
Latest commit 1b19c4b Feb 2, 2012 @alejofonseca Update README
Permalink
Failed to load latest commit information.
.settings
.buildpath
.project
GPluginBase.php
GPlusoneButton.php
README

README

This repository is an Yii extension for adding the google plusone button to website pages.

It was created based on the facebook-opengraph which is a more complex extension (a wrapper for the Facebook
PHP SDK class) developed by Evan Johnson <thaddeusmt - A T - gmail.com> and available at his github site on 
http://github.com/splashlab/yii-facebook-opengraph.

//////////////////////////////// INSTALLATION ////////////////////////////

1. Create a folder named yii-google-plusone into YOUR_PROJECT/protected/extensions/
2. Copy both files GPluginBase.php and GPlusoneButton.php into it.

You are ready to go!

////////////////////////////////// USAGE /////////////////////////////////

Render Google Plusone Plugin using helper Yii widgets:

<?php
$this->widget('ext.yii-google-plusone.GPlusoneButton', array(
  	      'width'=>'290',
	      'annotation'=>'inline',
	      'href'=>'YOUR_DOMAIN',
	      'lang'=>'es_ES'
));
?>

You can adapt the parameters to your needs (width, language, annotation and href).

Please log bugs to the GitHub tracker here.

Extension is also posted on Yii website:
http://www.yiiframework.com/extension/yii-google-plusone/

I hope you can use this extension as it's a very simple way of including Goolge +1 to your site.