<# if( typeof group !== 'undefined') { #> <# if( typeof group.id !== 'undefined' ) { #> <# } #>
<# if ( group.type !== "hidden" ) { #>
<# if ( group.type === 'dropdown' ) { #>
<# (function( $ ) { "use strict"; function convertToWpmuiSelect() { $('.hustle-select').wpmuiSelect({ allowClear: false, minimumResultsForSearch: Infinity, containerCssClass: "hustle-select2", dropdownCssClass: "hustle-select-dropdown", width: "100%" }); $( ".hustle-option--select" ).wpmuiSelect({ allowClear: false, minimumResultsForSearch: Infinity, containerCssClass: "hustle-option--select2", dropdownCssClass: "hustle-option--select2-dropdown" }); } if ( $.isReady ) { //for embedded $(document).on('hustle:module:displayed', convertToWpmuiSelect ); } else { $(document).ready(function() { convertToWpmuiSelect(); }); } }(jQuery)); #> <# } #> <# if( group.type === 'checkboxes' ) { #>
<# _.each( interests, function( interest, key ) { #>
<# }); #>
<# } #> <# if( group.type === 'radio' ) { #>
<# _.each( interests, function( interest, key ) { #>
<# }); #>
<# } #>
<# } else { _.each( interests, function( interest, key ) { if( (typeof selected !== 'undefined') && ( selected.indexOf(interest.value) !== -1 ) ) { #> <# } }); } #>
<# } #>