PluginProbe
Getwid – Gutenberg Blocks / 2.2.0
Getwid – Gutenberg Blocks v2.2.0
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 / field-textarea.php

field-textarea.php in Getwid – Gutenberg Blocks 2.2.0, at includes/templates/contact-form/field-textarea.php

30 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $class = 'wp-block-getwid-field-textarea';
3 $block_name = $class;
4 if ( isset( $attributes[ 'className' ] ) ) {
5 $class .= ' ' . $attributes[ 'className' ];
6 }
7 $uid = isset( $attributes[ 'id' ] ) ? $attributes[ 'id' ] : 'message-' . uniqid();
8 $label = isset( $attributes[ 'label' ] ) ? $attributes[ 'label' ] : __( 'Message', 'getwid' );
9 ?>
10 <p class='<?php echo esc_attr( $class );?>'>
11 <?php if ( !empty($label) ) : ?>
12 <label
13 for='<?php echo esc_attr( $uid ); ?>'
14 class='<?php echo esc_attr( $block_name . '__label' );?>'
15 ><?php
16 echo wp_kses_post( $label );
17 ?></label>
18 <?php endif; ?>
19 <textarea
20 id='<?php echo esc_attr( $uid ); ?>' rows='<?php echo esc_attr( apply_filters('getwid/blocks/contact_form/textarea_rows', 5) ); ?>' name='message'<?php
21 if ( isset( $attributes[ 'placeholder' ] ) ) { ?>
22 placeholder='<?php echo esc_attr( $attributes[ 'placeholder' ] ); ?>'<?php
23 }
24
25 if ( isset( $attributes[ 'required' ] ) ) { ?>
26 required=''
27 <?php } ?>
28 ></textarea>
29 </p>
30