<?php
return array(
    "type" => "footer_content",
    "model" => "App\Models\FooterContent",
    "label" => "Footer Content",
    "label_singular" => "Footer Content",
    "group" => "general",
    "template" => false,
    "order" => false,
    "websites" => array(1),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:150",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "partnerLogos",
            "label" => "Partner Logos",
            "type" => "multiplePicker",
            "longList"      => true,
            "objectTypes" => array("logo_link"),
            "allowInsert" => true,
            "order" => true
        ),
        array(
            "name" => "copyright",
            "label" => "Copyright name",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
        ),
        array(
            "name" => "copyright_cta1",
            "label" => "Copyright link 1",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 60,
            "objectTypes" => array()
        ),
        array(
            "name" => "copyright_cta2",
            "label" => "Copyright link 2",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 60,
            "objectTypes" => array()
        ),
        array(
            "name" => "manage_cookies_label",
            "label" => "Manage Cookies Label",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
        ),
        array(
            "name" => "social_cta",
            "label" => "Social CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 60,
            "objectTypes" => array(),
        ),
        array(
            "name" => "socialLinks",
            "label" => "Social Links",
            "type" => "multiplePicker",
            "longList"      => true,
            "allowInsert" => true,
            "objectTypes" => array("logo_link"),
            "order" => true
        ),
        array(
            "name" => "newsletter_title",
            "label" => "Newsletter section title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
        ),
        array(
            "name" => "newsletter_short_desc",
            "label" => "Newsletter section short description",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
        ),
        array(
            "name" => "newsletter_cta",
            "label" => "Newsletter CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 60,
            "objectTypes" => array()
        ),
        array(
            "name" => "newsletter_title_block",
            "label" => "Newsletter section title block",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
        ),
        array(
            "name" => "newsletter_short_desc_block",
            "label" => "Newsletter section short description block",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
        ),
        array(
            "name" => "newsletter_cta_block",
            "label" => "Newsletter CTA block",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 60,
            "objectTypes" => array()
        ),
        array(
            "name" => "project_footer_disclaimer",
            "label" => "Projects' Footer Disclaimer Message",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => ""
        )
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
