<?php
return array(
    "type" => "block_gallery_item",
    "model" => "App\Models\BlockGalleryItem",
    "label" => "Block Gallery Items",
    "label_singular" => "Block Gallery Item",
    "template" => false,
    "group" => "none",
    "order" => true,
    "parent" => array(
        "field" => "block_id",
        "contentType" => "block"
    ),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title (Ref)",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:150",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "info" => "Not used on the frontend"
        ),
        array(
            "name" => "subtitle",
            "label" => "Subtitle / Subject",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
        ),
        array(
            "name" => "content",
            "label" => "Content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean"
        ),
        array(
            "name" => "caption",
            "label" => "Caption",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
        ),
        array(
            "name" => "mediaItem",
            "label" => "Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "1",
            "info" => "For Logo Slider, the image should preferably be a png with transparent background, no padding and be at least 300px in its wider dimension.\nFor Gallery Images these should be at least 1920x640 with the focus area centered at 1200px"
        ),
        array(
            "name" => "mediaItemMobile",
            "label" => "Mobile Image (only for gallery)",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "info" => "Mobile image for gallery should be aprox square with a minimum of 800x800 res"
        ),
        array(
            "name" => "cta",
            "label" => "Call to action",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
        ),
        array(
            "name" => "link_url",
            "label" => "Link for Logo - (Logo slider only)",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:255|url",
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
