dev-master
9999999-devYii prettyPhoto image galary widget uses Lightbox view control jquery.prettyphoto.js
BSD-3-Clause
yii image galary widget jquery lightbox images view control yii 1
Wallogit.com
2017 © Pedro Peláez
Yii prettyPhoto image galary widget uses Lightbox view control jquery.prettyphoto.js
The extension uses jQuery PrettyPhoto and makes image galary from php array of structure defined., (*1)
PrettyPhoto image galary PHP Array generator., (*2)
, (*3)
The preferred way to install this extension is through composer., (*4)
Either run:, (*5)
composer require slavkovrn/yii-prettyphoto:dev-master
or add, (*6)
"slavkovrn/yii-prettyphoto": "dev-master"
to the require section of your composer.json file., (*7)
Set link to extension in your view:, (*8)
<?php $this->widget(slavkovrn\prettyphoto\PrettyPhotoWidget::class,[
'id' =>'prettyPhoto', // id of plugin should be unique at page
'images' => [ // images at popup window of prettyPhoto galary
1 => [
'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image1.jpg',
'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image1.jpg',
'title' => 'Image visible in widget',
],
2 => [
'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image2.jpg',
'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image2.jpg',
'title' => 'image 1',
],
3 => [
'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image3.jpg',
'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image3.jpg',
'title' => 'image 2',
],
4 => [
'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image4.jpg',
'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image4.jpg',
'title' => 'image 3',
],
]
]); ?>
write comments to admin, (*9)
Yii prettyPhoto image galary widget uses Lightbox view control jquery.prettyphoto.js
BSD-3-Clause
yii image galary widget jquery lightbox images view control yii 1