setAttributes({
[`${controlName}bgImgAttachment`]:
bgImgAttachment,
})
}
/>
{bgImgAttachment === "fixed" && (
Note: Attachment Fixed works only on desktop.
)}
setAttributes({
[`${controlName}bgImgRepeat`]: bgImgRepeat,
})
}
/>
setAttributes({
[`${controlName}backgroundSize`]:
backgroundSize,
})
}
/>
{backgroundSize === "custom" && (
<>
setAttributes({
[`${controlName}bgImgCustomSizeUnit`]:
bgImgCustomSizeUnit,
})
}
/>
setAttributes({
[`${controlName}bgImgCustomSize`]:
bgImgCustomSize,
})
}
/>
>
)}
>
)}
{resOption === "Tablet" && (
<>
setAttributes({
[`TAB${controlName}bgImgPos`]: TABbgImgPos,
})
}
/>
{TABbgImgPos === "custom" && (
<>
setAttributes({
[`TAB${controlName}bgImgcustomPosXUnit`]:
TABbgImgcustomPosXUnit,
})
}
/>
setAttributes({
[`TAB${controlName}bgImgcustomPosX`]:
TABbgImgcustomPosX,
})
}
/>
setAttributes({
[`TAB${controlName}bgImgcustomPosYUnit`]:
TABbgImgcustomPosYUnit,
})
}
/>
setAttributes({
[`TAB${controlName}bgImgcustomPosY`]:
TABbgImgcustomPosY,
})
}
/>
>
)}
setAttributes({
[`${controlName}bgImgAttachment`]:
bgImgAttachment,
})
}
/>
{bgImgAttachment === "fixed" && (
Note: Attachment Fixed works only on desktop.
)}
setAttributes({
[`TAB${controlName}bgImgRepeat`]:
TABbgImgRepeat,
})
}
/>
setAttributes({
[`TAB${controlName}backgroundSize`]:
TABbackgroundSize,
})
}
/>
{TABbackgroundSize === "custom" && (
<>
setAttributes({
[`TAB${controlName}bgImgCustomSizeUnit`]:
TABbgImgCustomSizeUnit,
})
}
/>
setAttributes({
[`TAB${controlName}bgImgCustomSize`]:
TABbgImgCustomSize,
})
}
/>
>
)}
>
)}
{resOption === "Mobile" && (
<>
setAttributes({
[`MOB${controlName}bgImgPos`]: MOBbgImgPos,
})
}
/>
{MOBbgImgPos === "custom" && (
<>
setAttributes({
[`MOB${controlName}bgImgcustomPosXUnit`]:
MOBbgImgcustomPosXUnit,
})
}
/>
setAttributes({
[`MOB${controlName}bgImgcustomPosX`]:
MOBbgImgcustomPosX,
})
}
/>
setAttributes({
[`MOB${controlName}bgImgcustomPosYUnit`]:
MOBbgImgcustomPosYUnit,
})
}
/>
setAttributes({
[`MOB${controlName}bgImgcustomPosY`]:
MOBbgImgcustomPosY,
})
}
/>
>
)}
setAttributes({
[`${controlName}bgImgAttachment`]:
bgImgAttachment,
})
}
/>
{bgImgAttachment === "fixed" && (
Note: Attachment Fixed works only on desktop.
)}
setAttributes({
[`MOB${controlName}bgImgRepeat`]:
MOBbgImgRepeat,
})
}
/>
setAttributes({
[`MOB${controlName}backgroundSize`]:
MOBbackgroundSize,
})
}
/>
{MOBbackgroundSize === "custom" && (
<>
setAttributes({
[`MOB${controlName}bgImgCustomSizeUnit`]:
MOBbgImgCustomSizeUnit,
})
}
/>
setAttributes({
[`MOB${controlName}bgImgCustomSize`]:
MOBbgImgCustomSize,
})
}
/>
>
)}
>
)}
>
)}
>
)}
>
)}
{backgroundType === "gradient" && (
setAttributes({
[`${controlName}gradientColor`]: gradientColor,
})
}
/>
)}
>
)}
{bg_hoverType === "hover" && (
<>
{[
{ label: __("Classic", "betterdocs"), value: "classic" },
{ label: __("Gradient", "betterdocs"), value: "gradient" },
].map(({ value, label }) => (
))}
{hov_backgroundType === "classic" && (
<>
setAttributes({
[`hov_${controlName}backgroundColor`]: hov_backgroundColor,
})
}
/>
{noMainBgi === false && (
<>
setAttributes({
[`hov_${controlName}bgImageURL`]: url,
[`hov_${controlName}bgImageID`]: id,
})
}
type="image"
value={hov_bgImageID}
render={({ open }) =>
!hov_bgImageURL && (
<>
>
)
}
/>
{hov_bgImageURL && (
<>
setAttributes({
[`hov_${controlName}bgImageURL`]: null,
})
}
/>
{resOption === "Desktop" && (
<>
setAttributes({
[`hov_${controlName}bgImgPos`]: hov_bgImgPos,
})
}
/>
{hov_bgImgPos === "custom" && (
<>
setAttributes({
[`hov_${controlName}bgImgcustomPosXUnit`]:
hov_bgImgcustomPosXUnit,
})
}
/>
setAttributes({
[`hov_${controlName}bgImgcustomPosX`]:
hov_bgImgcustomPosX,
})
}
/>
setAttributes({
[`hov_${controlName}bgImgcustomPosYUnit`]:
hov_bgImgcustomPosYUnit,
})
}
/>
setAttributes({
[`hov_${controlName}bgImgcustomPosY`]:
hov_bgImgcustomPosY,
})
}
/>
>
)}
setAttributes({
[`hov_${controlName}bgImgAttachment`]:
hov_bgImgAttachment,
})
}
/>
{hov_bgImgAttachment === "fixed" && (
Note: Attachment Fixed works only on desktop.
)}
setAttributes({
[`hov_${controlName}bgImgRepeat`]:
hov_bgImgRepeat,
})
}
/>
setAttributes({
[`hov_${controlName}backgroundSize`]:
hov_backgroundSize,
})
}
/>
{hov_backgroundSize === "custom" && (
<>
setAttributes({
[`hov_${controlName}bgImgCustomSizeUnit`]:
hov_bgImgCustomSizeUnit,
})
}
/>
setAttributes({
[`hov_${controlName}bgImgCustomSize`]:
hov_bgImgCustomSize,
})
}
/>
>
)}
>
)}
{resOption === "Tablet" && (
<>
setAttributes({
[`hov_TAB${controlName}bgImgPos`]:
hov_TABbgImgPos,
})
}
/>
{hov_TABbgImgPos === "custom" && (
<>
setAttributes({
[`hov_TAB${controlName}bgImgcustomPosXUnit`]:
hov_TABbgImgcustomPosXUnit,
})
}
/>
setAttributes({
[`hov_TAB${controlName}bgImgcustomPosX`]:
hov_TABbgImgcustomPosX,
})
}
/>
setAttributes({
[`hov_TAB${controlName}bgImgcustomPosYUnit`]:
hov_TABbgImgcustomPosYUnit,
})
}
/>
setAttributes({
[`hov_TAB${controlName}bgImgcustomPosY`]:
hov_TABbgImgcustomPosY,
})
}
/>
>
)}
setAttributes({
[`hov_${controlName}bgImgAttachment`]:
hov_bgImgAttachment,
})
}
/>
{hov_bgImgAttachment === "fixed" && (
Note: Attachment Fixed works only on desktop.
)}
setAttributes({
[`hov_TAB${controlName}bgImgRepeat`]:
hov_TABbgImgRepeat,
})
}
/>
setAttributes({
[`hov_TAB${controlName}backgroundSize`]:
hov_TABbackgroundSize,
})
}
/>
{hov_TABbackgroundSize === "custom" && (
<>
setAttributes({
[`hov_TAB${controlName}bgImgCustomSizeUnit`]:
hov_TABbgImgCustomSizeUnit,
})
}
/>
setAttributes({
[`hov_TAB${controlName}bgImgCustomSize`]:
hov_TABbgImgCustomSize,
})
}
/>
>
)}
>
)}
{resOption === "Mobile" && (
<>
setAttributes({
[`hov_MOB${controlName}bgImgPos`]:
hov_MOBbgImgPos,
})
}
/>
{hov_MOBbgImgPos === "custom" && (
<>
setAttributes({
[`hov_MOB${controlName}bgImgcustomPosXUnit`]:
hov_MOBbgImgcustomPosXUnit,
})
}
/>
setAttributes({
[`hov_MOB${controlName}bgImgcustomPosX`]:
hov_MOBbgImgcustomPosX,
})
}
/>
setAttributes({
[`hov_MOB${controlName}bgImgcustomPosYUnit`]:
hov_MOBbgImgcustomPosYUnit,
})
}
/>
setAttributes({
[`hov_MOB${controlName}bgImgcustomPosY`]:
hov_MOBbgImgcustomPosY,
})
}
/>
>
)}
setAttributes({
[`hov_${controlName}bgImgAttachment`]:
hov_bgImgAttachment,
})
}
/>
{hov_bgImgAttachment === "fixed" && (
Note: Attachment Fixed works only on desktop.
)}
setAttributes({
[`hov_MOB${controlName}bgImgRepeat`]:
hov_MOBbgImgRepeat,
})
}
/>
setAttributes({
[`hov_MOB${controlName}backgroundSize`]:
hov_MOBbackgroundSize,
})
}
/>
{hov_MOBbackgroundSize === "custom" && (
<>
setAttributes({
[`hov_MOB${controlName}bgImgCustomSizeUnit`]:
hov_MOBbgImgCustomSizeUnit,
})
}
/>
setAttributes({
[`hov_MOB${controlName}bgImgCustomSize`]:
hov_MOBbgImgCustomSize,
})
}
/>
>
)}
>
)}
>
)}
>
)}
>
)}
{hov_backgroundType === "gradient" && (
setAttributes({
[`hov_${controlName}gradientColor`]: hov_gradientColor,
})
}
/>
)}
{!noTransition && (
setAttributes({
[`${controlName}bg_transition`]: bg_transition,
})
}
/>
)}
>
)}
>
);
}