@@ 561-571 (lines=11) @@ | ||
558 | * |
|
559 | * @since 2.3 |
|
560 | */ |
|
561 | public function data_image_sizes ( $name = null, $value = null, $options = null, $pod = null, $id = null ) { |
|
562 | $data = array(); |
|
563 | ||
564 | $image_sizes = get_intermediate_image_sizes(); |
|
565 | ||
566 | foreach ( $image_sizes as $image_size ) { |
|
567 | $data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) ); |
|
568 | } |
|
569 | ||
570 | return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id ); |
|
571 | } |
|
572 | ||
573 | /** |
|
574 | * Create a WP Gallery from the passed values (need to be attachments) |
@@ 2177-2187 (lines=11) @@ | ||
2174 | * |
|
2175 | * @since 2.3 |
|
2176 | */ |
|
2177 | public function data_image_sizes ( $name = null, $value = null, $options = null, $pod = null, $id = null ) { |
|
2178 | $data = array(); |
|
2179 | ||
2180 | $image_sizes = get_intermediate_image_sizes(); |
|
2181 | ||
2182 | foreach ( $image_sizes as $image_size ) { |
|
2183 | $data[ $image_size ] = ucwords( str_replace( '-', ' ', $image_size ) ); |
|
2184 | } |
|
2185 | ||
2186 | return apply_filters( 'pods_form_ui_field_pick_' . __FUNCTION__, $data, $name, $value, $options, $pod, $id ); |
|
2187 | } |
|
2188 | ||
2189 | /** |
|
2190 | * Data callback for Countries |