social-share-button All top social media share buttons like - facebook, twitter, linkedin, googleplus, pinterest etc.

  1. Requirements
  2. Install
  3. Usage
  4. What's New?
  5. Download
  6. Usual parameters to be adjusted:
  7. More Extension

All top social media share buttons like - facebook, twitter, linkedin, googleplus and pinterest.

Requirements

Tested with Yii 1.1.14 & Latest Version

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.

$this->widget('application.extensions.SocialShareButton.SocialShareButton', array(
		'style'=>'horizontal',
        'networks' => array('facebook','googleplus','linkedin','twitter'),
		'data_via'=>'', //twitter username (for twitter only, if exists else leave empty)
));

What's New?

  • Added Pinterest (Pin It button) Download social-share-button v1.0.1
$this->widget('application.extensions.SocialShareButton.SocialShareButton', array(
		'style'=>'horizontal',
        'networks' => array('facebook','googleplus','linkedin','twitter','pinterest'),
		'data_via'=>'', //twitter username (for twitter only, if exists else leave empty)
));

Download

https://github.com/rohitsuthar/SocialShareButton

Usual parameters to be adjusted:

  • style: share button styles (string: vertical or horizontal).
  • social media: social network which you must have (facebook, twitter, googleplus, linkedin.);
  • data_via: You can specify your twitter username (string: rohisuthar).

More Extension

Visit - www.yiiexpert.github.io