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