The Likely widget is a wrapper for the Likely Plugin JS Plugin designed by Ilya Birman. This plugin is a simple and beautiful created for adding social sharing buttons that aren’t shabby.
The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies.
To install, either run
$ php composer.phar require mooza/yii2-likely "*"
or add
"mooza/yii2-likely": "*"
to the require
section of your composer.json
file.
NOTE: The latest version of the module is v1.0.0. Refer the CHANGE LOG for details.
use mooza\likely\Likely;
echo Likely::widget([
'pluginOptions' => [
'colorClass' => 'light',
'items' => [
[
'class' => 'facebook'
],
[
'class' => 'twitter',
'title' => 'Share'
],
]
]
]);
yii2-likely is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details.