| @@ 195-200 (lines=6) @@ | ||
| 192 | ||
| 193 | if ( 'plupload' == pods_v( self::$type . '_uploader', $options ) ) |
|
| 194 | $field_type = 'plupload'; |
|
| 195 | elseif ( 'attachment' == pods_v( self::$type . '_uploader', $options ) ) { |
|
| 196 | if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal |
|
| 197 | $field_type = 'attachment'; |
|
| 198 | else |
|
| 199 | $field_type = 'media'; |
|
| 200 | } |
|
| 201 | else { |
|
| 202 | // Support custom File Uploader integration |
|
| 203 | do_action( 'pods_form_ui_field_avatar_uploader_' . pods_v( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id ); |
|
| @@ 358-363 (lines=6) @@ | ||
| 355 | $field_type = 'plupload'; |
|
| 356 | elseif ( 'plupload' == pods_var( self::$type . '_uploader', $options ) ) |
|
| 357 | $field_type = 'plupload'; |
|
| 358 | elseif ( 'attachment' == pods_var( self::$type . '_uploader', $options ) ) { |
|
| 359 | if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal |
|
| 360 | $field_type = 'attachment'; |
|
| 361 | else |
|
| 362 | $field_type = 'media'; |
|
| 363 | } |
|
| 364 | else { |
|
| 365 | // Support custom File Uploader integration |
|
| 366 | do_action( 'pods_form_ui_field_file_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id ); |
|