<?php

return array(

    'name' => 'widget/grid-slider',

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

    'config' => array(

        'name'  => 'grid-slider',
        'label' => 'Grid Slider',
        'core'  => true,
        'icon'  => 'plugins/widgets/grid-slider/widget.svg',
        'view'  => 'plugins/widgets/grid-slider/views/widget.php',
        'item'  => array('title', 'content', 'media'),
        'settings' => array(
            'grid'                => 'default',
            'parallax'            => false,
            'parallax_translate'  => '',
            'gutter'              => 'default',
            'gutter_dynamic'      => '20',
            'gutter_v_dynamic'    => '',
            'filter'              => 'none',
            'filter_tags'         => array(),
            'filter_align'        => 'left',
            'filter_all'          => true,
            'columns'             => '1',
            'columns_small'       => 0,
            'columns_medium'      => 0,
            'columns_large'       => 0,
            'columns_xlarge'      => 0,
            'panel'               => 'blank',
            'animation'           => 'none',

            'image_width'         => 'auto',
            'image_height'        => 'auto',
            'media_align'         => 'teaser',
            'media_width'         => '1-2',
            'media_breakpoint'    => 'medium',
            'content_align'       => true,

            'nav'                 => 'dotnav',
            'nav_overlay'         => true,
            'nav_align'           => 'center',
            'thumbnail_width'     => '70',
            'thumbnail_height'    => '70',
            'slidenav'            => 'default',
            'nav_contrast'        => true,
            'slide_animation'     => 'fade',
            'slices'              => '15',
            'duration'            => '500',
            'autoplay'            => false,
            'interval'            => '7000',
            'autoplay_pause'      => true,
            'kenburns'            => false,

            'title'               => true,
            'content'             => true,
            'title_size'          => 'panel',
            'text_align'          => 'left',
            'link'                => true,
            'link_style'          => 'button',
            'link_text'           => 'Read more',
            'badge'               => true,
            'badge_style'         => 'badge',
            'badge_position'      => 'panel',

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

    ),

    'events' => array(

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

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

    )

);
