social-share-button

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

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

Total 13 comments

#19557 report it
Fabio_Martins at 2015/09/07 10:11am
Facebook link with added margin

Hi there, Good extension!! Very easy to use. I do have a small problem. The facebook link has margin/padding, in which places the link a bit lower than the other ones. You can see it on this link http://capoeiravillage.com/. Any help will much appreciated.

#19466 report it
Rohit Suthar at 2015/07/16 09:05am
RE #19465

thanks @the.shred buddy :)..

#19465 report it
the.shred at 2015/07/16 08:40am
Nice

Very nice, easy to implement. Thanks

#18999 report it
Rohit Suthar at 2015/02/20 08:21am
RE #18998

Good one!!

@fred_12 Thanks for using this :)...

#18998 report it
fred_12 at 2015/02/20 08:08am
Solved

The image shows that the share facebook . But already solved it in the shared page should add the following tag:

<link href = "image_url" rel = "image_src" />

And they can validate the image of their shared page here:

https://developers.facebook.com/tools/debug/

Thanks for the extension, very easy to implement.

#18996 report it
Rohit Suthar at 2015/02/20 05:09am
RE #18986

@fred_12 Which picture you want to change... Content picture or other ones??

#18986 report it
fred_12 at 2015/02/18 02:33pm
Change Image to share

Can you change the picture to share? Is there any way to customize this?

#18834 report it
Rohit Suthar at 2015/01/20 12:26am
RE #18832

thanks @redDevil...

#18832 report it
redDevil at 2015/01/19 01:03pm
Just wanted to say thank you

very useful and straightforward.. Awesome!

#18294 report it
Rohit Suthar at 2014/10/13 03:19am
RE #18278

@dragan.zivkovic

thanks for using this :)..

#18278 report it
dragan.zivkovic at 2014/10/10 04:19pm
Nice

Just what I needed at this moment

#18065 report it
Rohit Suthar at 2014/09/03 03:44am
RE #18063

@noorkhan

your welcome man... thanks for using this :)..

#18063 report it
noorkhan885 at 2014/09/03 03:03am
Good One

thanx buddy for this nice extension ... it is what i required

Leave a comment

Please to leave your comment.

Create extension