<?php
return array(
    "type" => "hp2_template_configuration",
    "model" => "App\Models\Hp2TemplateConfiguration",
    "label" => "new homepage template configurations",
    "label_singular" => "new homepage template advanced configuration",
    "parent" => array(
        "field" => "entry_id",
        "contentType" => "page"
    ),
    "group" => "none",
    "template" => false,
    "order" => false,
    "websites" => array(1),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "hero_title",
            "label" => "Hero Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "hero_subtitle",
            "label" => "Hero Subtitle",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "hero_cta",
            "label" => "Hero CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 25,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post")
        ),
        array(
            "name" => "hero_text_color",
            "label" => "Hero Text Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:7"
        ),
        array(
            "name" => "overlay_opacity",
            "label" => "Image/Video overlay opacity (%)",
            "type" => "textBox",
            "maxLength" => 3,
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|integer|max:100",
        ),
        array(
            "name" => "overlay_color",
            "label" => "Image/Video overlay color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:7",
        ),
        array(
            "name" => "hero_type",
            "label" => "Hero Type",
            "type" => "selectBox",
            "list" => array(
                "image" => "Image",
                "video" => "Video"
            ),
            "preValidation" => "trim",
            "validation" => "required|in:image,video"
        ),
        array(
            "name" => "heroImages",
            "label" => "Hero images",
            "info" => "If more than one added, they'll load in a random manner.",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => 'image',
            "multiple" => true,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "1920x768", "width" => 1920, "height" => 768),
                array("type" => "fit", "name" => "640x1036", "width" => 640, "height" => 1036)
            ),
            */
            "relatedContentType" => 'hp2_template_configuration',
            "parent" => array(
                "name" => "hero_type",
                "values" => array("image")
            )
        ),
        array(
            "name" => "mobileHeroImages",
            "label" => "Mobile Hero images",
            "info" => "If more than one added, they'll load in a random manner.",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => 'image',
            "multiple" => true,
            "minSize" => "1",
            "relatedContentType" => 'hp2_template_configuration',
        ),
        /*
        array(
            "name" => "hero_video",
            "label" => "Hero Video (Youtube ID)",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "parent" => array(
                "name" => "hero_type",
                "values" => array("video")
            )
        ),
        */
        array(
            "name" => "video",
            "label" => "Hero Background Video",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "video",
            "multiple" => false,
            "minSize" => "0",
            "parent" => array(
                "name" => "hero_type",
                "values" => array("video")
            )
        ),
        array(
            "name" => "content_title",
            "label" => "Content Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "content_text",
            "label" => "Content Text",
            "type" => "editor",
            "validation" => "",
            "multiLanguage" => true
        ),
        array(
            "name" => "blocks1_title",
            "label" => "1st Blocks Section Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "blocks1",
            "label" => "1st Blocks Section Blocks",
            "type" => "singlePicker",
            "objectType" => "generic_block",
            "pivotTable" => "hp2_blocks1",
            "order" => true,
            "maxSize" => 3
        ),
        array(
            "name" => "clients_title",
            "label" => "Our clients section title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "clients_cta",
            "label" => "Our clients section CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 25,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post")
        ),
        array(
            "name" => "clientLogos",
            "label" => "Client logos images",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => 'image',
            "multiple" => true,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "resize_noup", "name" => "400x", "width" => 400, "height" => 400),
            ),
            */
            "relatedContentType" => 'hp2_template_configuration'
        ),
        array(
            "name" => "blocks2_title",
            "label" => "2nd Blocks Section Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "blocks2",
            "label" => "2st Blocks Section Blocks",
            "type" => "singlePicker",
            "objectType" => "generic_block",
            "pivotTable" => "hp2_blocks2",
            "order" => true,
            "maxSize" => 3
        ),
        array(
            "name" => "team_title",
            "label" => "Our team section title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "team_cta",
            "label" => "Our team section CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 25,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post")
        ),
        array(
            "name" => "teamImage",
            "label" => "Our team block image",
            "info" => "Should be at least 1300px wide. Height is automatic.",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "multiple" => false,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "resize_noup", "name" => "1300x", "width" => 1300, "height" => 600),
                array("type" => "resize_noup", "name" => "600x", "width" => 600, "height" => 800),
            )
            */
        ),
        array(
            "name" => "teamMobileImage",
            "label" => "Our team block image - MOBILE",
            "info" => "Should be at least 600px wide. Height is automatic.",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "multiple" => false,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "resize_noup", "name" => "600x", "width" => 600, "height" => 800),
            )
            */
        ),
        array(
            "name" => "newsletter_title",
            "label" => "Newsletter Subscription Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "newsletter_text",
            "label" => "Newsletter Subscription Text",
            "type" => "editor",
            "validation" => "",
            "multiLanguage" => true
        ),
        array(
            "name" => "newsletter_legal_phrase",
            "label" => "Newsletter Legal Phrase",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150"
        ),
        array(
            "name" => "newsletter_legal_cta",
            "label" => "Newsletter Privacy Policy link",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 25,
            "objectTypes" => array("page")
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
