All top social media share buttons like - facebook, twitter, linkedin, googleplus and pinterest.
Tested with Yii 1.1.14 & Latest Version
- Download the latest release package
- Unpack it in /protected/extensions/ folder
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) ));
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
thanx buddy for this nice extension ... it is what i required
your welcome man... thanks for using this :)..
Just what I needed at this moment
thanks for using this :)..
Just wanted to say thank you
very useful and straightforward.. Awesome!
Change Image to share
Can you change the picture to share? Is there any way to customize this?
@fred_12 Which picture you want to change... Content picture or other ones??
The image shows that the share facebook .
But already solved it in the shared page should add the following tag:
And they can validate the image of their shared page here:
Thanks for the extension, very easy to implement.
@fred_12 Thanks for using this :)...
Very nice, easy to implement. Thanks
thanks @the.shred buddy :)..
Facebook link with added margin
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.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.