| @@ 114-123 (lines=10) @@ | ||
| 111 | ) |
|
| 112 | ); |
|
| 113 | ||
| 114 | if ( !pods_version_check( 'wp', '3.5' ) ) { |
|
| 115 | unset( $options[ self::$type . '_modal_title' ] ); |
|
| 116 | unset( $options[ self::$type . '_modal_add_button' ] ); |
|
| 117 | ||
| 118 | $options[ self::$type . '_attachment_tab' ][ 'default' ] = 'type'; |
|
| 119 | $options[ self::$type . '_attachment_tab' ][ 'data' ] = array( |
|
| 120 | 'type' => __( 'Upload File', 'pods' ), |
|
| 121 | 'library' => __( 'Media Library', 'pods' ) |
|
| 122 | ); |
|
| 123 | } |
|
| 124 | ||
| 125 | return $options; |
|
| 126 | } |
|
| @@ 202-212 (lines=11) @@ | ||
| 199 | ) |
|
| 200 | ); |
|
| 201 | ||
| 202 | if ( !pods_version_check( 'wp', '3.5' ) ) { |
|
| 203 | unset( $options[ self::$type . '_linked' ] ); |
|
| 204 | unset( $options[ self::$type . '_modal_title' ] ); |
|
| 205 | unset( $options[ self::$type . '_modal_add_button' ] ); |
|
| 206 | ||
| 207 | $options[ self::$type . '_attachment_tab' ][ 'default' ] = 'type'; |
|
| 208 | $options[ self::$type . '_attachment_tab' ][ 'data' ] = array( |
|
| 209 | 'type' => __( 'Upload File', 'pods' ), |
|
| 210 | 'library' => __( 'Media Library', 'pods' ) |
|
| 211 | ); |
|
| 212 | } |
|
| 213 | ||
| 214 | return $options; |
|
| 215 | } |
|