# getwid/2.0.12/includes/templates/contact-form/field-textarea.php

Getwid – Gutenberg Blocks, version 2.0.12. 30 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.0.12/code/includes/templates/contact-form/field-textarea.php
- Raw: https://pluginprobe.com/plugins/getwid/2.0.12/raw/includes/templates/contact-form/field-textarea.php
- Modified: 2024-10-25T10:23:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/getwid/2.0.12/code/includes/templates/contact-form/field-textarea.php#L10-L20`.

```php
<?php
    $class = 'wp-block-getwid-field-textarea';
    $block_name = $class;
    if ( isset( $attributes[ 'className' ] ) ) {
        $class .= ' ' . $attributes[ 'className' ];
    }
    $uid   = isset( $attributes[ 'id' ] )    ? $attributes[ 'id' ] : 'message-' . uniqid();
    $label = isset( $attributes[ 'label' ] ) ? $attributes[ 'label' ] : __( 'Message', 'getwid' );
?>
<p class='<?php echo esc_attr( $class );?>'>
	<?php if ( !empty($label) ) : ?>
    <label
		for='<?php echo esc_attr( $uid ); ?>'
        class='<?php echo esc_attr( $block_name . '__label' );?>'
    ><?php
        echo wp_kses_post( $label );
    ?></label>
	<?php endif; ?>
    <textarea
		id='<?php echo esc_attr( $uid ); ?>' rows='<?php echo esc_attr( apply_filters('getwid/blocks/contact_form/textarea_rows', 5) ); ?>' name='message'<?php
        if ( isset( $attributes[ 'placeholder' ] ) ) { ?>
            placeholder='<?php echo esc_attr( $attributes[ 'placeholder' ] ); ?>'<?php
        }

        if ( isset( $attributes[ 'required' ] ) ) { ?>
            required=''
        <?php } ?>
    ></textarea>
</p>

```
