<?php

return array(

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

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

    'config' => array(

        'name'  => 'slideshow-gravity',
        'label' => 'Slideshow Gravity',
        'core'  => false,
        'icon'  => 'plugins/widgets/slideshow-gravity/widget.svg',
        'view'  => 'plugins/widgets/slideshow-gravity/views/widget.php',
        'item'  => array('title', 'content', 'media'),
        'settings' => array(
            'nav'                => 'dotnav',
            'nav_overlay'        => false,
            'nav_align'          => 'left',
            'thumbnail_width'    => '70',
            'thumbnail_height'   => '70',
            'thumbnail_alt'      => false,
            'slidenav'           => 'bottom-right',
            'nav_contrast'       => true,
            'animation'          => 'fade',
            'slices'             => '15',
            'duration'           => '750',
            'autoplay'           => true,
            'interval'           => '15000',
            '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'         => 'button',
            '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('slideshow-gravity.edit', 'plugins/widgets/slideshow-gravity/views/edit.php', true);
        }

    )

);
