| 1 |
<?php |
| 2 |
/** |
| 3 |
* Server-side rendering of the `gianism/login` block. |
| 4 |
* |
| 5 |
* @package Gianism |
| 6 |
* @var array $attributes Block attributes. |
| 7 |
* @var string $content Block default content. |
| 8 |
* @var WP_Block $block Block instance. |
| 9 |
*/ |
| 10 |
|
| 11 |
$redirect_to = $attributes['redirectTo'] ?? ''; |
| 12 |
$wrapper_attributes = get_block_wrapper_attributes(); |
| 13 |
?> |
| 14 |
<div <?php echo $wrapper_attributes; ?>> |
| 15 |
<?php gianism_login( '', '', $redirect_to ); ?> |
| 16 |
</div> |
| 17 |
|