PluginProbe
Getwid – Gutenberg Blocks / 3.0.1
Getwid – Gutenberg Blocks v3.0.1
3.0.2 3.0.1 3.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 trunk 1.8.7 1.9.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
getwid / includes / templates / contact-form / contact-form.php

contact-form.php in Getwid – Gutenberg Blocks 3.0.1, at includes/templates/contact-form/contact-form.php

32 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <form class='wp-block-getwid-contact-form__form'>
2 <?php echo $extra_attr[ 'content' ]; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
3
4 <input name='subject' <?php
5 if ( isset( $attributes[ 'subject' ] ) ) {?>
6 value='<?php echo esc_attr( $attributes[ 'subject' ] ); ?>'<?php
7 }?>
8 type='hidden'
9 />
10
11 <p class='<?php echo esc_attr( $extra_attr[ 'block_name' ] . '__result' ); ?>'></p>
12
13 <div class='<?php echo esc_attr( $extra_attr[ 'block_name' ] . '__submit' ); ?>'>
14 <div class='wp-block-button'>
15 <button
16 type='submit'
17 class='<?php echo esc_attr( 'wp-block-button__link ' . $extra_attr[ 'button_class' ] ); ?>'<?php
18 if ( isset( $extra_attr[ 'button_style' ] ) ) { ?>
19 style='<?php echo esc_attr( $extra_attr[ 'button_style' ] ); ?>'<?php
20 } ?>
21 ><?php
22 if ( isset( $attributes[ 'text' ] ) ) {
23 echo wp_kses_post( $attributes[ 'text' ] );
24 } else {
25 echo esc_html__( 'Submit', 'getwid' );
26 }
27 ?></button>
28 </div>
29
30 </div>
31 </form>
32