<?php
return array(
    "type" => "block",
    "model" => "App\Models\Block",
    "label" => "Page Blocks",
    "label_singular" => "Page Block",
    "group" => "general",
    "template" => false,
    "order" => false,
    "websites" => array(1),
    "shareable" => "none",
    "search" => [
        1 => [
            "primary" => [
                "block_title", "block_subject", "block_subtitle", "form_title"
            ],
            "secondary" => [
                "content", "content2"
            ],
            "parentRelationships" => [
                "parentEntries",
                "parentProjects",
                "parentSolutions",
                "parentBlogPosts",
                "parentEventItems",
                "parentNews",
                "parentPublications",
                "parentSectors",
                "parentCaseStudies"
            ],
            "relations" => [
                "cards"
            ]
        ]
    ],
    "fields" => array(
        array(
            "name" => "title",
            "label" => "Block Name",
            "info" => "for internal reference, not shown on FO",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "type",
            "label" => "Block Type",
            "type" => "selectBox",
            "dropdownSortField" => "list",
            "list" => array(
                // "editor" => "Rich text Content",
                "featured-projects" => "Featured Projects",
                "related-projects" => "Related Projects",
                "projects-slider" => "Projects Slider",
                "project-ph-sdgs" => "Project placeholder - SDGs",
                // "project-ph-solution" => "Project placeholder - Solution",
                // "project-ph-impact" => "Project placeholder - Impact",
                "project-ph-share-bar" => "Project placeholder - Share Bar",
                "project-ph-gallery" => "Project placeholder - Gallery",
                "project-text" => "Text Block 2 Cols",
                "project-text-1col" => "Text Block 1 Cols",
                "project-ph-gallery-v2" => "Project placeholder - Gallery V2",
                "timeline" => "Timeline",
                "quick-facts" => "Quick facts",
                "testimonial" => "Testimonial",
                "testimonials-slider" => "Testimonials Slider",
                "testimonials-list" => "Testimonials List",
                "storymaps" => "Storymaps",
                "video" => "Video",
                "video-content" => "Video with Title / subtitle",
                "video-content-v2" => "Video with Title / content V2",
                "embed" => "Full width Embed block",
                "related-stories" => "Related Stories",
                "error-page-block" => "Error page block",
                "error-page-block-lang" => "Error page block (no translation)",
                "portrait-image-cards" => "Portrait image cards",
                "portrait-image-cards-2" => "Portrait image cards 2 (home like)",
                "landscape-image-cards" => "Landscape image cards",
                "landscape-image-cards-2" => "Landscape image cards 2 (home like)",
                "title-block" => "Title Block",
                "featured-one-item" => "Featured One Item",
                "featured-one-item-reference" => "Featured One Item (Object Reference)",
                "featured-slider" => "Featured Slider",
                "featured-three-items" => "Featured Three Items",
                "section-title" => "Section Title",
                "hero-image-box" => "Hero - Image and title / tagline box",
                "case-study-hero" => "Hero - Case Study",
                "highlight-text-block" => "Highlight text block",
                "stories-slider" => "Stories Slider",
                "two-cards" => "Two Cards Block",
                "kpis-block" => "KPIs Block",
                "team-list" => "Team member list",
                "simple-image" => "Simple Image (full width, auto height)",
                "image" => "Image (for articles)",
                "offices-map" => "Offices map block",
                "values-block" => "Values block (8 square boxes with images or text)",
                "journey-block" => "Journey Block & info overlay",
                "simple-cta" => "Single or Double simple CTA",
                "landing-header" => "Landing page Header",
                "landing-footer" => "Landing page Footer",
                "text-1col-left" => "Text 1 Column",
                "text-2cols" => "Text 2 Columns",
                "text-1col-2col" => "Text 1 + 2 Columns",
                "text-1col-center" => "Text 1 Column center",
                "mixed-media" => "Mixed media",
                "static-ribbon-cta" => "Static Ribbon CTA",
                "download-cta" => "Download CTA",
                "contact-cta" => "Contact CTA",
                "triplet-highlight" => "Cards Block Highlight",
                "faqs-block" => "FAQs Block",
                "event-block" => "Event Block",
                "agenda" => "Agenda",
                "gallery" => "Image Gallery Block",
                "hero-form" => "Hero Form",
                "tabs-block" => "Tabs Horizontal",
                "tabs-vertical" => "Tabs Vertical",
                "logos-slider" => "Logos Slider",
                "logos-slider-2" => "Logos Slider 2 (home)",
                "team-block" => "Team Block",
                "sdgs-block" => "SDGs Block (from project)",
                "2cols-form" => "2 Column Block with Form",
                "news-ph-author-share" => "News Author Share",
                "mixed-media-v2" => "Mixed Media V2 Block",
                "hero-marketing" => "Hero Marketing",
                "price-module" => "Price Module",
                "map-cards-block" => "Map Cards Block",
                "highlighted-mixed-media" => "Highlighted Mixed Media",
                "highlighted-mixed-media-large" => "Highlighted Mixed Media Large",
                "callout-block" => "Callout",
                "home-hero" => "Home Hero",
                "bottom-image" => "Bottom image block",
                "3cols-image-grid" => "3 Column Image Grid",
                "news-detail-hero-image" => "News Detail Hero Image",
                "news-detail-hero" => "News Detail Hero",
                "more-info-block" => "More Info Block",
                "more-info-block-reference" => "More Info Block (reference)",
                "news-further-info" => "News Further Info",
                "articles-filter-block" => "Articles Filter Block",
                "publications-slider" => "Publications Slider",
                "articles-list-block" => "Articles List Block",
                "clipping-news" => "Clipping News",
                "clipping-list-news" => "Clipping List News",
                "articles-grid-block" => "Articles Grid",
                "event-details" => "Event Details (placeholder)",
                "speakers-grid" => "Speakers Grid",
                "hero-form-event" => "Hero Form Event (events only)",
                "upcoming-events" => "Upcoming events (by month)",
                "articles-grid" => "Articles infinite grid list",
                "sub-navigation" => "Sub Navigation",
                "blog-ph-home" => "Blog Home (Placeholder)",
                "slider-posts" => "Slider Posts",
                "newsletter-v2" => "Newsletter V2",
                "blog-post-hero" => "Blog Post Hero (Placeholder)",
                "blog-header" => "Blog Header logo",
                "block-gallery" => "Block Gallery",
                "share-bar" => "Page share bar",
                "pardot-form-block" => "Pardot Form Block",
                "highlight-columns-block" => "Highlight Columns Block",
                "mixed-media-v3" => "Mixed Media V3 Block",
            ),
            "browser" => "blocks",
            "inList" => true,
            "placement" => "sidebar",
            "preValidation" => "trim",
            "validation" => "required|alpha_dash"
        ),
        array(
            "name" => "block_title",
            "label" => "Title",
            "type" => "textBox",
            "maxLength" => 300,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:300",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "featured-projects",
                    "projects-slider",
                    "project-text",
                    "project-text-1col",
                    "timeline",
                    "related-projects",
                    "related-stories",
                    "quick-facts",
                    "storymaps",
                    "portrait-image-cards",
                    "landscape-image-cards",
                    "portrait-image-cards-2",
                    "landscape-image-cards-2",
                    "error-page-block",
                    "error-page-block-lang",
                    "title-block",
                    "featured-slider",
                    "featured-one-item",
                    "section-title",
                    "hero-image-box",
                    "highlight-text-block",
                    "stories-slider",
                    "team-list",
                    "video-content",
                    "offices-map",
                    "values-block",
                    "journey-block",
                    "text-1col-left",
                    "text-2cols",
                    "text-1col-2col",
                    "text-1col-center",
                    "static-ribbon-cta",
                    "download-cta",
                    "contact-cta",
                    "triplet-highlight",
                    "faqs-block",
                    "event-block",
                    "agenda",
                    "hero-form",
                    "tabs-block",
                    "tabs-vertical",
                    "logos-slider",
                    "logos-slider-2",
                    "team-block",
                    "sdgs-block",
                    "2cols-form",
                    "mixed-media-v2",
                    "hero-marketing",
                    "map-cards-block",
                    "home-hero",
                    "bottom-image",
                    "3cols-image-grid",
                    "image",
                    "more-info-block",
                    "news-further-info",
                    "articles-filter-block",
                    "publications-slider",
                    "articles-list-block",
                    "clipping-news",
                    "clipping-list-news",
                    "articles-grid-block",
                    "speakers-grid",
                    "sub-navigation",
                    "slider-posts",
                    "blog-header",
                    "two-cards",
                    "kpis-block",
                    "pardot-form-block",
                    "highlight-columns-block",
                    "mixed-media-v3",
                    "video-content-v2",
                ]
            ]
        ),
        array(
            "name" => "block_subject",
            "label" => "Subject",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "event-block",
                    "hero-form",
                    "pardot-form-block",
                    "two-cards",
                    "kpis-block",
                    "title-block",
                    "section-title",
                    "logos-slider-2",
                    "mixed-media-v2",
                    "mixed-media-v3"
                ]
            ]
        ),
        array(
            "name" => "person_name",
            "label" => "Name",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:100",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "news-further-info",
                ]
            ]
        ),
        array(
            "name" => "person_position",
            "label" => "Position",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:100",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "news-further-info",
                ]
            ]
        ),
        array(
            "name" => "person_email",
            "label" => "Email",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:100|email",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "news-further-info",
                ]
            ]
        ),
        array(
            "name" => "company_name",
            "label" => "Company Name",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "news-further-info",
                ]
            ]
        ),
        array(
            "name" => "block_subtitle",
            "label" => "Sub Title / Tagline",
            "type" => "textBox",
            "maxLength" => 300,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:300",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "featured-projects",
                    "projects-slider",
                    "error-page-block",
                    "error-page-block-lang",
                    "title-block",
                    "featured-slider",
                    "featured-one-item",
                    "section-title",
                    "hero-image-box",
                    "video-content",
                    "journey-block",
                    "static-ribbon-cta",
                    "download-cta",
                    "contact-cta",
                    "event-block",
                    "agenda",
                    "hero-form",
                    "team-block",
                    "triplet-highlight",
                    "hero-marketing",
                    "home-hero",
                    "3cols-image-grid",
                    "articles-filter-block",
                    "blog-header",
                    "logos-slider-2",
                ]
            ]
        ),
        array(
            "name" => "content",
            "label" => "Editor",
            "type" => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation" => "",
            "parent" => [
                "name" => "type",
                "values" => [
                    "editor",
                    "project-text",
                    "project-text-1col",
                    "storymaps",
                    "highlight-text-block",
                    "stories-slider",
                    "values-block",
                    "text-1col-left",
                    "text-2cols",
                    "text-1col-2col",
                    "text-1col-center",
                    "download-cta",
                    "contact-cta",
                    "event-block",
                    "featured-one-item",
                    "2cols-form",
                    "hero-form",
                    "video-content-v2",
                    "mixed-media-v2",
                    "hero-marketing",
                    "highlighted-mixed-media",
                    "highlighted-mixed-media-large",
                    "news-further-info",
                    "articles-list-block",
                    "clipping-list-news",
                    "more-info-block",
                    "pardot-form-block",
                    "home-hero",
                    "mixed-media-v3",
                ]
            ],
        ),
        array(
            "name" => "content2",
            "label" => "Editor",
            "type" => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation" => "",
            "parent" => [
                "name" => "type",
                "values" => [
                    "text-1col-2col",
                ]
            ],
        ),
        array(
            "name" => "cta1",
            "label" => "Call to action (button or link)",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array("project", "page", "solution", "contact", "case_study", "news", "blog_post", "publication", "sector"),
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "editor",
                    "featured-projects",
                    "projects-slider",
                    "project-ph-share-bar",
                    "error-page-block",
                    "featured-slider",
                    "featured-one-item",
                    "hero-image-box",
                    "journey-block",
                    "simple-cta",
                    "landing-header",
                    "landing-footer",
                    "text-1col-left",
                    "text-2cols",
                    "text-1col-2col",
                    "text-1col-center",
                    "static-ribbon-cta",
                    "download-cta",
                    "contact-cta",
                    "triplet-highlight",
                    "title-block",
                    "event-block",
                    "agenda",
                    "team-block",
                    "hero-marketing",
                    "highlighted-mixed-media-large",
                    "highlight-text-block",
                    "home-hero",
                    "bottom-image",
                    "more-info-block",
                    "publications-slider",
                    "clipping-news",
                    "clipping-list-news",
                    "articles-list-block",
                    "articles-grid-block",
                    "articles-filter-block",
                    "sub-navigation",
                    "slider-posts",
                    "mixed-media-v3",
                    "video-content-v2",
                    "mixed-media-v2",
                ]
            ],
            "info" => "For Project Placeholder Share Bar, this is the get in touch button (choose a contact) -- For articles filter, if redirect is needed, point to the page where the listing is done"
        ),
        array(
            "name" => "form_title",
            "label" => "Mobile Form Toggle Label",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "hero-form",
                    "2cols-form",
                ]
            ]
        ),
        array(
            "name" => "pardot_form_id",
            "label" => "Pardot Form",
            "type" => "selectBox",
	        "validation" => "nullable|integer",
            "contentType" => "pardot_form",
            "boxSearch" => true,
            "labelField" => "title",
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "hero-form",
                    "2cols-form",
                    "pardot-form-block",
                ]
            ],
        ),
        array(
            "name" => "publication_id",
            "label" => "Publication",
            "type" => "selectBox",
	        "validation" => "nullable|integer",
            "contentType" => "publication",
            "labelField" => "title",
            "boxSearch" => true,
            "info" => "Choose only if the form is a publication download type form",
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "hero-form",
                ]
            ],
        ),
        array(
            "name" => "cta2",
            "label" => "Call to action 2 (button or link)",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => array("project", "page", "solution", "contact", "case_study", "news", "blog_post", "publication", "sector"),
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "simple-cta",
                    "landing-footer",
                    "featured-one-item",
                    "hero-marketing",
                    "title-block",
                    "section-title",
                ]
            ],
            "info" => "For simple CTA it's the orange button"
        ),
        array(
            "name" => "cta3",
            "label" => "Call to action 3 (button or link)",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "landing-footer"
                ]
            ],
            "info" => ""
        ),
        array(
            "name" => "cta4",
            "label" => "Call to action 4 (button or link)",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "landing-footer"
                ]
            ],
            "info" => ""
        ),
        array(
            "name" => "image1",
            "label" => "Image",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            "parent" => [
                "name" => "type",
                "values" => [
                    "error-page-block",
                    "error-page-block-lang",
                    "featured-one-item",
                    "hero-image-box",
                    "simple-image",
                    "contact-cta",
                    "event-block",
                    "hero-form",
                    "video-content-v2",
                    "mixed-media-v2",
                    "hero-marketing",
                    "highlighted-mixed-media",
                    "highlighted-mixed-media-large",
                    "bottom-image",
                    "image",
                    "more-info-block",
                    "hero-form-event",
                    "mixed-media-v3",
                ]
            ],
            "info" => "For Hero Image and title block: > 1145x700\nFor Contact CTA: > 600x600"
        ),
        array(
            "name" => "image2",
            "label" => "Image 2",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            "parent" => [
                "name" => "type",
                "values" => [
                    "hero-image-box",
                ]
            ],
            "info" => "For Hero block, this is the overlay logo over the main image."
        ),
        array(
            "name" => "image1Mobile",
            "label" => "Image Mobile",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            "parent" => [
                "name" => "type",
                "values" => [
                    "error-page-block",
                    "simple-image",
                    "error-page-block-lang",
                    "video-content-v2",
                    "mixed-media-v2",
                    "hero-marketing",
                    "highlighted-mixed-media",
                    "highlighted-mixed-media-large",
                    "image",
                    "mixed-media-v3",
                ]
            ]
        ),
        array(
            "name" => "image1_title",
            "label" => "Image title",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "error-page-block",
                    "error-page-block-lang"
                ]
            ]
        ),
        array(
            "name" => "image1_cta",
            "label" => "Image cta",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 100,
            "objectTypes" => array(),
            "parent"      => [
                "name"   => "type",
                "values" => [
                    "error-page-block",
                    "error-page-block-lang"
                ]
            ],
        ),
        array(
            "name" => "testimonial_id",
            "label" => "testimonial",
            "type" => "selectBox",
            "contentType" => "testimonial",
            "validation" => "nullable|required_if:type,testimonial|integer|min:1",
            "parent" => array(
                "name" => "type",
                "values" => array("testimonial")
            )
        ),
        array(
            "name" => "team_member_group_id",
            "label" => "Team Member Group",
            "type" => "selectBox",
            "contentType" => "team_member_group",
            "validation" => "nullable|required_if:type,team-list|integer|min:1",
            "parent" => array(
                "name" => "type",
                "values" => array("team-list")
            )
        ),
        array(
            "name" => "invert",
            "label" => "Invert Layout",
            "type" => "checkBox",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "hero-image-box",
                    "download-cta",
                    "mixed-media-v2",
                    "highlighted-mixed-media",
                    "highlighted-mixed-media-large",
                    "case-study-hero",
                    "testimonial",
                    "featured-one-item",
                    "featured-one-item-reference",
                    "mixed-media-v3",
                )
            ),
            "info" => "For Hero image box, flips horizontally"
        ),
        array(
            "name" => "show_team_group_labels",
            "label" => "Show Team Group Labels",
            "type" => "checkBox",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "team-block"
                )
            )
        ),
        array(
            "name" => "luumo",
            "label" => "Luumo style",
            "type" => "checkBox",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "hero-marketing",
                    "video-content",
                    "contact-cta",
                    "testimonial",
                    "testimonials-list",
                    "testimonials-slider",
                    "triplet-highlight"
                )
            ),
        ),
        array(
            "name" => "color_scheme",
            "label" => "Color Scheme",
            "type" => "selectBox",
            "list" => array(
                "dark-blue" => "Dark blue",
                "light-blue" => "Light blue",
                "light-gray" => "Light gray",
                "luumo" => "Luumo"
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:dark-blue,light-blue,light-gray,luumo",
            "placement" => "sidebar",
            "info" => "Text blocks: Only light blue and light gray. Leave empty for white bg",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "download-cta",
                    "hero-marketing",
                    "highlight-text-block",
                    "mixed-media-v2",
                    "text-1col-2col",
                    "text-1col-left",
                    "text-1col-center",
                    "text-2cols",
                    "project-text",
                    "project-text-1col",
                    "mixed-media-v3",
                )
            )
        ),
        array(
            "name" => "list_style",
            "label" => "List Style",
            "type" => "selectBox",
            "list" => array(
                "chevron" => "Chevron",
                "dot" => "Dot",
                "question" => "Question (Q)",
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:chevron,dot,question",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "faqs-block"
                )
            )
        ),
        array(
            "name" => "cta_color",
            "label" => "CTA Color Scheme",
            "type" => "selectBox",
            "list" => array(
                "white" => "White",
                "orange" => "Orange"
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:white,orange",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "hero-image-box"
                )
            )
        ),
        array(
            "name" => "bg_color",
            "label" => "Background color",
            "type" => "selectBox",
            "list" => array(
                "white" => "White",
                "orange" => "Orange",
                "yellow" => "Yellow",
                "green" => "Green",
                "blue" => "Blue (Medium Color)",
                "primary" => "Primary (SP dark blue)",
                "secondary" => "Secondary (light blue)"
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:orange,secondary,yellow,green,primary,white,blue",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "hero-image-box",
                    "hero-form",
                    "quick-facts",
                    "video-content-v2",
                    "highlighted-mixed-media",
                    "highlighted-mixed-media-large",
                    "contact-cta",
                    "news-detail-hero-image",
                    "hero-form-event",
                    "case-study-hero",
                    "blog-post-hero",
                    "triplet-highlight"
                ),
            )
        ),
        array(
            "name" => "heading_type",
            "label" => "Heading type",
            "type" => "selectBox",
            "list" => array(
                "h1" => "Heading 1",
                "h2" => "Heading 2",
                "h3" => "Heading 3",
                "h4" => "Heading 4"
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:h1,h2,h3,h4",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "title-block",
                    "project-text-1col",
                    "project-text",
                    "text-1col-2col",
                    "text-2cols",
                    "text-1col-center",
                    "text-1col-left",
                    "mixed-media-v2",
                    "mixed-media-v3",
                )
            )
        ),
        array(
            "name" => "projects",
            "label" => "Projects",
            "type" => "multiplePicker",
            "websiteFiltered" => false,
            "objectTypes" => array("project"),
            "longList" => true,
            "order" => true,
            "maxSize" => 100,
            "parent" => [
                "name" => "type",
                "values" => [
                    "featured-projects",
                    "projects-slider",
                    "related-projects",
                    "sdgs-block"
                ]
            ],
            "info" => "For SDGs block choose just one project"
        ),
        array(
            "name" => "testimonials",
            "label" => "Testimonials",
            "type" => "multiplePicker",
            "websiteFiltered" => false,
            "objectTypes" => array("testimonial"),
            "longList" => true,
            "order" => true,
            "maxSize" => 100,
            "parent" => [
                "name" => "type",
                "values" => [
                    "testimonials-slider",
                    "testimonials-list",
                    "2cols-form"
                ]
            ],
        ),
        array(
            "name" => "stories",
            "label" => "Stories",
            "type" => "multiplePicker",
            "websiteFiltered" => false,
            "objectTypes" => array("story"),
            "longList" => true,
            "order" => true,
            "maxSize" => 24,
            "parent" => [
                "name" => "type",
                "values" => [
                    "stories-slider",
                ]
            ],
            "info" => "max 24"
        ),
        array(
            "name" => "blockTimelineItems",
            "label" => "Timeline Items",
            "type" => "singlePicker",
            "objectType" => "block_timeline_item",
            "order" => true,
            "parent" => [
                "name" => "type",
                "values" => [
                    "timeline",
                ]
            ]
        ),
        array(
            "name" => "blockQuickFacts",
            "label" => "Quick Facts",
            "type" => "singlePicker",
            "objectType" => "block_quick_fact",
            "order" => true,
            "parent" => [
                "name" => "type",
                "values" => [
                    "quick-facts",
                ]
            ]
        ),
        array(
            "name" => "blockAgendaItems",
            "label" => "Agenda Items",
            "type" => "singlePicker",
            "objectType" => "block_agenda_item",
            "order" => true,
            "parent" => [
                "name" => "type",
                "values" => [
                    "agenda",
                ]
            ]
        ),
        array(
            "name" => "relatedStories",
            "label" => "Related Stories",
            "type" => "multiplePicker",
            "websiteFiltered" => true,
            "objectTypes" => array("project", "solution", "case_study", "blog_post", "news", "publication", "page", "event_item", "sector"),
            "order" => true,
            "longList" => true,
            "parent" => [
                "name" => "type",
                "values" => [
                    "related-stories",
                ]
            ]
        ),
        array(
            "name" => "articles",
            "label" => "Articles",
            "type" => "multiplePicker",
            "websiteFiltered" => true,
            "objectTypes" => array("news", "clipping", "event_item", "publication"),
            "order" => true,
            "longList" => true,
            "maxSize" => 4,
            "parent" => [
                "name" => "list_type",
                "values" => [
                    "select",
                ]
            ]
        ),
        array(
            "name" => "video",
            "label" => "Video",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "video",
                    "video-content",
                    "video-content-v2",
                    "mixed-media-v2",
                    "mixed-media-v3",
                ]
            ]
        ),
        array(
            "name" => "embed_code",
            "label" => "Embed Code",
            "type" => "textArea",
            "maxLength" => 5000,
            "multiLanguage" => false,
            "preValidation" => "trim",
            "validation" => "max:5000",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "storymaps",
                    "embed",
                ]
            ],
            "info" => "Use when the embed is the same for all languages or as a fallback if no english embed is found."
        ),
        array(
            "name" => "embed_code_multilang",
            "label" => "Embed Code Multilang",
            "type" => "textArea",
            "maxLength" => 5000,
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => "max:5000",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "storymaps",
                    "embed",
                ]
                ],
                "info" => "Use when the embed is language specific. Has priority over 'Embed Code' and falls back to English if set."
        ),
        array(
            "name" => "cards",
            "label" => "Cards",
            "type" => "singlePicker",
            "objectType" => "generic_block",
            "pivotTable" => "block_cards",
            "order" => true,
            "maxSize" => 32,
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "portrait-image-cards",
                    "landscape-image-cards",
                    "portrait-image-cards-2",
                    "landscape-image-cards-2",
                    "featured-three-items",
                    "two-cards",
                    "kpis-block",
                    "values-block",
                    "journey-block",
                    "mixed-media",
                    "triplet-highlight",
                    "faqs-block",
                    "tabs-block",
                    "map-cards-block",
                    "tabs-vertical",
                    "featured-slider",
                    "3cols-image-grid",
                    "price-module",
                    "highlight-columns-block",
                ]
            ]
        ),
        array(
            "name" => "blockGalleryItems",
            "label" => "Gallery / Logo Slider Items",
            "type" => "singlePicker",
            "objectType" => "block_gallery_item",
            "order" => true,
            "parent" => [
                "name" => "type",
                "values" => [
                    "gallery",
                    "logos-slider",
                    "logos-slider-2",
                    "hero-marketing",
                ]
            ]
        ),
        array(
            "name" => "icon",
            "label" => "Icon (SVG)",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "document",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "static-ribbon-cta"
                ]
            ]
        ),
        array(
            "name"          => "teamMemberGroups1",
            "label"         => "Team Groups line 1",
            "type"          => "multiplePicker",
            "longList"      => false,
            "allowInsert"   => true,
            "objectTypes"   => ["team_member_group"],
            "order"         => true,
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "team-block"
                ]
            ]
        ),
        array(
            "name"          => "teamMemberGroups2",
            "label"         => "Team Groups line 2",
            "type"          => "multiplePicker",
            "longList"      => false,
            "allowInsert"   => true,
            "objectTypes"   => ["team_member_group"],
            "order"         => true,
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "team-block"
                ]
            ]
        ),
        array(
            "name"          => "teamMemberGroups3",
            "label"         => "Team Groups line 3",
            "type"          => "multiplePicker",
            "longList"      => false,
            "allowInsert"   => true,
            "objectTypes"   => ["team_member_group"],
            "order"         => true,
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "team-block"
                ]
            ]
        ),
        array(
            "name" => "reference_objects",
            "label" => "Reference objects",
            "type" => "multiplePicker",
            "websiteFiltered" => true,
            "objectTypes" => array("project", "solution", "case_study", "blog_post", "news", "event_item", "publication", "page", "sector"),
            "order" => true,
            "longList" => true,
            "maxSize" => 1,
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "featured-one-item-reference",
                    "more-info-block-reference",
                    "mixed-media-v3",
                ]
            ]
        ),
        array(
            "name" => "white_grid",
            "label" => "White Grid / BG",
            "type" => "checkBox",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "triplet-highlight",
                    "faqs-block",
                    "tabs-block",
                    "tabs-vertical",
                    "featured-three-items",
                    "testimonial",
                    "testimonials-slider",
                    "testimonials-list"
                )
            ),
        ),
        array(
            "name"     => "location",
            "label"    => "location",
            "type"     => "location",
            "parent" => [
                "name" => "type",
                "values" => [
                    "map-cards-block",
                ]
            ],
        ),
        array(
            "name" => "alignment",
            "label" => "Alignment",
            "type" => "selectBox",
            "list" => array(
                "left" => "Left",
                "center" => "Center",
                "right" => "Right",
            ),
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|in:left,center,right",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "speakers-grid",
                    "share-bar",
                    'home-hero',
                    "two-cards",
                    "kpis-block",
                    "title-block",
                    "section-title",
                    "logos-slider-2",
                )
            )
        ),
        array(
            "name" => "margin_type_top",
            "label" => "Margin Type Top",
            "type" => "selectBox",
            "preValidation" => "trim",
            "validation" => "nullable|alpha_dash",
            "placement" => "sidebar",
            "list" => array(
                "no-margin" => "No Margin",
                "small" => "Small",
                "medium" => "Medium",
                "large" => "Large",
                "extra-large" => "Extra Large",
            ),
            "inList" => true,
        ),
        array(
            "name" => "margin_type_bottom",
            "label" => "Margin Type Bottom",
            "type" => "selectBox",
            "preValidation" => "trim",
            "validation" => "nullable|alpha_dash",
            "placement" => "sidebar",
            "list" => array(
                "no-margin" => "No Margin",
                "small" => "Small",
                "medium" => "Medium",
                "large" => "Large",
                "extra-large" => "Extra Large",
            ),
            "inList" => true,
        ),
        array(
            "name" => "text",
            "label" => "Text",
            "type" => "textArea",
            "maxLength" => 5000,
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => "max:5000",
            "parent"        => [
                "name"   => "type",
                "values" => [
                    "callout-block"
                ]
            ],
        ),
        array(
            "name" => "bg_type",
            "label" => "BG Type",
            "type" => "selectBox",
            "list" => array(
                "image" => "Image",
                "video" => "Video"
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:image,video",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero"
                )
            )
        ),
        array(
            "name" => "font_color",
            "label" => "Text Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "placement" => "sidebar",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:7",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero"
                )
            )
        ),
        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",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero"
                )
            )
        ),
        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",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero"
                )
            )
        ),
        array(
            "name" => "images",
            "label" => "Images (bg, logo, etc)",
            "info" => "home hero block: If more than one added, they'll load in a random manner.",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => 'image',
            "multiple" => true,
            "minSize" => "0",
            "relatedContentType" => 'block',
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero",
                )
            )
        ),
        array(
            "name" => "mobileImages",
            "label" => "Mobile images (bg)",
            "info" => "home hero block: If more than one added, they'll load in a random manner.",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => 'image',
            "multiple" => true,
            "minSize" => "0",
            "relatedContentType" => 'hp2_template_configuration',
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero"
                )
            )
        ),
        array(
            "name" => "bgVideo",
            "label" => "Background Video",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "video",
            "multiple" => false,
            "minSize" => "0",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "home-hero"
                )
            )
        ),
        array(
            "name" => "no_background",
            "label" => "No Background",
            "type" => "checkBox",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "3cols-image-grid",
                    "featured-one-item",
                    "featured-one-item-reference",
                    "two-cards",
                    "kpis-block"
                )
            ),
        ),
        array(
            "name" => "no_image",
            "label" => "No Image",
            "type" => "checkBox",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "two-cards",
                    "kpis-block"
                )
            ),
        ),
        array(
            "name" => "size",
            "label" => "Size",
            "type" => "selectBox",
            "list" => array(
                "small" => "Small",
                "medium" => "Medium",
                "large" => "Large",
                "full" => "Full Width (image)",
            ),
            "preValidation" => "trim",
            "validation" => "nullable",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "project-text-1col",
                    "project-text",
                    "image",
                    "news-ph-author-share",
                    "more-info-block",
                    "more-info-block-reference",
                    "share-bar"
                )
            )
        ),
        array(
            "name" => "contact_id",
            "label" => "contact",
            "type" => "selectBox",
            "multiLanguage" => true,
            "contentType" => "contact",
            "labelField" => "name",
            "dropdownSortField" => "contacts.name",
            "preValidation" => "trim",
            "validation" => "nullable|integer|min:0",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "news-ph-author-share",
                )
            ),
        ),
        array(
            "name" => "publications",
            "label" => "Publications",
            "type" => "multiplePicker",
            "websiteFiltered" => false,
            "objectTypes" => array("publication"),
            "order" => true,
            "longList" => true,
            "maxSize" => 12,
            "parent" => [
                "name" => "type",
                "values" => [
                    "publications-slider",
                ]
            ]
        ),
        array(
            "name" => "article_type",
            "label" => "Article Type",
            "type" => "selectBox",
            "list" => array(
                "events" => "Events",
                "news" => "News",
                "publications" => "Publications",
                "clippings" => "Clippings",
                "events-past" => "Events (Past - Filter only)",
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:events,news,publications,clippings,events-past",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "articles-filter-block",
                    "articles-list-block",
                    "articles-grid-block",
                    "articles-grid"
                )
            )
        ),
        array(
            "name" => "list_type",
            "label" => "List Type",
            "type" => "selectBox",
            "list" => array(
                "latest" => "Latest",
                "select" => "Select",
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:latest,select",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "articles-list-block",
                    "clipping-news",
                    "clipping-list-news",
                    "articles-grid-block"
                )
            )
        ),
        array(
            "name" => "item_count",
            "label" => "Item Count",
            "type" => "textBox",
            "maxLength" => 2,
            "placement" => "sidebar",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|integer|max:32",
            "parent" => array(
                "name" => "list_type",
                "values" => array(
                    "latest",
                )
            )
        ),
        array(
            "name" => "speakers",
            "label" => "Speakers",
            "type" => "multiplePicker",
            "websiteFiltered" => false,
            "objectTypes" => array("speaker"),
            "allowInsert"   => true,
            "longList" => true,
            "order" => true,
            "maxSize" => 20,
            "parent" => [
                "name" => "type",
                "values" => [
                    "speakers-grid",
                ]
            ],
        ),
        array(
            "name" => "linkGroups",
            "label" => "Link Groups",
            "type" => "singlePicker",
            "objectType" => "link_group",
            "pivotTable" => "block_link_group",
            "order" => true,
            "maxSize" => 3,
            "parent" => [
                "name" => "type",
                "values" => [
                    "sub-navigation",
                ]
            ]
        ),
        array(
            "name"          => "anchor_id",
            "label"         => "Anchor ID",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "placement"     => "sidebar",
        ),
        array(
            "name" => "blog_category_id",
            "label" => "Blog Category",
            "type" => "selectBox",
            "contentType" => "blog_category",
            "validation" => "nullable|integer|min:1",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array(
                    "slider-posts",
                )
            ),
        ),
        array(
            "name" => "imageObjects",
            "label" => "Gallery Image Objects",
            "type" => "singlePicker",
            "objectType" => "image_object",
            "order" => true
        ),
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete", "info"
    )
);
