deprecated
2 weeks ago
block.json
1 month ago
edit.js
2 months ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
save.js
2 months ago
style.scss
2 months ago
save.js
31 lines
| 1 | import { RichText, useBlockProps } from '@wordpress/block-editor'; |
| 2 | |
| 3 | export default function save({ attributes }) { |
| 4 | const { heading, content, insertImage, insertImageAlt, arrowFlag } = |
| 5 | attributes; |
| 6 | |
| 7 | return ( |
| 8 | <div {...useBlockProps.save({ className: `${arrowFlag} vk_flow` })}> |
| 9 | <div className={'vk_flow_frame'}> |
| 10 | <dl className={'vk_flow_frame_text'}> |
| 11 | <RichText.Content |
| 12 | tagName="dt" |
| 13 | className={'vk_flow_frame_text_title'} |
| 14 | value={heading} |
| 15 | /> |
| 16 | <RichText.Content |
| 17 | tagName="dd" |
| 18 | className={'vk_flow_frame_text_content'} |
| 19 | value={content} |
| 20 | /> |
| 21 | </dl> |
| 22 | {insertImage && ( |
| 23 | <div className={'vk_flow_frame_image'}> |
| 24 | <img src={insertImage} alt={insertImageAlt} /> |
| 25 | </div> |
| 26 | )} |
| 27 | </div> |
| 28 | </div> |
| 29 | ); |
| 30 | } |
| 31 |