<?php

return array(

    'name' => 'widget/popover',

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

    'config' => array(

        'name'  => 'popover',
        'label' => 'Popover',
        'core'  => true,
        'icon'  => 'plugins/widgets/popover/widget.svg',
        'view'  => 'plugins/widgets/popover/views/widget.php',
        'item'  => array('title', 'content', 'media'),
        'fields' => array(
            array(
                'type' => 'text',
                'name' => 'top',
                'label' => 'Top (%)'
            ),
            array(
                'type' => 'text',
                'name' => 'left',
                'label' => 'Left (%)'
            )
        ),
        'settings' => array(
            'width'             => '',
            'image'             => '',
            'image_hero_width'  => 'auto',
            'image_hero_height' => 'auto',
            'position'          => 'top-center',
            'mode'              => 'hover',
            'toggle'            => 'plus',
            'contrast'          => true,
            'panel'             => 'default',
            'panel_link'        => false,

            'media'             => true,
            'image_width'       => 'auto',
            'image_height'      => 'auto',
            'media_overlay'     => 'icon',
            'overlay_animation' => 'fade',
            'media_animation'   => 'scale-up',

            'title'             => true,
            'content'           => true,
            'title_size'        => 'h3',
            'title_element'     => 'h3',
            'text_align'        => 'left',
            'link'              => true,
            'link_style'        => 'button',
            'link_text'         => 'Read more',

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

    ),

    'events' => array(

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

    )

);
