{
    "@import": "./element.php",
    "name": "social",
    "title": "Social",
    "icon": "${url:images/icon.svg}",
    "iconSmall": "${url:images/iconSmall.svg}",
    "element": true,
    "width": 500,
    "defaults": {
        "link_style": "button",
        "gap": "small",
        "margin": "default"
    },
    "placeholder": {
        "props": {
            "links": [
                "https://twitter.com",
                "https://facebook.com",
                "https://plus.google.com"
            ]
        }
    },
    "templates": {
        "render": "./templates/template.php",
        "content": "./templates/content.php"
    },
    "fields": {
        "links.0": {
            "label": "Links",
            "attrs": {
                "placeholder": "http://"
            }
        },
        "links.1": {
            "attrs": {
                "placeholder": "http://"
            }
        },
        "links.2": {
            "attrs": {
                "placeholder": "http://"
            }
        },
        "links.3": {
            "attrs": {
                "placeholder": "http://"
            }
        },
        "links.4": {
            "description": "Enter up to 5 links to your social profiles. A corresponding <a href=\"https://getuikit.com/docs/icon\" target=\"_blank\">UIkit brand icon</a> will be displayed automatically, if available. Links to email addresses and phone numbers, like mailto:info@example.com or tel:+491570156, are also supported.",
            "attrs": {
                "placeholder": "http://"
            }
        },
        "link_target": {
            "type": "checkbox",
            "text": "Open links in a new window."
        },
        "link_style": {
            "label": "Style",
            "type": "select",
            "options": {
                "Default": "",
                "Button": "button",
                "Link": "link",
                "Link Muted": "muted",
                "Link Text": "text",
                "Link Reset": "reset"
            }
        },
        "icon_ratio": {
            "label": "Size",
            "description": "Enter a size ratio, if you want the icon to appear larger than the default font size, for example 1.5 or 2 to double the size.",
            "attrs": {
                "placeholder": "1"
            },
            "enable": "link_style != 'button'"
        },
        "gap": {
            "label": "Column Gap",
            "description": "Set the size of the gap between the grid columns.",
            "type": "select",
            "options": {
                "Small": "small",
                "Medium": "medium",
                "Default": "",
                "Large": "large"
            }
        },
        "position": "${builder.position}",
        "position_left": "${builder.position_left}",
        "position_right": "${builder.position_right}",
        "position_top": "${builder.position_top}",
        "position_bottom": "${builder.position_bottom}",
        "position_z_index": "${builder.position_z_index}",
        "margin": "${builder.margin}",
        "margin_remove_top": "${builder.margin_remove_top}",
        "margin_remove_bottom": "${builder.margin_remove_bottom}",
        "maxwidth": "${builder.maxwidth}",
        "maxwidth_breakpoint": "${builder.maxwidth_breakpoint}",
        "block_align": "${builder.block_align}",
        "block_align_breakpoint": "${builder.block_align_breakpoint}",
        "block_align_fallback": "${builder.block_align_fallback}",
        "text_align": "${builder.text_align}",
        "text_align_breakpoint": "${builder.text_align_breakpoint}",
        "text_align_fallback": "${builder.text_align_fallback}",
        "animation": "${builder.animation}",
        "_parallax_button": "${builder._parallax_button}",
        "visibility": "${builder.visibility}",
        "name": "${builder.name}",
        "status": "${builder.status}",
        "id": "${builder.id}",
        "class": "${builder.cls}",
        "css": {
            "label": "CSS",
            "description": "Enter your own custom CSS. The following selectors will be prefixed automatically for this element: <code>.el-element</code>, <code>.el-link</code>",
            "type": "editor",
            "editor": "code",
            "mode": "css",
            "attrs": {
                "debounce": 500
            }
        }
    },
    "fieldset": {
        "default": {
            "type": "tabs",
            "fields": [
                {
                    "title": "Content",
                    "fields": [
                        "links.0",
                        "links.1",
                        "links.2",
                        "links.3",
                        "links.4",
                        "link_target"
                    ]
                },
                {
                    "title": "Settings",
                    "fields": [
                        {
                            "label": "Social Icons",
                            "type": "group",
                            "divider": true,
                            "fields": [
                                "link_style",
                                "icon_ratio",
                                "gap"
                            ]
                        },
                        {
                            "label": "General",
                            "type": "group",
                            "fields": [
                                "position",
                                "position_left",
                                "position_right",
                                "position_top",
                                "position_bottom",
                                "position_z_index",
                                "margin",
                                "margin_remove_top",
                                "margin_remove_bottom",
                                "maxwidth",
                                "maxwidth_breakpoint",
                                "block_align",
                                "block_align_breakpoint",
                                "block_align_fallback",
                                "text_align",
                                "text_align_breakpoint",
                                "text_align_fallback",
                                "animation",
                                "_parallax_button",
                                "visibility"
                            ]
                        }
                    ]
                },
                "${builder.advanced}"
            ]
        }
    }
}
