Download the PHP package daxslab/yii2-sharelinks-widget without Composer
On this page you can find all versions of the php package daxslab/yii2-sharelinks-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-sharelinks-widget
yii2-sharelinks-widget
Yii2 widget for popular social networks "share link" generation. Based on https://github.com/ijackua/yii2-sharelinks-widget.
Supported Social Networks
Installation via Composer
add to require
section of your composer.json
"daxslab/yii2-sharelinks-widget": "*"
and run composer update
Usage Example
in template file use
Example custom view file
This eaxmple uses custom icons from Fontello, but you can make it what ever you want and customize what links do you need and what not.
Your @app/views/mypath/shareLinks.php
file could look like
<div class="socialShareBlock">
<?=
Html::a('<i class="icon-facebook-squared"></i>', $this->context->shareUrl(ShareLinks::SOCIAL_FACEBOOK),
['title' => 'Share to Facebook']) ?>
<?=
Html::a('<i class="icon-twitter-squared"></i>', $this->context->shareUrl(ShareLinks::SOCIAL_TWITTER),
['title' => 'Share to Twitter']) ?>
<?=
Html::a('<i class="icon-linkedin-squared"></i>', $this->context->shareUrl(ShareLinks::SOCIAL_LINKEDIN),
['title' => 'Share to LinkedIn']) ?>
<?=
Html::a('<i class="icon-gplus-squared"></i>', $this->context->shareUrl(ShareLinks::SOCIAL_GPLUS),
['title' => 'Share to Google Plus']) ?>
<?=
Html::a('<i class="icon-vkontakte"></i>', $this->context->shareUrl(ShareLinks::SOCIAL_VKONTAKTE),
['title' => 'Share to Vkontakte']) ?>
<?=
Html::a('<i class="icon-tablet"></i>', $this->context->shareUrl(ShareLinks::SOCIAL_KINDLE),
['title' => 'Send to Kindle']) ?>
</div>
All versions of yii2-sharelinks-widget with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package daxslab/yii2-sharelinks-widget contains the following files
Loading the files please wait ....