|
@@ 311-321 (lines=11) @@
|
| 308 |
|
* |
| 309 |
|
* @since 2.0 |
| 310 |
|
*/ |
| 311 |
|
protected static function field_db( $name, $value = null, $options = null ) { |
| 312 |
|
$form_field_type = self::$field_type; |
| 313 |
|
|
| 314 |
|
ob_start(); |
| 315 |
|
|
| 316 |
|
pods_view( PODS_DIR . 'ui/fields/_db.php', compact( array_keys( get_defined_vars() ) ) ); |
| 317 |
|
|
| 318 |
|
$output = ob_get_clean(); |
| 319 |
|
|
| 320 |
|
return apply_filters( 'pods_form_ui_field_db', $output, $name, $value, $options ); |
| 321 |
|
} |
| 322 |
|
|
| 323 |
|
/** |
| 324 |
|
* Output a hidden field |
|
@@ 326-336 (lines=11) @@
|
| 323 |
|
/** |
| 324 |
|
* Output a hidden field |
| 325 |
|
*/ |
| 326 |
|
protected static function field_hidden( $name, $value = null, $options = null ) { |
| 327 |
|
$form_field_type = self::$field_type; |
| 328 |
|
|
| 329 |
|
ob_start(); |
| 330 |
|
|
| 331 |
|
pods_view( PODS_DIR . 'ui/fields/_hidden.php', compact( array_keys( get_defined_vars() ) ) ); |
| 332 |
|
|
| 333 |
|
$output = ob_get_clean(); |
| 334 |
|
|
| 335 |
|
return apply_filters( 'pods_form_ui_field_hidden', $output, $name, $value, $options ); |
| 336 |
|
} |
| 337 |
|
|
| 338 |
|
/** |
| 339 |
|
* Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend |