| @@ 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 ); |
|
| @@ 350-355 (lines=6) @@ | ||
| 347 | $field_type = 'plupload'; |
|
| 348 | elseif ( 'plupload' == pods_var( self::$type . '_uploader', $options ) ) |
|
| 349 | $field_type = 'plupload'; |
|
| 350 | elseif ( 'attachment' == pods_var( self::$type . '_uploader', $options ) ) { |
|
| 351 | if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal |
|
| 352 | $field_type = 'attachment'; |
|
| 353 | else |
|
| 354 | $field_type = 'media'; |
|
| 355 | } |
|
| 356 | else { |
|
| 357 | // Support custom File Uploader integration |
|
| 358 | do_action( 'pods_form_ui_field_file_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id ); |
|