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