@@ 238-248 (lines=11) @@ | ||
235 | * |
|
236 | * @since 2.0 |
|
237 | */ |
|
238 | protected static function field_db( $name, $value = null, $options = null ) { |
|
239 | $form_field_type = self::$field_type; |
|
240 | ||
241 | ob_start(); |
|
242 | ||
243 | pods_view( PODS_DIR . 'ui/fields/_db.php', compact( array_keys( get_defined_vars() ) ) ); |
|
244 | ||
245 | $output = ob_get_clean(); |
|
246 | ||
247 | return apply_filters( 'pods_form_ui_field_db', $output, $name, $value, $options ); |
|
248 | } |
|
249 | ||
250 | /** |
|
251 | * Output a hidden field |
|
@@ 253-263 (lines=11) @@ | ||
250 | /** |
|
251 | * Output a hidden field |
|
252 | */ |
|
253 | protected static function field_hidden( $name, $value = null, $options = null ) { |
|
254 | $form_field_type = self::$field_type; |
|
255 | ||
256 | ob_start(); |
|
257 | ||
258 | pods_view( PODS_DIR . 'ui/fields/_hidden.php', compact( array_keys( get_defined_vars() ) ) ); |
|
259 | ||
260 | $output = ob_get_clean(); |
|
261 | ||
262 | return apply_filters( 'pods_form_ui_field_hidden', $output, $name, $value, $options ); |
|
263 | } |
|
264 | ||
265 | /** |
|
266 | * Returns a submit button, with provided text and appropriate class, copied from WP Core for use on the frontend |