2017 © Pedro Peláez
 

yii2-extension yii2-magnific-popup

This widget is wrapper for awesome jQuery plugin Magnific Popup

image

loveorigami/yii2-magnific-popup

This widget is wrapper for awesome jQuery plugin Magnific Popup

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 18 % Grown

The README.md

Yii2-magnific-popup

This widget is wrapper for awesome jQuery plugin Magnific Popup By Dmitry Semenov http://dimsemenov.com/plugins/magnific-popup/, (*1)

Magnific Popup is a responsive lightbox & dialog script with focus on performance and providing best experience for user with any device (for jQuery or Zepto.js)., (*2)

Installation

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

Either run, (*4)

$ php composer.phar require --prefer-dist loveorigami/yii2-magnific-popup "@dev"

or add, (*5)

"loveorigami/yii2-magnific-popup": "@dev"

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

Simple usage

in view file, (*7)

    <a href="original.jpg" title="Caption text"><img  src="/thumb_img.jpg" alt="Alt"></a>

```php use lo\widgets\magnific\MagnificPopup;, (*8)

echo MagnificPopup::widget( [ 'target' => '#mpup', 'options' => [ 'delegate'=> 'a', ] ] );, (*9)


for gallery ```html <div class="col-md-6" id="mpup"> <a href="original.jpg" title="Caption for first"><img src="/thumb_img.jpg" alt="Alt"></a> <a href="original2.jpg" title="Caption for second"><img src="/thumb_img2.jpg" alt="Alt"></a> </div>
echo MagnificPopup::widget(
    [
        'target' => '#mpup',
        'options' => [
            'delegate'=> 'a',
        ],
        'effect' => 'with-zoom' //for zoom effect
    ]
);

The Versions

06/10 2016

dev-master

9999999-dev https://github.com/loveorigami/yii2-magnific-popup

This widget is wrapper for awesome jQuery plugin Magnific Popup

  Sources   Download

MIT

The Requires

 

yii2 widget magnific-popup

06/10 2016

1.0

1.0.0.0 https://github.com/loveorigami/yii2-magnific-popup

This widget is wrapper for awesome jQuery plugin Magnific Popup

  Sources   Download

MIT

The Requires

 

yii2 widget magnific-popup