2017 © Pedro Peláez
 

yii2-extension yii2-imagegalary

The Yii2 extension uses jQuery PrettyPhoto and OwlCarousel js and makes image galary from php array of structure defined.

image

slavkovrn/yii2-imagegalary

The Yii2 extension uses jQuery PrettyPhoto and OwlCarousel js and makes image galary from php array of structure defined.

  • Sunday, August 6, 2017
  • by slavkovrn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 241 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

Image galary widget for Yii2 Framework

The Yii2 extension uses jQuery LightBox and OwlCarousel js and makes image galary from php array of structure defined., (*1)

Image galary PHP Array generator., (*2)

Image galary, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run:, (*5)

composer require slavkovrn/yii2-imagegalary

or add, (*6)

"slavkovrn/yii2-imagegalary": "*"

to the require section of your composer.json file., (*7)

Usage

Set link to extension in your view:, (*8)



= ImageGalaryWidget::widget([
    'id' =>'imagegalary',       // id of plugin should be unique at page
    'class' =>'imagegalary',    // class of div to define style
    'css' => 'border:white;',   // css commands of class (for example - border-radius:5px;)
    'image_width' => 320,       // height of image visible in pixels
    'image_height' => 240,      // width of image visible in pixels
    'thumb_width' => 80,        // height of thumb images in pixels
    'thumb_height' => 50,       // width of thumb images in pixels
    'items' => 3,               // number of thumb items
    'images' => [               // images of galary
        [
                'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image1.jpg',
                'title' => 'Image visible in widget',
        ],
        [
                'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image2.jpg',
                'title' => 'image 1',
        ],
        [
                'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image3.jpg',
                'title' => 'image 2',
        ],
        [
                'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image4.jpg',
                'title' => 'image 3',
        ],
    ]
]) ?>

write comments to admin, (*9)

The Versions

06/08 2017

dev-master

9999999-dev

The Yii2 extension uses jQuery PrettyPhoto and OwlCarousel js and makes image galary from php array of structure defined.

  Sources   Download

MIT

The Requires

 

extension yii2 owlcarousel prettyphoto image galary

06/08 2017

1.0.0

1.0.0.0

The Yii2 extension uses jQuery PrettyPhoto and OwlCarousel js and makes image galary from php array of structure defined.

  Sources   Download

MIT

The Requires

 

extension yii2 owlcarousel prettyphoto image galary