public function fancybox()
    {
        $this->Html->css([
            '/vendor/fancybox/jquery.fancybox',
            '/vendor/fancybox/helpers/jquery.fancybox-buttons',
            '/vendor/fancybox/helpers/jquery.fancybox-thumbs',
        ], ['block' => 'css_bottom']);

        $scripts = [
            '/vendor/fancybox/jquery.fancybox.pack',
            '/vendor/fancybox/helpers/jquery.fancybox-buttons',
            '/vendor/fancybox/helpers/jquery.fancybox-thumbs',
        ];

        //Checks for `APP/webroot/js/`
        if (is_readable(WWW_ROOT . 'js' . DS . 'fancybox_init.js')) {
            $scripts[] = 'fancybox_init';
        //Else, uses `APP/plugin/MeTools/webroot/fancybox/`
        } else {
            $scripts[] = 'MeTools./fancybox/fancybox_init';
        }

        $this->Asset->script($scripts, ['block' => 'script_bottom']);
    }
public function fancybox()
    {
        $this->Html->css([
            '/vendor/fancybox/jquery.fancybox',
            '/vendor/fancybox/helpers/jquery.fancybox-buttons',
            '/vendor/fancybox/helpers/jquery.fancybox-thumbs',
        ], ['block' => 'css_bottom']);

        $scripts = [
            '/vendor/fancybox/jquery.fancybox.pack',
            '/vendor/fancybox/helpers/jquery.fancybox-buttons',
            '/vendor/fancybox/helpers/jquery.fancybox-thumbs',
        ];

        //Checks for `APP/webroot/js/`
        if (is_readable(WWW_ROOT . 'js' . DS . 'fancybox_init.js')) {
            $scripts[] = 'fancybox_init';
        //Else, uses `APP/plugin/MeTools/webroot/fancybox/`
        } else {
            $scripts[] = 'MeTools./fancybox/fancybox_init';
        }

        $this->Asset->script($scripts, ['block' => 'script_bottom']);
    }
public function fancybox ( ) { $ this -> Html -> css ( [ '/vendor/fancybox/jquery.fancybox' , '/vendor/fancybox/helpers/jquery.fancybox-buttons' , '/vendor/fancybox/helpers/jquery.fancybox-thumbs' , ] , [ 'block' => 'css_bottom' ] ) ; $ scripts = [ '/vendor/fancybox/jquery.fancybox.pack' , '/vendor/fancybox/helpers/jquery.fancybox-buttons' , '/vendor/fancybox/helpers/jquery.fancybox-thumbs' , ] ; //Checks for `APP/webroot/js/` if ( is_readable ( WWW_ROOT . 'js' . DS . 'fancybox_init.js' ) ) { $ scripts [ ] = 'fancybox_init' ; //Else, uses `APP/plugin/MeTools/webroot/fancybox/` } else { $ scripts [ ] = 'MeTools./fancybox/fancybox_init' ; } $ this -> Asset -> script ( $ scripts , [ 'block' => 'script_bottom' ] ) ; }
Loads all FancyBox scripts.

FancyBox must be installed via Composer.
@return void
@see http://fancyapps.com/fancybox/#docs FancyBox documentation
@uses Assets\View\Helper\AssetHelper::script()
Loads all FancyBox scripts .