<?php

return array(

    'name' => 'widget/fullscreen-slideshow-gravity',

    'main' => 'YOOtheme\\Widgetkit\\Widget\\Widget',

    'config' => array(

        'name'  => 'fullscreen-slideshow-gravity',
        'label' => 'Fullscreen Slideshow Gravity',
        'core'  => false,
        'icon'  => 'plugins/widgets/fullscreen-slideshow-gravity/widget.svg',
        'view'  => 'plugins/widgets/fullscreen-slideshow-gravity/views/widget.php',
        'item'  => array('title', 'content', 'media'),
        'settings' => array(
            'nav'                => 'dotnav',
            'nav_overlay'        => false,
            'nav_align'          => 'center',
            'thumbnail_width'    => '70',
            'thumbnail_height'   => '70',
            'thumbnail_alt'      => false,
            'slidenav'           => 'default',
            'nav_contrast'       => true,
            'animation'          => 'puzzle',
            'slices'             => '20',
            'duration'           => '750',
            'autoplay'           => true,
            'interval'           => '10000',
            'autoplay_pause'     => true,
            'kenburns'           => false,
            'kenburns_animation' => '',
            'kenburns_duration'  => '15',
            'fullscreen'         => false,
            'min_height'         => '',

            'media'              => true,
            'image_width'        => 'auto',
            'image_height'       => 'auto',
            'overlay'            => 'middle-left',
            'overlay_animation'  => 'slide',
            'overlay_background' => false,

            'title'              => true,
            'content'            => true,
            'title_size'         => 'h2',
            'link'               => true,
            'link_style'         => 'primary',
            'link_text'          => 'Learn more',
            'badge'              => false,
            'badge_style'        => 'badge',

            'link_target'        => false,
            'class'              => ''
        )

    ),

    'events' => array(

        'init.site' => function($event, $app) {
            // $app['scripts']->add('uikit-slideshow', 'vendor/assets/uikit/js/components/slideshow.min.js', array('uikit'));
            // $app['scripts']->add('uikit-slideshow-fx', 'vendor/assets/uikit/js/components/slideshow-fx.min.js', array('uikit'));
        },

        'init.admin' => function($event, $app) {
            $app['angular']->addTemplate('fullscreen-slideshow-gravity.edit', 'plugins/widgets/fullscreen-slideshow-gravity/views/edit.php', true);
        }

    )

);
