{
  "name": "woolentor/testimonial",
  "category": "woolentor-blocks",
  "title": "WL: Testimonial",
  "description": "Display customer testimonials or reviews.",
  "keywords": [
    "woolentor",
    "testimonial",
    "review",
    "customer",
    "feedback"
  ],
  "supports": {
    "align": [
      "wide",
      "full"
    ]
  },
  "attributes": {
    "blockUniqId": {
      "type": "string",
      "default": ""
    },
    "areaPadding": {
      "type": "object",
      "default": {
        "device": "desktop"
      },
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} { padding: {{areaPadding}}; }"
      }
    },
    "areaMargin": {
      "type": "object",
      "default": {
        "device": "desktop"
      },
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} { margin: {{areaMargin}}; }"
      }
    },
    "areaBGProperty": {
      "type": "object",
      "default": {
        "imageId": null,
        "imageUrl": "",
        "position": "",
        "attachment": "",
        "repeat": "",
        "size": ""
      },
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}}"
      }
    },
    "testimonialStyle": {
      "type": "string",
      "default": "1"
    },
    "testimonialType": {
      "type": "string",
      "default": "custom"
    },
    "testimonialList": {
      "type": "array",
      "default": [
        {
          "name": "Anna Miller",
          "designation": "Designer",
          "rating": "5",
          "message": "“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, laboris consequat.”",
          "image": {
            "id": "",
            "url": ""
          }
        },
        {
          "name": "Kevin Walker",
          "designation": "Manager",
          "rating": "3.5",
          "message": "Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
          "image": {
            "id": "",
            "url": ""
          }
        },
        {
          "name": "Ruth Pierce",
          "designation": "Developer",
          "rating": "4",
          "message": "Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
          "image": {
            "id": "",
            "url": ""
          }
        }
      ]
    },
    "limit": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "productIds": {
      "type": "string"
    },
    "imageSize": {
      "type": "string",
      "default": "full"
    },
    "showImage": {
      "type": "boolean",
      "default": true
    },
    "columns": {
      "type": "object",
      "default": {
        "desktop": 3
      }
    },
    "noGutter": {
      "type": "boolean",
      "default": false
    },
    "columnSpace": {
      "type": "number",
      "default": 15,
      "style": {
        "dependency": [
          [
            {
              "key": "noGutter",
              "condition": "==",
              "value": false
            }
          ]
        ],
        "selector": "{{WOOLENTOR_WRAPPER}} .woolentor-grid:not(.woolentor-no-gutters) { column-gap: {{columnSpace}}px; }"
      }
    },
    "rowSpace": {
      "type": "number",
      "default": 15,
      "style": {
        "dependency": [
          [
            {
              "key": "noGutter",
              "condition": "==",
              "value": false
            }
          ]
        ],
        "selector": "{{WOOLENTOR_WRAPPER}} .woolentor-grid:not(.woolentor-no-gutters) { row-gap: {{rowSpace}}px; }"
      }
    },
    "contentAlign": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-client-content,{{WOOLENTOR_WRAPPER}} .ht-client-rating { text-align: {{contentAlign}}; } {{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap .ht-client-rating ul{ display:inline-flex; }"
      }
    },
    "contentPadding": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap { padding: {{contentPadding}}; }"
      }
    },
    "contentMargin": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap { margin: {{contentMargin}}; }"
      }
    },
    "contentBGColor": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap { background-color: {{contentBGColor}}; }"
      }
    },
    "contentBorder": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap"
      }
    },
    "contentBorderRadius": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap { border-radius: {{contentBorderRadius}}; }"
      }
    },
    "imageBorder": {
      "type": "object",
      "style": {
        "dependency": [
          [
            {
              "key": "showImage",
              "condition": "==",
              "value": true
            }
          ]
        ],
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] img"
      }
    },
    "imageBorderRadius": {
      "type": "object",
      "style": {
        "dependency": [
          [
            {
              "key": "showImage",
              "condition": "==",
              "value": true
            }
          ]
        ],
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] img { border-radius: {{imageBorderRadius}} !important; }"
      }
    },
    "nameColor": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] h4 { color: {{nameColor}}!important; }{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] span::before,{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] h4::before{ background-color: {{nameColor}}!important; }"
      }
    },
    "nameTypography": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] h4"
      }
    },
    "nameSize": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] h4 { font-size: {{nameSize}}!important; }"
      },
      "deprecated": true,
      "_comment": "legacy font size before nameTypography"
    },
    "namePadding": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] h4 { padding: {{namePadding}}!important; }"
      }
    },
    "nameMargin": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] h4 { margin: {{nameMargin}}!important; }"
      }
    },
    "designationColor": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] span { color: {{designationColor}}!important; }"
      }
    },
    "designationTypography": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] span"
      }
    },
    "designationSize": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] span { font-size: {{designationSize}}!important; }"
      },
      "deprecated": true,
      "_comment": "legacy font size before designationTypography"
    },
    "designationPadding": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] span { padding: {{designationPadding}}!important; }"
      }
    },
    "designationMargin": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-info'] span { margin: {{designationMargin}}!important; }"
      }
    },
    "messageColor": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-content'] p { color: {{messageColor}}!important; }"
      }
    },
    "messageTypography": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-content'] p"
      }
    },
    "messageSize": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-content'] p { font-size: {{messageSize}}!important; }"
      },
      "deprecated": true,
      "_comment": "legacy font size before messageTypography"
    },
    "messagePadding": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-content'] p { padding: {{messagePadding}}!important; }"
      }
    },
    "messageMargin": {
      "type": "object",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap [class*='ht-client-content'] p { margin: {{messageMargin}}!important; }"
      }
    },
    "ratingColor": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap .ht-client-rating ul li i { color: {{ratingColor}}!important; }"
      }
    },
    "ratingSize": {
      "type": "string",
      "style": {
        "selector": "{{WOOLENTOR_WRAPPER}} .ht-single-testimonial-wrap .ht-client-rating ul li i { font-size: {{ratingSize}}!important; }"
      }
    }
  }
}