import { RichText } from "@wordpress/block-editor"; import { sanitizeURL, BlockProps } from "@essential-blocks/controls"; const save = ({ attributes }) => { const { blockId, image, imageCaption, horizontalAlign, verticalAlign, verticalAlignCap2, stylePreset, captionStyle, hoverEffect, openInNewTab, imageLink, enableLink, classHook, imgSource } = attributes; if (imgSource !== 'custom') { return null; } let imageURL = image.url; const linkTarget = openInNewTab ? "_blank" : undefined; if (imageURL === "") return null; return (
{enableLink && ( )} {image.alt} {!RichText.isEmpty(imageCaption) && captionStyle != "caption-style-2" && ( )}
{!RichText.isEmpty(imageCaption) && captionStyle == "caption-style-2" && ( )}
); }; export default save; {"id":599118,"date":"2026-11-13T14:07:38","date_gmt":"2026-11-13T14:07:38","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=599118"},"modified":"2026-11-13T14:07:37","modified_gmt":"2026-11-13T14:07:37","slug":"%d8%a7%d9%84%d8%a5%d9%86%d9%81%d8%a7%d9%82-%d8%b9%d8%a8%d8%b1-%d8%a7%d9%84%d9%87%d8%a7%d8%aa%d9%81-%d8%a7%d9%84%d9%85%d8%ad%d9%85%d9%88%d9%84-%d8%a8%d8%af%d9%84%d8%a7%d9%8b-%d9%85%d9%86-gamstop","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=599118","title":{"rendered":"\u0627\u0644\u0625\u0646\u0641\u0627\u0642 \u0639\u0628\u0631 \u0627\u0644\u0647\u0627\u062a\u0641 \u0627\u0644\u0645\u062d\u0645\u0648\u0644 \u0628\u062f\u0644\u0627\u064b \u0645\u0646 GamStop, \u0627\u0644\u062f\u0641\u0639 \u0645\u0646 \u0627\u0644\u0647\u0627\u062a\u0641 \u0627\u0644\u0645\u062d\u0645\u0648\u0644 \u0628\u062f\u0644\u0627\u064b \u0645\u0646 GamStop 2024"},"content":{"rendered":"
\n

\u0627\u0644\u0645\u062f\u0648\u0646\u0627\u062a<\/p>\n