ruskid / yii2-jssocials
Yii2 JsSocials Wrapper
Installs: 1 507
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- bower-asset/jssocials: 1.*
- fortawesome/font-awesome: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2019-12-26 23:42:26 UTC
README
Installation
The preferred way to install this extension is through http://getcomposer.org/download/.
Either run
php composer.phar require ruskid/yii2-jssocials "dev-master"
or add
"ruskid/yii2-jssocials": "dev-master"
to the require section of your composer.json
file.
Why?
I didn't like existing yii2 share solutions...
- yii2-social has only native sharing and non customizable buttons
- Other solutions provided customizable buttons, but without built in popup and native sharing support.
jssocials is 👍 =)
Check these for pluginOptions
http://js-socials.com/demos/ https://github.com/tabalinas/jssocials
Usage
echo JsSocials::widget([ 'theme' => JsSocials::THEME_MINIMA, //4 available themes 'pluginOptions' => [ 'showLabel' => false, 'showCount' => false, 'shareIn' => 'popup', 'shares' => [ [ 'share' => 'email', 'label' => Yii::t('app', 'Email'), 'to' => 'demmbox@gmail.com', ], "twitter", "facebook", "googleplus", "linkedin", "pinterest", "stumbleupon", "whatsapp" ] ] ]);