| 1 |
<?php |
| 2 |
if (is_user_logged_in()){ |
| 3 |
$button = $attributes['button']; |
| 4 |
$signout = $button['signout']; |
| 5 |
?> |
| 6 |
<div><h3><?php echo esc_html($signout['text']['first']); ?> <a class="lgfr-logoutBtn" href="<?php echo esc_url(wp_logout_url(home_url())); ?>"><?php echo esc_html($signout['text']['second']); ?></a></h3></div> |
| 7 |
<?php |
| 8 |
}else { |
| 9 |
$id = wp_unique_id( 'bBlocksBForm-' ); |
| 10 |
?> |
| 11 |
<div <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- get_block_wrapper_attributes() is properly escaped ?> |
| 12 |
<?php echo get_block_wrapper_attributes(); ?> id='<?php echo esc_attr( $id ); ?>' data-attributes='<?php echo esc_attr( wp_json_encode( $attributes ) ); ?>'> |
| 13 |
|
| 14 |
<div id='bFormPhpGetContent'> |
| 15 |
<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- InnerBlocks pre-rendered content, escaped by core block pipeline. ?> |
| 16 |
</div> |
| 17 |
</div> |
| 18 |
<?php |
| 19 |
} |