Block.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCartBlocks\Blocks\Confirmation; |
| 4 | |
| 5 | use SureCartBlocks\Blocks\BaseBlock; |
| 6 | |
| 7 | /** |
| 8 | * Checkout block |
| 9 | */ |
| 10 | class Block extends BaseBlock { |
| 11 | /** |
| 12 | * Render the block |
| 13 | * |
| 14 | * @param array $attributes Block attributes. |
| 15 | * @param string $content Post content. |
| 16 | * |
| 17 | * @return string |
| 18 | */ |
| 19 | public function render( $attributes, $content ) { |
| 20 | return '<sc-order-confirmation>' . filter_block_content( $content, 'post' ) . '</sc-order-confirmation>'; |
| 21 | } |
| 22 | } |
| 23 |