This is a responsive social share bar widget for Yii2 projects. They define it as "Ridiculously Responsive Social Sharing Buttons".
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist imanilchaudhari/yii2-rrssb "dev-master"
or add
"imanilchaudhari/yii2-rrssb": "dev-master"
to the require section of your composer.json
file.
Usage ¶
Once the extension is installed, simply use it in your code by :
<?=\imanilchaudhari\rrssb\ShareBar::widget([
'title' => 'Title Content', // i.e. $model->title
'media' => 'image.jpg', // Media Content
'networks' => [
'Email',
'Facebook',
'Github',
'GooglePlus',
'Hackernews',
'LinkedIn',
'Pinterest',
'Pocket',
'Reddit',
'Tumblr',
'Twitter',
'Vk',
'Youtube'
]
]);
?>
About ¶
Yii2-rrssb is inspired by RRSSB.
Awesome but I have problem with twitter
Hi, I like this extension, it's awesome and I want to implement in my blog, the problem is when I try to share in twitter, the popup shows in blank like loading, but it doesn't work. What can I do?, please. Thank you.
I modified the twitter file and it works perfect. thanks for this extension.
Awesome but I have problem with twitter
Try after cleaning your assets folder, May it work. If not then you can customize with your configuration as twitter. Anyway feel free to update in this package. :)
It works
thank you for your support, it works perfect now, I modified the twitter view, I use this href
https://twitter.com/intent/tweet?text=<?php echo urlencode($title) ?>%20<?php echo urlencode($url) ?>&via=blonder413
Congratulations for this awesome extension
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.