_comment.php
2 years ago
_db.php
2 years ago
_hidden.php
2 years ago
_label.php
1 year ago
_row.php
2 years ago
attachment.php
1 year ago
checkbox.php
1 year ago
cleditor.php
2 years ago
codemirror.php
2 years ago
color.php
2 years ago
currency.php
1 year ago
date.php
2 years ago
datetime.php
2 years ago
email.php
1 year ago
link.php
1 year ago
number.php
1 year ago
oembed.php
1 year ago
password.php
1 year ago
phone.php
1 year ago
radio.php
1 year ago
select.php
1 year ago
slider.php
1 year ago
slug.php
2 years ago
text.php
1 year ago
textarea.php
1 year ago
time.php
2 years ago
tinymce.php
1 year ago
website.php
2 years 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 ( (bool) pods_v( '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 |