2017 © Pedro Peláez
 

library yii2-fancybox

Yii2 FancyBox extension

image

bigpaulie/yii2-fancybox

Yii2 FancyBox extension

  • Monday, May 4, 2015
  • by bigpaulie
  • Repository
  • 1 Watchers
  • 1 Stars
  • 811 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

yii2-fancybox

Yii2 FancyBox 2 extension, (*1)

FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages. It is built on the top of the popular JavaScript framework jQuery and is both easy to implement and a snap to customize., (*2)

Form more information on how to use FancyBox please go to their website http://fancyapps.com/fancybox/, (*3)

Install

The preferred way of installing is through composer, (*4)

    composer require --prefer-dist bigpaulie/yii2-fancybox "dev-master"

OR add to composer.json, (*5)

    "bigpaulie/yii2-fancybox": "dev-master"

Example usage :

    use bigpaulie\fancybox\FancyBox;

Images

    echo FancyBox::widget([
        'type' => 'image',
        'item' => [
            'href' => 'url_to_thumbnail',
            'src' => 'url_to_big_image',
        ],
    ]);

Inline content

    echo FancyBox::widget([
        'type' => 'inline',
        'item' => [
            'href' => '#myInline',
            'text' => 'click here',
        ],
    ]);

```html , (*6)

This is my inline content !, (*7)

### Ajax
```php
    echo FancyBox::widget([
        'type' => 'ajax',
        'item' => [
            'href' => 'http://example.com/ajax.php',
            'text' => 'click here',
        ],
    ]);

OR

    echo FancyBox::widget([
        'type' => 'ajax',
        'item' => [
            'href' => Url::to(['site/ajax']),
            'text' => 'click here',
        ],
    ]);

Media

    echo FancyBox::widget([
        'type' => 'media',
        'item' => [
            'href' => 'https://www.youtube.com/watch?v=YE7VzlLtp-4',
            'text' => 'click here',
        ],
        'clientOptions' => [
            'helpers' => [
                'media' => true,
            ],
        ],
    ]);

The Versions

04/05 2015

dev-master

9999999-dev

Yii2 FancyBox extension

  Sources   Download

MIT

The Requires

 

extension yii2 widget fancybox

01/05 2015

1.0.0

1.0.0.0

Yii2 FancyBox extension

  Sources   Download

MIT

The Requires

 

extension yii2 widget fancybox