|
@@ 828-838 (lines=11) @@
|
| 825 |
|
if ( 'single' === $format_type ) { |
| 826 |
|
$format_single = pods_v( $args->type . '_format_single', $options, 'dropdown', true ); |
| 827 |
|
|
| 828 |
|
if ( 'dropdown' === $format_single ) { |
| 829 |
|
$options['view_name'] = 'select'; |
| 830 |
|
} elseif ( 'radio' === $format_single ) { |
| 831 |
|
$options['view_name'] = 'radio'; |
| 832 |
|
} elseif ( 'autocomplete' === $format_single ) { |
| 833 |
|
$options['view_name'] = 'select2'; |
| 834 |
|
} elseif ( 'list' === $format_single ) { |
| 835 |
|
$options['view_name'] = 'list'; |
| 836 |
|
} else { |
| 837 |
|
$options['view_name'] = $format_single; |
| 838 |
|
} |
| 839 |
|
} elseif ( 'multi' === $format_type ) { |
| 840 |
|
$format_multi = pods_v( $args->type . '_format_multi', $options, 'checkbox', true ); |
| 841 |
|
|
|
@@ 846-856 (lines=11) @@
|
| 843 |
|
$args->value = explode( ',', $args->value ); |
| 844 |
|
} |
| 845 |
|
|
| 846 |
|
if ( 'checkbox' === $format_multi ) { |
| 847 |
|
$options['view_name'] = 'checkbox'; |
| 848 |
|
} elseif ( 'multiselect' === $format_multi ) { |
| 849 |
|
$options['view_name'] = 'select'; |
| 850 |
|
} elseif ( 'autocomplete' === $format_multi ) { |
| 851 |
|
$options['view_name'] = 'select2'; |
| 852 |
|
} elseif ( 'list' === $format_multi ) { |
| 853 |
|
$options['view_name'] = 'list'; |
| 854 |
|
} else { |
| 855 |
|
$options['view_name'] = $format_multi; |
| 856 |
|
} |
| 857 |
|
|
| 858 |
|
$limit = 0; |
| 859 |
|
|