__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { __ } from "@wordpress/i18n";
import {
BlockProps
} from "@essential-blocks/controls";
const save = ({ attributes }) => {
const {
blockId,
horizontalAlign,
verticalAlign,
verticalAlignCap2,
stylePreset,
displayAttribution,
attributionStyle,
hoverEffect,
classHook,
imageurl,
imageAttr,
} = attributes;
return (
<BlockProps.Save attributes={attributes}>
{imageurl && (
<div className={`eb-parent-wrapper eb-parent-${blockId} ${classHook}`}>
<figure
className={`eb-openverse-wrapper ${blockId} img-style-${stylePreset} ${attributionStyle} ${hoverEffect}`}
data-id={blockId}
>
<div className="image-wrapper">
<img src={imageurl} alt={imageAttr.title} />
</div>
{displayAttribution && (
<>
<div className="image-attribution">
{imageAttr.title && (
<span>
{imageAttr.foreignUrl && (
<a
target="_blank"
rel="noopener noreferrer"
href={imageAttr.foreignUrl}
>
{imageAttr.title}
</a>
)}
{!imageAttr.foreignUrl && imageAttr.title}
</span>
)}
{/* // creator */}
{imageAttr.creator && (
<span>
{__(" By ", "essential-blocks")}
{imageAttr.creatorUrl && (
<a
target="_blank"
rel="noopener noreferrer"
href={imageAttr.creatorUrl}
>
{imageAttr.creator}
</a>
)}
{!imageAttr.creatorUrl && imageAttr.creator}
</span>
)}
{/* // licensed */}
{imageAttr.license && (
<span>
{imageAttr.licenseUrl && (
<>
{__(" Is licensed under ", "essential-blocks")}
<a
target="_blank"
rel="noopener noreferrer"
href={imageAttr.licenseUrl}
className="licensed-wrap"
>
{imageAttr.license + " " + imageAttr.licenseVersion}
</a>
</>
)}
{!imageAttr.licenseUrl &&
imageAttr.license + " " + imageAttr.licenseVersion}
{__(" .", "essential-blocks")}
</span>
)}
</div>
</>
)}
</figure>
</div>
)}
</BlockProps.Save>
);
};
export default save;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| constants | Folder | 0750 |
|
|
| template-components | Folder | 0750 |
|
|
| attributes.js | File | 4.87 KB | 0640 |
|
| constants.js | File | 31.86 KB | 0640 |
|
| deprecated.js | File | 5.36 KB | 0640 |
|
| edit.js | File | 17.59 KB | 0640 |
|
| editor.scss | File | 9.82 KB | 0640 |
|
| example.js | File | 46 B | 0640 |
|
| icon.svg | File | 1000 B | 0640 |
|
| index.js | File | 1.03 KB | 0640 |
|
| inspector.js | File | 14.68 KB | 0640 |
|
| save.js | File | 4.48 KB | 0640 |
|
| style.js | File | 9.25 KB | 0640 |
|
| style.scss | File | 2.28 KB | 0640 |
|