/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously for catchbase.
 * And flushes out all transient data on preview
 *
 * @since Catch Base 1.0
 */
function catchbase_customize_preview()
{
    wp_enqueue_script('catchbase_customizer', get_template_directory_uri() . '/js/catchbase-customizer.min.js', array('customize-preview'), '20120827', true);
    //Flush transients
    catchbase_flush_transients();
}
/**
 * Reset all settings to default
 * @param  $input entered value
 * @return sanitized output
 *
 * @since Catch Base 1.0
 */
function catchbase_reset_all_settings($input)
{
    if ($input == 1) {
        // Set default values
        set_theme_mod('catchbase_theme_options', catchbase_get_default_theme_options());
        // Flush out all transients	on reset
        catchbase_flush_transients();
    } else {
        return '';
    }
}