| 1 |
<form class='wp-block-getwid-mailchimp__form'> |
| 2 |
<?php echo $extra_attr[ 'content' ]; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 3 |
|
| 4 |
<input name='list_ids' <?php |
| 5 |
$data = json_encode( $attributes[ 'ids' ] ); |
| 6 |
|
| 7 |
if ( isset( $attributes[ 'ids' ] ) ) {?> |
| 8 |
value='<?php echo esc_attr( $data ); ?>'<?php |
| 9 |
}?> |
| 10 |
type='hidden' |
| 11 |
/> |
| 12 |
|
| 13 |
<p class='<?php echo esc_attr( $extra_attr[ 'block_name' ] . '__result' ); ?>'></p> |
| 14 |
|
| 15 |
<div class='<?php echo esc_attr( $extra_attr[ 'block_name' ] . '__submit' ); ?>'> |
| 16 |
<div class='wp-block-button'> |
| 17 |
<button |
| 18 |
type='submit' |
| 19 |
class='<?php echo esc_attr( 'wp-block-button__link ' . $extra_attr[ 'button_class' ] ); ?>'<?php |
| 20 |
if ( isset( $extra_attr[ 'button_style' ] ) ) { ?> |
| 21 |
style='<?php echo esc_attr( $extra_attr[ 'button_style' ] ); ?>'<?php |
| 22 |
} ?> |
| 23 |
><?php |
| 24 |
if ( isset( $attributes[ 'text' ] ) && $attributes[ 'text' ] != '' ) { |
| 25 |
echo wp_kses_post( $attributes[ 'text' ] ); |
| 26 |
} else { |
| 27 |
echo esc_html__( 'Subscribe', 'getwid' ); |
| 28 |
} |
| 29 |
?></button> |
| 30 |
</div> |
| 31 |
|
| 32 |
</div> |
| 33 |
</form> |
| 34 |
|