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