ShareLinks - Yii2 widget for "share this page" links in social networks
Mar 15, 2014, 5:55:30 PMInstallation via Composer
add to require
section of your composer.json
"ijackua/yii2-sharelinks-widget": "dev-master"
and run composer update
Usage Example
\ijackua\sharelinks\ShareLinks::widget(
[
'viewName' => '@app/views/mypath/shareLinks.php' //custom view file for you links appearance
]
);
Example view file
it uses custom icons from Fontello, but you can make it what ever you want and customize what links do you need adn what not ~~~php <?php use ijackua\sharelinks\ShareLinks; use \yii\helpers\Html;
/* @var yii\base\View $this */
?>
##Links
* [GitHub](https://github.com/iJackUA/yii2-sharelinks-widget)
* [Packagist](https://packagist.org/packages/ijackua/yii2-sharelinks-widget)