'; foreach( $details['options'] as $option ){ $found = false; $values = explode( ', ', $value ); if( strpos( $option, '%' ) === false ){ $label = $option; $value_attr = $option; if ( in_array( $option, $values ) ) $found = true; } else{ $option_parts = explode( '%', $option ); if( !empty( $option_parts ) ){ if( empty( $option_parts[0] ) && count( $option_parts ) == 3 ){ $label = $option_parts[1]; $value_attr = $option_parts[2]; if ( in_array( $option_parts[2], $values ) ) $found = true; } } } $element .= '
'; } $element .= ''; } ?>