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