Skip to content

Instantly share code, notes, and snippets.

@joseph-farruggio
Created December 31, 2019 07:58
Show Gist options
  • Save joseph-farruggio/d2563e51072c669596e5c0a939692ad3 to your computer and use it in GitHub Desktop.
Save joseph-farruggio/d2563e51072c669596e5c0a939692ad3 to your computer and use it in GitHub Desktop.
[
{
"key": "group_5be5a1136a415",
"title": "Block: Hero",
"fields": [
{
"key": "field_5e0afdc64f5a3",
"label": "Content",
"name": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_5be5a120df428",
"label": "Heading",
"name": "heading",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "Hero Heading",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5beb448141f80",
"label": "Heading Type",
"name": "heading_type",
"type": "button_group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"h1": "H1",
"h2": "H2"
},
"allow_null": 0,
"default_value": "h1",
"layout": "horizontal",
"return_format": "value"
},
{
"key": "field_5be5a19ef498b",
"label": "Body",
"name": "body",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "Hero body text",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": ""
},
{
"key": "field_5e0afddf4f5a4",
"label": "Style",
"name": "",
"type": "tab",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"placement": "top",
"endpoint": 0
},
{
"key": "field_5beb47076f2d0",
"label": "Text Color",
"name": "color",
"type": "color_picker",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": ""
},
{
"key": "field_5beb47a80fb59",
"label": "Text Alignment",
"name": "text_alignment",
"type": "button_group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"text-left": "<span class=\"dashicons dashicons-editor-alignleft\"><\/span>",
"text-center": "<span class=\"dashicons dashicons-editor-aligncenter\"><\/span>",
"text-right": "<span class=\"dashicons dashicons-editor-alignright\"><\/span>"
},
"allow_null": 0,
"default_value": "text-center",
"layout": "horizontal",
"return_format": "value"
},
{
"key": "field_5be5a24cf498d",
"label": "Background Type",
"name": "background_type",
"type": "button_group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"image": "Image",
"color": "Color"
},
"allow_null": 0,
"default_value": "image",
"layout": "horizontal",
"return_format": "value"
},
{
"key": "field_5be5a1a9f498c",
"label": "Background Image",
"name": "background_image",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5be5a24cf498d",
"operator": "==",
"value": "image"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "array",
"preview_size": "thumbnail",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_5be5a280f498e",
"label": "Background Color",
"name": "background_color",
"type": "color_picker",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5be5a24cf498d",
"operator": "==",
"value": "color"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "#000000"
}
],
"location": [
[
{
"param": "block",
"operator": "==",
"value": "acf\/hero"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment