dev-master
9999999-devnoelboss/featherlight for yii-2
MIT
The Requires
by andrew72ru
extension yii2 lightbox featherlight
1.0
1.0.0.0noelboss/featherlight for yii-2
MIT
The Requires
by andrew72ru
extension yii2 lightbox featherlight
noelboss/featherlight for yii-2
noelboss/featherlight for yii-2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist andrew72ru/yii2-featherlight "*"
or add, (*4)
"andrew72ru/yii2-featherlight": "*"
to the require section of your composer.json
file., (*5)
For base usage please refer to noelboss/featherlight documentation., (*6)
<?= \andrew72ru\featherlight\FeatherLight::widget([ 'src' => Url::to(['small-image']), // Small image 'url' => Url::to(['large-image']), // Large image 'imageOptions' => ['class' => 'img-thumbnail'] // Image html options ]); ?>
Url::to(['small-image-0']), // Small image 'url' => Url::to(['large-image-0']), // Large image ], [ 'src' => Url::to(['small-image-1']), // Small image 'url' => Url::to(['large-image-1']), // Large image ], [ 'src' => Url::to(['small-image-2']), // Small image 'url' => Url::to(['large-image-2']), // Large image ], [ 'src' => Url::to(['small-image-3']), // Small image 'url' => Url::to(['large-image-3']), // Large image ], ]; echo FeatherlightGallery::widget([ 'items' => $items, 'previewOptions' => ['class' => 'img-thumbnail'], // Small image html options 'sectionOptions' => ['style' => 'display: block'] // Section html options ]); ?>
In gallery usage, remember to large image url end with .jpg
, .png
or similar., (*7)
This is right url:, (*8)
http://mysite.org/image?w=1024&h=1024&file=image-0.jpg
And this is wrong, (*9)
http://mysite.org/image?file=image-0.jpg&w=1024&h=1024
noelboss/featherlight for yii-2
MIT
extension yii2 lightbox featherlight
noelboss/featherlight for yii-2
MIT
extension yii2 lightbox featherlight