<?php

return array(

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

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

    'config' => array(

        'name'  => 'event-tabs-gravity',
        'label' => 'Event Tabs Gravity',
        'core'  => false,
        'icon'  => 'plugins/widgets/event-tabs-gravity/widget.svg',
        'view'  => 'plugins/widgets/event-tabs-gravity/views/widget.php',
        'item'  => array('title', 'content', 'media'),
        'fields' => array(
            array(
                'type' => 'date',
                'name' => 'date',
                'label' => 'Date'
            ),
            array(
                'type' => 'text',
                'name' => 'caption',
                'label' => 'Caption'
            )
        ),       
        'settings' => array(
            'position'          => 'left',
            'width'             => '1-10',
            'panel'             => false,
            'min_height'        => '350',

            'media'             => true,
            'media_align'       => 'right-bottom',

            'title'             => true,
            'content'           => true,
            'title_size'        => 'panel',
            'text_align'        => 'left',
            'link'              => true,
            'link_style'        => 'primary',
            'link_text'         => 'Read more',

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

    ),

    'events' => array(

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

    )

);