|
@@ 331-341 (lines=11) @@
|
| 328 |
|
* |
| 329 |
|
* @since 2.0 |
| 330 |
|
*/ |
| 331 |
|
protected static function field_db( $name, $value = null, $options = null ) { |
| 332 |
|
$form_field_type = self::$field_type; |
| 333 |
|
|
| 334 |
|
ob_start(); |
| 335 |
|
|
| 336 |
|
pods_view( PODS_DIR . 'ui/fields/_db.php', compact( array_keys( get_defined_vars() ) ) ); |
| 337 |
|
|
| 338 |
|
$output = ob_get_clean(); |
| 339 |
|
|
| 340 |
|
return apply_filters( 'pods_form_ui_field_db', $output, $name, $value, $options ); |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
/** |
| 344 |
|
* Output a hidden field |
|
@@ 346-356 (lines=11) @@
|
| 343 |
|
/** |
| 344 |
|
* Output a hidden field |
| 345 |
|
*/ |
| 346 |
|
protected static function field_hidden( $name, $value = null, $options = null ) { |
| 347 |
|
$form_field_type = self::$field_type; |
| 348 |
|
|
| 349 |
|
ob_start(); |
| 350 |
|
|
| 351 |
|
pods_view( PODS_DIR . 'ui/fields/_hidden.php', compact( array_keys( get_defined_vars() ) ) ); |
| 352 |
|
|
| 353 |
|
$output = ob_get_clean(); |
| 354 |
|
|
| 355 |
|
return apply_filters( 'pods_form_ui_field_hidden', $output, $name, $value, $options ); |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
/** |
| 359 |
|
* Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend |