2017 © Pedro Peláez
 

yii2-extension yii2-featherlight

noelboss/featherlight for yii-2

image

andrew72ru/yii2-featherlight

noelboss/featherlight for yii-2

  • Thursday, July 23, 2015
  • by andrew72ru
  • Repository
  • 1 Watchers
  • 0 Stars
  • 69 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2-featherlight

noelboss/featherlight for yii-2, (*1)

Installation

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

The Versions

23/07 2015

dev-master

9999999-dev

noelboss/featherlight for yii-2

  Sources   Download

MIT

The Requires

 

by Avatar andrew72ru

extension yii2 lightbox featherlight

23/07 2015

1.0

1.0.0.0

noelboss/featherlight for yii-2

  Sources   Download

MIT

The Requires

 

by Avatar andrew72ru

extension yii2 lightbox featherlight