|
@@ 288-298 (lines=11) @@
|
| 285 |
|
* |
| 286 |
|
* @since 2.0 |
| 287 |
|
*/ |
| 288 |
|
protected static function field_db( $name, $value = null, $options = null ) { |
| 289 |
|
$form_field_type = self::$field_type; |
| 290 |
|
|
| 291 |
|
ob_start(); |
| 292 |
|
|
| 293 |
|
pods_view( PODS_DIR . 'ui/fields/_db.php', compact( array_keys( get_defined_vars() ) ) ); |
| 294 |
|
|
| 295 |
|
$output = ob_get_clean(); |
| 296 |
|
|
| 297 |
|
return apply_filters( 'pods_form_ui_field_db', $output, $name, $value, $options ); |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
/** |
| 301 |
|
* Output a hidden field |
|
@@ 303-313 (lines=11) @@
|
| 300 |
|
/** |
| 301 |
|
* Output a hidden field |
| 302 |
|
*/ |
| 303 |
|
protected static function field_hidden( $name, $value = null, $options = null ) { |
| 304 |
|
$form_field_type = self::$field_type; |
| 305 |
|
|
| 306 |
|
ob_start(); |
| 307 |
|
|
| 308 |
|
pods_view( PODS_DIR . 'ui/fields/_hidden.php', compact( array_keys( get_defined_vars() ) ) ); |
| 309 |
|
|
| 310 |
|
$output = ob_get_clean(); |
| 311 |
|
|
| 312 |
|
return apply_filters( 'pods_form_ui_field_hidden', $output, $name, $value, $options ); |
| 313 |
|
} |
| 314 |
|
|
| 315 |
|
/** |
| 316 |
|
* Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend |