| @@ 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 ); | |
| @@ 317-322 (lines=6) @@ | ||
| 314 | $field_type = 'plupload'; | |
| 315 | elseif ( 'plupload' == pods_var( self::$type . '_uploader', $options ) ) | |
| 316 | $field_type = 'plupload'; | |
| 317 |         elseif ( 'attachment' == pods_var( self::$type . '_uploader', $options ) ) { | |
| 318 | if ( !pods_version_check( 'wp', '3.5' ) || !is_admin() ) // @todo test frontend media modal | |
| 319 | $field_type = 'attachment'; | |
| 320 | else | |
| 321 | $field_type = 'media'; | |
| 322 | } | |
| 323 |         else { | |
| 324 | // Support custom File Uploader integration | |
| 325 | do_action( 'pods_form_ui_field_' . self::$type . '_uploader_' . pods_var( self::$type . '_uploader', $options ), $name, $value, $options, $pod, $id ); | |