_comment.php
1 day ago
_db.php
1 day ago
_hidden.php
1 day ago
_label.php
1 day ago
_row.php
1 day ago
attachment.php
1 day ago
checkbox.php
1 day ago
cleditor.php
1 day ago
codemirror.php
1 day ago
color.php
1 day ago
currency.php
1 day ago
date.php
1 day ago
datetime.php
1 day ago
email.php
1 day ago
link.php
1 day ago
number.php
1 day ago
oembed.php
1 day ago
password.php
1 day ago
phone.php
1 day ago
radio.php
1 day ago
select.php
1 day ago
slider.php
1 day ago
slug.php
1 day ago
text.php
1 day ago
textarea.php
1 day ago
time.php
1 day ago
tinymce.php
1 day ago
website.php
1 day ago
text.php
24 lines
| 1 | <?php |
| 2 | // Don't load directly. |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | die( '-1' ); |
| 5 | } |
| 6 | |
| 7 | $attributes = array(); |
| 8 | $attributes['type'] = 'text'; |
| 9 | $attributes['value'] = $value; |
| 10 | $attributes['tabindex'] = 2; |
| 11 | $attributes['class'] = 'regular-text'; |
| 12 | // For setting pages |
| 13 | $attributes = PodsForm::merge_attributes( $attributes, $name, $form_field_type, $options ); |
| 14 | |
| 15 | if ( pods_var( 'readonly', $options, false ) ) { |
| 16 | $attributes['readonly'] = 'READONLY'; |
| 17 | |
| 18 | $attributes['class'] .= ' pods-form-ui-read-only'; |
| 19 | } |
| 20 | ?> |
| 21 | <input<?php PodsForm::attributes( $attributes, $name, $form_field_type, $options ); ?> /> |
| 22 | <?php |
| 23 | PodsForm::regex( $form_field_type, $options ); |
| 24 |