<?php
return array(
    "type" => "landing_page_cfg",
    "model" => "LandingPageCfg",
    "label" => "Landing Page Configuration",
    "label_singular" => "Landing Page Configuration",
    "parent" => array(
        "field" => "entry_id",
        "contentType" => "page"
    ),
    "group" => "none",
    "template" => false,
    "order" => false,
    "websites" => array(1),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "header_type",
            "label" => "Hero Header Type",
            "type" => "selectBox",
            "list" => array(
                "full_header" => "Full Header",
                "title_header" => "Title Heading",
                "no_header" => "No Header"
            ),
            "preValidation" => "trim",
            "validation" => "in:full_header,title_header,no_header",
        ),
        /*
        array(
            "name" => "phone_number",
            "label" => "Header Phone Number",
            "type" => "textBox",
            "maxLength" => 25,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:25"
        ),
        array(
            "name" => "phone_color",
            "label" => "phone color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7"
        ),
        */
        array(
            "name" => "headline",
            "label" => "headline",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
            "parent" => array(
                "name" => "header_type",
                "values" => array("full_header", "title_header")
            )
        ),
        array(
            "name" => "headline_color",
            "label" => "headline text color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "header_type",
                "values" => array("full_header", "title_header")
            )
        ),
        array(
            "name" => "background_color",
            "label" => "Header Background Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "header_type",
                "values" => array("full_header", "title_header")
            )
        ),
        array(
            "name" => "bgImage",
            "label" => "Header Background image",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "header_type",
                "values" => array("full_header", "title_header")
            )
        ),
        array(
            "name" => "left_box_active",
            "label" => "Header Left Box?",
            "type" => "selectBox",
            "list" => array(
                "1" => "Yes",
                "0" => "No"
            ),
            "preValidation" => "trim",
            "parent" => array(
                "name" => "header_type",
                "values" => array("full_header")
            )
        ),
        array(
            "name" => "left_box_content",
            "label" => "Left Box Content",
            "type" => "editor",
            "validation" => "",
            "multiLanguage" => true,
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "left_box_button",
            "label" => "Left Box Button",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 30,
            "objectTypes" => array("page","project", "publication", "contact", "pardot_form"),
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "left_box_bg_color",
            "label" => "Left Box Background Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "left_box_forecolor",
            "label" => "Left Box Text Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "left_box_opacity",
            "label" => "Left Box Bg Opacity (%)",
            "type" => "textBox",
            "maxLength" => 3,
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|integer|max:100",
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "left_box_button_color",
            "label" => "Left Box Button Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "leftBoxBgImage",
            "label" => "Left Box Bg image",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "660x520", "width" => 660, "height" => 520)
            ),
            */
            "parent" => array(
                "name" => "left_box_active",
                "values" => array("1")
            )
        ),

        array(
            "name" => "right_box_active",
            "label" => "Header Right Box?",
            "type" => "selectBox",
            "list" => array(
                1 => "Yes",
                0 => "No"
            ),
            "preValidation" => "trim",
            "parent" => array(
                "name" => "header_type",
                "values" => array("full_header")
            )
        ),
        array(
            "name" => "right_box_content",
            "label" => "Right Box Content",
            "type" => "editor",
            "validation" => "",
            "multiLanguage" => true,
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "right_box_button",
            "label" => "Right Box Button",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 30,
            "objectTypes" => array("page","project", "publication", "contact", "pardot_form"),
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "right_box_bg_color",
            "label" => "Right Box Background Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "right_box_forecolor",
            "label" => "Right Box Text Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "right_box_opacity",
            "label" => "Right Box Bg Opacity (%)",
            "type" => "textBox",
            "maxLength" => 3,
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|integer|max:100",
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "right_box_button_color",
            "label" => "Right Box Button Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:7",
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "rightBoxBgImage",
            "label" => "Right Box Bg image",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "660x520", "width" => 660, "height" => 520)
            ),
            */
            "parent" => array(
                "name" => "right_box_active",
                "values" => array("1")
            )
        ),
        array(
            "name" => "landingPageTiles",
            "label" => "landing page tiles",
            "type" => "singlePicker",
            "objectType" => "landing_page_tile",
            "order" => true
        )
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
