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":108025,"date":"2026-08-28T10:23:22","date_gmt":"2026-08-28T09:23:22","guid":{"rendered":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=108025"},"modified":"2026-08-28T10:23:26","modified_gmt":"2026-08-28T09:23:26","slug":"%e5%85%a5%e9%87%91%e4%b8%8d%e8%a6%81%e3%81%ae%e3%82%ae%e3%83%a3%e3%83%b3%e3%83%96%e3%83%ab%e6%96%bd%e8%a8%ad%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%bb%e3%83%b3%e3%83%86%e3%82%a3%e3%83%96%e8%a6%81%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/www.foxmultimedia.co.uk\/fizzydev\/?p=108025","title":{"rendered":"\u5165\u91d1\u4e0d\u8981\u306e\u30ae\u30e3\u30f3\u30d6\u30eb\u65bd\u8a2d\u306e\u30a4\u30f3\u30bb\u30f3\u30c6\u30a3\u30d6\u8981\u4ef6"},"content":{"rendered":"

\u3053\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u3092\u4f7f\u3063\u3066\u3001\u30d7\u30ec\u30a4\u30b9\u30bf\u30a4\u30eb\u306b\u5408\u3063\u305f\u5165\u91d1\u4e0d\u8981\u306e\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u30aa\u30d5\u30a1\u30fc\u3092\u898b\u3064\u3051\u307e\u3057\u3087\u3046\u3002\u6700\u65b0\u306e\u5165\u91d1\u4e0d\u8981\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u3092\u6bd4\u8f03\u3057\u3066\u3001\u304a\u6c17\u306b\u5165\u308a\u306e\u30aa\u30d5\u30a1\u30fc\u3092\u9078\u3073\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u3001\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u30dc\u30fc\u30ca\u30b9\u3092\u898b\u3064\u3051\u3066\u6709\u52b9\u5316\u3057\u3001\u30b9\u30d4\u30f3\u3092\u5b9f\u969b\u306e\u5229\u76ca\u306b\u5909\u3048\u308b\u7c21\u5358\u306a\u30ac\u30a4\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ab\u30b8\u30ce\u306f\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u30c8\u30fc\u30ca\u30e1\u30f3\u30c8\u3084\u30a4\u30d9\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u30c8\u30fc\u30ca\u30e1\u30f3\u30c8\u3067\u306e\u6804\u8a89\u3068\u3057\u3066\u3001\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u3092\u6388\u4e0e\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b9\u30d4\u30f3\u306f\u901a\u5e38\u3001\u7279\u5b9a\u306e\u30b9\u30ed\u30c3\u30c8\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u304a\u308a\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306f\u5165\u91d1\u524d\u306b\u65b0\u3057\u3044\u30ab\u30b8\u30ce\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u3053\u308c\u3089\u306f\u3001\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u5165\u91d1\u30dc\u30fc\u30ca\u30b9\u307b\u3069\u6709\u540d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u3042\u3089\u3086\u308b\u7a2e\u985e\u306e\u5165\u91d1\u4e0d\u8981\u30dc\u30fc\u30ca\u30b9\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u30ab\u30b8\u30ce\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u65b0\u898f\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u5229\u7528\u3067\u304d\u308b\u62db\u5f85\u30dc\u30fc\u30ca\u30b9\u3067\u3042\u308b\u5165\u91d1\u4e0d\u8981\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u306f\u3001\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u6700\u3082\u4e00\u822c\u7684\u306a\u5165\u91d1\u4e0d\u8981\u30d5\u30ea\u30fc\u30b9\u30d4\u30f3\u306e\u7a2e\u985e\u3092\u3044\u304f\u3064\u304b\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n