|
@@ 1974-1979 (lines=6) @@
|
| 1971 |
|
$field_label = Grunion_Contact_Form_Plugin::strip_tags( $field_label ); |
| 1972 |
|
|
| 1973 |
|
switch ( $field_type ) { |
| 1974 |
|
case 'email' : |
| 1975 |
|
$r .= "\n<div>\n"; |
| 1976 |
|
$r .= "\t\t<label for='" . esc_attr( $field_id ) . "' class='grunion-field-label email" . ( $this->is_error() ? ' form-error' : '' ) . "'>" . esc_html( $field_label ) . ( $field_required ? '<span>' . __( "(required)", 'jetpack' ) . '</span>' : '' ) . "</label>\n"; |
| 1977 |
|
$r .= "\t\t<input type='email' name='" . esc_attr( $field_id ) . "' id='" . esc_attr( $field_id ) . "' value='" . esc_attr( $field_value ) . "' class='email' " . $field_placeholder . " " . ( $field_required ? "required aria-required='true'" : "" ) . "/>\n"; |
| 1978 |
|
$r .= "\t</div>\n"; |
| 1979 |
|
break; |
| 1980 |
|
case 'telephone' : |
| 1981 |
|
$r .= "\n<div>\n"; |
| 1982 |
|
$r .= "\t\t<label for='" . esc_attr( $field_id ) . "' class='grunion-field-label telephone" . ( $this->is_error() ? ' form-error' : '' ) . "'>" . esc_html( $field_label ) . ( $field_required ? '<span>' . __( "(required)", 'jetpack' ) . '</span>' : '' ) . "</label>\n"; |
|
@@ 1984-1989 (lines=6) @@
|
| 1981 |
|
$r .= "\n<div>\n"; |
| 1982 |
|
$r .= "\t\t<label for='" . esc_attr( $field_id ) . "' class='grunion-field-label telephone" . ( $this->is_error() ? ' form-error' : '' ) . "'>" . esc_html( $field_label ) . ( $field_required ? '<span>' . __( "(required)", 'jetpack' ) . '</span>' : '' ) . "</label>\n"; |
| 1983 |
|
$r .= "\t\t<input type='tel' name='" . esc_attr( $field_id ) . "' id='" . esc_attr( $field_id ) . "' value='" . esc_attr( $field_value ) . "' class='telephone' " . $field_placeholder . "/>\n"; |
| 1984 |
|
case 'textarea' : |
| 1985 |
|
$r .= "\n<div>\n"; |
| 1986 |
|
$r .= "\t\t<label for='contact-form-comment-" . esc_attr( $field_id ) . "' class='grunion-field-label textarea" . ( $this->is_error() ? ' form-error' : '' ) . "'>" . esc_html( $field_label ) . ( $field_required ? '<span>' . __( "(required)", 'jetpack' ) . '</span>' : '' ) . "</label>\n"; |
| 1987 |
|
$r .= "\t\t<textarea name='" . esc_attr( $field_id ) . "' id='contact-form-comment-" . esc_attr( $field_id ) . "' rows='20' " . $field_placeholder . " " . ( $field_required ? "required aria-required='true'" : "" ) . ">" . esc_textarea( $field_value ) . "</textarea>\n"; |
| 1988 |
|
$r .= "\t</div>\n"; |
| 1989 |
|
break; |
| 1990 |
|
case 'radio' : |
| 1991 |
|
$r .= "\t<div><label class='grunion-field-label" . ( $this->is_error() ? ' form-error' : '' ) . "'>" . esc_html( $field_label ) . ( $field_required ? '<span>' . __( "(required)", 'jetpack' ) . '</span>' : '' ) . "</label>\n"; |
| 1992 |
|
foreach ( $this->get_attribute( 'options' ) as $option ) { |