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