| @@ 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 ); |
|
| @@ 370-375 (lines=6) @@ | ||
| 367 | $field_type = 'plupload'; |
|
| 368 | elseif ( 'plupload' == pods_var( self::$type . '_uploader', $options ) ) |
|
| 369 | $field_type = 'plupload'; |
|
| 370 | elseif ( 'attachment' == pods_var( self::$type . '_uploader', $options ) ) { |
|
| 371 | if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal |
|
| 372 | $field_type = 'attachment'; |
|
| 373 | else |
|
| 374 | $field_type = 'media'; |
|
| 375 | } |
|
| 376 | else { |
|
| 377 | // Support custom File Uploader integration |
|
| 378 | do_action( 'pods_form_ui_field_' . self::$type . '_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id ); |
|