Skip to content

Instantly share code, notes, and snippets.

@annelyse
Last active January 9, 2023 16:54
Show Gist options
  • Save annelyse/0e31ca931b484f075c5cf8358b3fdfb9 to your computer and use it in GitHub Desktop.
Save annelyse/0e31ca931b484f075c5cf8358b3fdfb9 to your computer and use it in GitHub Desktop.
[
{
"key": "group_63a093e6cf3f4",
"title": "Equipe",
"fields": [
{
"key": "field_63bc0fdf01706",
"label": "Membre",
"name": "member",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layout": "",
"sub_fields": [
{
"key": "field_63a09463358bd",
"label": "Prénom",
"name": "firstname",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "50",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_63a0940a358bc",
"label": "Nom",
"name": "lastname",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "50",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_63a094a2358bf",
"label": "Photo",
"name": "img",
"aria-label": "",
"type": "image_aspect_ratio_crop",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "50",
"class": "",
"id": ""
},
"crop_type": "aspect_ratio",
"aspect_ratio_width": 445,
"aspect_ratio_height": 652,
"return_format": "",
"preview_size": "thumbnail",
"library": "",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_63a09485358be",
"label": "Description",
"name": "description",
"aria-label": "",
"type": "wysiwyg",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "50",
"class": "",
"id": ""
},
"default_value": "",
"tabs": "all",
"toolbar": "basic",
"media_upload": 0,
"delay": 1
}
]
}
],
"location": [
[
{
"param": "page",
"operator": "==",
"value": "2"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"show_in_rest": 0
}
]
{% if item.member_img %}
<div class="offcanvas__img">
{% set image = Image(item.member_img) %}
<img src="{{ image.src('team') }}"
alt="{{ image.alt }}"
loading="lazy"
width="{{ image.sizes.team.width }}"
height="{{ image.sizes.team.height }}"
srcset="{{ image.srcset }}"
sizes="{{ image.img_sizes }}" />
</div>
{% endif %}
{{ item.title }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment