Yii 1.1: yii-google-plusone

Plugin for the Google +1 button.
10 followers

Yii extension for adding the Google +1 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 and available at his github site on http://github.com/splashlab/yii-facebook-opengraph.

Requirements

Yii 1.1 or above

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'
));
?>

Resources

https://github.com/alejofonseca/yii-google-plusone

Or download the zip file from the right side of this page under the "Downloads" section.

Be the first person to leave a comment

Please to leave your comment.

Create extension