<?php
return array(
    "type" => "testimonial",
    "model" => "Testimonial",
    "label" => "Testimonials",
    "label_singular" => "Testimonial",
    "template" => false,
    "group" => "general",
    "order" => false,
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "name",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "role",
            "label" => "position",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100"
        ),
        array(
            "name" => "company",
            "label" => "Company Name",
            "type" => "textBox",
            "maxLength" => 100,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "quote",
            "label" => "Quote",
            "type" => "editor",
            "multiLanguage" => true,
        ),
        array(
            "name" => "content",
            "label" => "Content",
            "type" => "editor",
            "multiLanguage" => true,
        ),
        array(
            "name" => "photo",
            "label" => "photo",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "120x120", "width" => 120, "height" => 120),
            )
            */
        ),
        array(
            "name" => "bg_color",
            "label" => "Background color",
            "type" => "selectBox",
            "list" => array(
                "orange" => "Orange",
                "yellow" => "Yellow",
                "green" => "Green",
                "primary" => "Primary (SP dark blue)",
                "secondary" => "Secondary (light blue)",
                "vivid-blue" => "Vivid blue",
                "blue" => "Blue (Medium Color)",
            ),
            "preValidation" => "trim",
            "validation" => "nullable|in:orange,secondary,yellow,green,primary,vivid-blue,blue",
            "placement" => "sidebar",
        )
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
