PluginProbe
Getwid – Gutenberg Blocks / 2.0.11
Getwid – Gutenberg Blocks v2.0.11
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-email.php

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

29 lines 1.0 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-email';
3 $block_name = $class;
4 if ( isset( $attributes[ 'className' ] ) ) {
5 $class .= ' ' . $attributes[ 'className' ];
6 }
7 $uid = isset( $attributes[ 'id' ] ) ? $attributes[ 'id' ] : 'email-' . uniqid();
8 $label = isset( $attributes[ 'label' ] ) ? $attributes[ 'label' ] : __( 'Email address', '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 <input id='<?php echo esc_attr( $uid ); ?>' type='email' name='email' <?php
20 if ( isset( $attributes[ 'placeholder' ] ) ) { ?>
21 placeholder='<?php echo esc_attr( $attributes[ 'placeholder' ] ); ?>' <?php
22 }
23
24 if ( isset( $attributes[ 'required' ] ) ) { ?>
25 required=''<?php
26 } ?>
27 />
28 </p>
29