_comment.php
2 weeks ago
_db.php
2 weeks ago
_hidden.php
2 weeks ago
_label.php
2 weeks ago
_row.php
2 weeks ago
attachment.php
2 weeks ago
checkbox.php
2 weeks ago
cleditor.php
2 weeks ago
codemirror.php
2 weeks ago
color.php
2 weeks ago
currency.php
2 weeks ago
date.php
2 weeks ago
datetime.php
2 weeks ago
email.php
2 weeks ago
link.php
2 weeks ago
number.php
2 weeks ago
oembed.php
2 weeks ago
password.php
2 weeks ago
phone.php
2 weeks ago
radio.php
2 weeks ago
select.php
2 weeks ago
slider.php
2 weeks ago
slug.php
2 weeks ago
text.php
2 weeks ago
textarea.php
2 weeks ago
time.php
2 weeks ago
tinymce.php
2 weeks ago
website.php
2 weeks ago
email.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | // Don't load directly. |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | die( '-1' ); |
| 6 | } |
| 7 | |
| 8 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound |
| 9 | |
| 10 | $attributes = array(); |
| 11 | |
| 12 | $type = 'text'; |
| 13 | |
| 14 | if ( 1 === (int) pods_v( 'email_html5', $options ) ) { |
| 15 | $type = 'email'; |
| 16 | } |
| 17 | |
| 18 | $attributes['type'] = $type; |
| 19 | $attributes['value'] = $value; |
| 20 | $attributes['tabindex'] = 2; |
| 21 | $attributes = PodsForm::merge_attributes( $attributes, $name, $form_field_type, $options ); |
| 22 | ?> |
| 23 | <input<?php PodsForm::attributes( $attributes, $name, $form_field_type, $options ); ?> /> |
| 24 | <?php |
| 25 | PodsForm::regex( $form_field_type, $options ); |
| 26 |