Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
Each item in settings represents a single input.
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the setting (e.g., "images", "title"). |
label | object {ar,en} | Input label shown to the merchant. |
type | string | Input type (e.g., "text", "textarea", "image", "number", "color", "list"). |
default | any | Default value when none is provided. |
icon | text | Optional reference to an icon (e.g. fal fa-box ). |
"type": "text",
"id": "title",
"label": {
"ar": "المقدمة",
"en": "Title"
},
"default": <Optional>
}
"type": "textarea",
"id": "about",
"label": {
"ar": "نبذة",
"en": "About"
},
"default": <Optional>
}
"type": "richtext",
"id": "about",
"label": {
"ar": "نبذة",
"en": "About"
},
"default": <Optional>
}
{
"type": "number",
"id": "number_of_branches",
"label": {
"ar": "رقم الافرع",
"en": "Number of Branches"
},
"default": <Optional>
}
{
"type": "color",
"id": "button_color",
"label": {
"ar": "لون الزر",
"en": "Button Color"
},
"default": "#000000"
}