|
@@ 798-808 (lines=11) @@
|
| 795 |
|
if ( 'single' === $format_type ) { |
| 796 |
|
$format_single = pods_v( $args->type . '_format_single', $options, 'dropdown', true ); |
| 797 |
|
|
| 798 |
|
if ( 'dropdown' === $format_single ) { |
| 799 |
|
$options['view_name'] = 'select'; |
| 800 |
|
} elseif ( 'radio' === $format_single ) { |
| 801 |
|
$options['view_name'] = 'radio'; |
| 802 |
|
} elseif ( 'autocomplete' === $format_single ) { |
| 803 |
|
$options['view_name'] = 'select2'; |
| 804 |
|
} elseif ( 'list' === $format_single ) { |
| 805 |
|
$options['view_name'] = 'list'; |
| 806 |
|
} else { |
| 807 |
|
$options['view_name'] = $format_single; |
| 808 |
|
} |
| 809 |
|
} elseif ( 'multi' === $format_type ) { |
| 810 |
|
$format_multi = pods_v( $args->type . '_format_multi', $options, 'checkbox', true ); |
| 811 |
|
|
|
@@ 816-826 (lines=11) @@
|
| 813 |
|
$args->value = explode( ',', $args->value ); |
| 814 |
|
} |
| 815 |
|
|
| 816 |
|
if ( 'checkbox' === $format_multi ) { |
| 817 |
|
$options['view_name'] = 'checkbox'; |
| 818 |
|
} elseif ( 'multiselect' === $format_multi ) { |
| 819 |
|
$options['view_name'] = 'select'; |
| 820 |
|
} elseif ( 'autocomplete' === $format_multi ) { |
| 821 |
|
$options['view_name'] = 'select2'; |
| 822 |
|
} elseif ( 'list' === $format_multi ) { |
| 823 |
|
$options['view_name'] = 'list'; |
| 824 |
|
} else { |
| 825 |
|
$options['view_name'] = $format_multi; |
| 826 |
|
} |
| 827 |
|
} else { |
| 828 |
|
$options['view_name'] = $format_type; |
| 829 |
|
} |