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