yii-google-plusone Plugin for the Google +1 button.

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

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.

5 0
10 followers
456 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Networking
Developed by: alejofonseca
Created on: Feb 2, 2012
Last updated: 12 years ago

Downloads

show all