google-plus-badge Yii extension for Google plus badge with custom attributes.

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

Yii extension for Google plus badge with custom attributes like - show tag line, theme, cover photo, layout etc. It's simple and less code extension but work great.

Requirements

Tested with Yii 1.1.14

Install

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

Usage

Paste the code into your main.php page or also you can use this code as per your requirement on any page.

$this->widget('application.extensions.GooglePlusBadge.GooglePlusBadge', array(
        'gbadge' => array(
			'url'=>'https://plus.google.com/114389194992381809226/',
			'width'=>'300',
			'theme'=>'light',
			'layout'=>'portrait',
			'show_tagline'=>'true',
			'show_coverphoto'=>'false',
		  )
  ));

Usual parameters to be adjusted:

  • url: Your google plus page link (url: http://plus.google.com/gplus_page_id)
  • width: Badge box width (in digit: 300)
  • theme: Badge box layout background (layout: light, dark)
  • layout: Badge box layout background (layout: portrait, landscape)
  • tagline: Display page tag line (show_faces: true, false)
  • coverphoto: Show background cover photo (show_border: true, false)

More Extension

Visit - www.yiiexpert.github.io

0 0
4 followers
204 downloads
Yii Version: all
License: BSD-2-Clause
Category: Web Service
Developed by: Rohit Suthar
Created on: Jul 4, 2014
Last updated: 10 years ago

Downloads

show all

Related Extensions