<?php
return array(
    "type" => "journey_block",
    "model" => "JourneyBlock",
    "label" => "Climate Journey Blocks",
    "label_singular" => "Climate Journey Block",
    "parent" => array(
        "field" => "journey_template_cfg_id",
        "contentType" => "journey_template_cfg"
    ),
    "group" => "none",
    "template" => false,
    "order" => true,
    "websites" => array(1),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "Title",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
            "inList" => true,
            "search" => true
        ),
        array(
            "name" => "short_description",
            "label" => "Short Description",
            "type" => "editor",
            "maxLength" => 500,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "max:500",
            "inList" => false,
            "search" => true
        ),

        array(
            "name" => "heroImage",
            "label" => "Hero Image",
            "info" => "Should be at least 1920 wide and 1080 height",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "multiple" => false,
            "placement" => "sidebar",
            "minSize" => "1",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "1920x1080", "width" => 1920, "height" => 1080)
            )
            */
        ),
        array(
            "name" => "heroImageMobile",
            "label" => "Hero Image - Mobile",
            "info" => "Should be at least 640 wide and 828 height",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "1",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "640x828", "width" => 640, "height" => 828)
            )
            */
        ),
        array(
            "name" => "image_title",
            "label" => "Background Image Legend",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "image_cta",
            "label" => "Background Image CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post")
        ),
        array(
            "name" => "icon_name",
            "label" => "Block Icon",
            "type" => "selectBox",
            "list" => array(
                "ruler" => "Ruler",
                "target" => "Target",
                "footprint" => "Footprint",
                "finance" => "Finance",
                "communicate" => "Communicate"
            ),
            "placement" => "sidebar",
            "preValidation" => "trim",
            "validation" => "in:ruler,target,footprint,finance,communicate",
        ),
        array(
            "name" => "color",
            "label" => "Block Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7"
        ),
        array(
            "name" => "button_label",
            "label" => "Box Button Label",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
            "inList" => false,
            "search" => false,
            "placement" => "sidebar"
        ),
        array(
            "name" => "block_position",
            "label" => "Block Position",
            "type" => "selectBox",
            "list" => array(
                "bottom-left" => "Bottom Left",
                "center" => "Center",
                "bottom-right" => "Bottom Right"
            ),
            "placement" => "sidebar",
            "preValidation" => "trim",
            "validation" => "in:bottom-left,center,bottom-right",
        ),
        array(
            "name" => "detail_title_1",
            "label" => "Detail Slide 1 Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "detail_description_1",
            "label" => "Detail Slide 1 Description",
            "type" => "editor",
            "maxLength" => 1000,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "max:1000",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "detail_cta_1",
            "label" => "Detail Slide 1 CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post", "contact")
        ),


        array(
            "name" => "detail_title_2",
            "label" => "Detail Slide 2 Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "detail_description_2",
            "label" => "Detail Slide 2 Description",
            "type" => "editor",
            "maxLength" => 1000,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "max:1000",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "detail_cta_2",
            "label" => "Detail Slide 2 CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post", "contact")
        ),

        array(
            "name" => "detail_title_3",
            "label" => "Detail Slide 3 Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "detail_description_3",
            "label" => "Detail Slide 3 Description",
            "type" => "editor",
            "maxLength" => 1000,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "max:1000",
            "inList" => false,
            "search" => true
        ),
        array(
            "name" => "detail_cta_3",
            "label" => "Detail Slide 1 CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array("project", "page", "solution", "case_study", "news", "blog_post", "contact")
        )
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
