if($type=="date")
$output .= '<div class="datepicker-container"><span class="ui-icon template-arrow-dropdown"></span>';
$output .= '<input id="' . esc_attr($id) . '" class="cost-slider-input big type-' . esc_attr($type) . '" name="' . esc_attr($name) . '" type="' . esc_attr($type) . '"' . ($type=="checkbox" && (int)$checked ? ' checked="checked"' : '') . ' value="' . ($type=="checkbox" && !(int)$checked ? 0 : esc_attr($default_value)) . '" data-value="' . esc_attr($default_value) . '" placeholder="' . esc_attr($placeholder) . '">
' . ($type=="checkbox" ? '<label class="checkbox-label template-bullet" for="' . esc_attr($id) . '"><span class="checkbox-box"></span>' . $label . '</label>' : '');
if($type=="date")
$output .= '</div>';
$output .= '</div>';
return $output;