google-plus-badge

Yii extension for Google plus badge with custom attributes.
4 followers

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

Be the first person to leave a comment

Please to leave your comment.

Create extension