<?php
return array(
    "type" => "sticky_cta",
    "model" => "App\Models\StickyCta",
    "label" => "Sticky Ctas",
    "label_singular" => "Sticky Cta",
    "group" => "general",
    "template" => false,
    "order" => true,
    "websites" => array(1),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "Name",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "info" => "Name is for internal reference only"
        ),
        array(
            "name" => "title_frontend",
            "label" => "Title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "max:100"
        ),
        array(
            "name" => "subtitle",
            "label" => "Subtitle",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "max:255"
        ),
        array(
            "name" => "cta",
            "label" => "CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 25,
        ),
        array(
            "name" => "image",
            "label" => "Image",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            "minSize" => 0,
            "relatedContentType" => 'sticky_cta'
        ),
        array(
            "name" => "icon",
            "label" => "Alternative icon (SVG)",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "document",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
        ),
        array(
            "name" => "color_scheme",
            "label" => "Color scheme",
            "type" => "selectBox",
            "list" => array(
                "dark-blue" => "Dark blue",
                "light-blue" => "Light Blue",
            ),
            "preValidation" => "trim",
            "validation" => "required|in:dark-blue,light-blue",
            "placement" => "sidebar"
        )
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
