Your IP : 216.73.216.71


Current Path : /home/e/o/l/eolienneia/www/templates/yootheme/vendor/yootheme/builder/elements/alert/
Upload File :
Current File : /home/e/o/l/eolienneia/www/templates/yootheme/vendor/yootheme/builder/elements/alert/element.json

{
    "@import": "./element.php",
    "name": "alert",
    "title": "Alert",
    "group": "basic",
    "icon": "${url:images/icon.svg}",
    "iconSmall": "${url:images/iconSmall.svg}",
    "element": true,
    "width": 500,
    "defaults": {
        "title_element": "h3"
    },
    "placeholder": {
        "props": {
            "title": "",
            "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
        }
    },
    "templates": {
        "render": "./templates/template.php",
        "content": "./templates/content.php"
    },
    "fields": {
        "title": {
            "label": "Title",
            "source": true
        },
        "content": {
            "label": "Content",
            "type": "editor",
            "source": true
        },
        "link": "${builder.link}",
        "link_target": "${builder.link_target}",
        "alert_style": {
            "label": "Style",
            "type": "select",
            "options": {
                "Default": "",
                "Primary": "primary",
                "Success": "success",
                "Warning": "warning",
                "Danger": "danger"
            }
        },
        "alert_size": {
            "type": "checkbox",
            "text": "Larger padding"
        },
        "title_style": {
            "label": "Style",
            "description": "Title styles differ in font-size but may also come with a predefined color, size and font.",
            "type": "select",
            "options": {
                "None": "",
                "Bold": "text-bold",
                "Heading Small": "heading-small",
                "H1": "h1",
                "H2": "h2",
                "H3": "h3",
                "H4": "h4",
                "H5": "h5",
                "H6": "h6"
            },
            "enable": "title"
        },
        "title_element": {
            "label": "HTML Element",
            "description": "Choose one of the HTML elements to fit the semantic structure.",
            "type": "select",
            "options": {
                "h1": "h1",
                "h2": "h2",
                "h3": "h3",
                "h4": "h4",
                "h5": "h5",
                "h6": "h6",
                "div": "div"
            },
            "enable": "title"
        },
        "title_inline": {
            "label": "Alignment",
            "description": "Display the title in the same line as the content.",
            "type": "checkbox",
            "text": "Inline title",
            "enable": "title"
        },
        "content_style": {
            "label": "Style",
            "description": "Select a predefined text style, including color, size and font-family.",
            "type": "select",
            "options": {
                "None": "",
                "Lead": "lead",
                "Meta": "meta"
            },
            "enable": "content"
        },
        "content_margin": {
            "label": "Margin Top",
            "description": "Set the top margin. Note that the margin will only apply if the content field immediately follows another content field.",
            "type": "select",
            "options": {
                "Small": "small",
                "Default": "",
                "Medium": "medium",
                "Large": "large",
                "X-Large": "xlarge",
                "None": "remove"
            },
            "enable": "content && !title_inline"
        },
        "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_justify}",
        "text_align_breakpoint": "${builder.text_align_breakpoint}",
        "text_align_fallback": "${builder.text_align_justify_fallback}",
        "animation": "${builder.animation}",
        "_parallax_button": "${builder._parallax_button}",
        "visibility": "${builder.visibility}",
        "name": "${builder.name}",
        "status": "${builder.status}",
        "source": "${builder.source}",
        "id": "${builder.id}",
        "class": "${builder.cls}",
        "attributes": "${builder.attrs}",
        "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-title</code>, <code>.el-content</code>, <code>.el-link</code>",
            "type": "editor",
            "editor": "code",
            "mode": "css",
            "attrs": {
                "debounce": 500
            }
        }
    },
    "fieldset": {
        "default": {
            "type": "tabs",
            "fields": [
                {
                    "title": "Content",
                    "fields": ["title", "content", "link", "link_target"]
                },
                {
                    "title": "Settings",
                    "fields": [
                        {
                            "label": "Alert",
                            "type": "group",
                            "divider": true,
                            "fields": ["alert_style", "alert_size"]
                        },
                        {
                            "label": "Title",
                            "type": "group",
                            "divider": true,
                            "fields": ["title_style", "title_element", "title_inline"]
                        },
                        {
                            "label": "Content",
                            "type": "group",
                            "divider": true,
                            "fields": ["content_style", "content_margin"]
                        },
                        {
                            "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}"
            ]
        }
    }
}