| 1 |
<?php |
| 2 |
|
| 3 |
$id = wp_unique_id( 'bBlocksOffCanvas-' ); |
| 4 |
$planClass = BBlocks\Inc\Utils::isPro() ? 'pro' : 'free'; |
| 5 |
?> |
| 6 |
<div |
| 7 |
<?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?> |
| 8 |
<?php echo get_block_wrapper_attributes( [ 'class' => $planClass ] ); ?> |
| 9 |
id='<?php echo esc_attr( $id ); ?>' |
| 10 |
data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>' |
| 11 |
> |
| 12 |
<div class='b-blocks-off-canvas-innerBlocks-contents'> |
| 13 |
<?php |
| 14 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $content is rendered InnerBlocks output already escaped by core. |
| 15 |
echo $content; |
| 16 |
?> |
| 17 |
</div> |
| 18 |
</div> |
| 19 |
|