<?php

return array(

    'name' => 'widget/magazine-tabs-gravity',

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

    'config' => array(

        'name'  => 'magazine-tabs-gravity',
        'label' => 'Magazine Tabs Gravity',
        'core'  => false,
        'icon'  => 'plugins/widgets/magazine-tabs-gravity/widget.svg',
        'view'  => 'plugins/widgets/magazine-tabs-gravity/views/widget.php',
        'item'  => array('title', 'content', 'media'),
        'fields' => array(
            array(
                'type' => 'text',
                'name' => 'badge',
                'label' => 'Badge'
            ),
            array(
                'type' => 'date',
                'name' => 'date',
                'label' => 'Date'
            ),
            array(
                'type' => 'text',
                'name' => 'caption',
                'label' => 'Caption'
            )
        ),  
        'settings' => array(
            'tab_position'      => 'right',

            'panel'             => 'space',
            'width'             => '1-3',
            'animation'         => 'fade',
            'min_height'        => '300',

            'media'             => true,
            'image_width'       => 'auto',
            'image_height'      => 'auto',

            'title'             => true,
            'title_size'        => 'panel',
            'link'              => true,
            'link_style'        => 'primary',
            'link_text'         => 'Learn more',

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

    ),

    'events' => array(

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

    )

);