wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-metabox-core.php
/**
	 * Export color and gradient swatches
	 * @since 4.5
	 */
Export color and gradient swatches
@since 4.5
Export color and gradient swatches @since 4 . 5
function themify_export_colors() {
		if ( ( !empty( $_GET['themify_export_colors'] ) || !empty( $_GET['themify_export_gradients'] ) ) && is_user_logged_in() && check_admin_referer( 'themify_export_colors_nonce' ) ) {
			if ( ini_get( 'zlib.output_compression' ) ) {
				ini_set( 'zlib.output_compression', 'Off' );
			}
			$type = !empty( $_GET['themify_export_colors'] )?'colors':'gradients';
			ob_start();
			header( 'Content-Type: application/force-download' );
			header( 'Pragma: public' );
			header( 'Expires: 0' );
			header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );
			header( 'Cache-Control: private', false );
			header( 'Content-Disposition: attachment; filename="themify_' . $type . '_export_' . date( 'Y_m_d' ) . '.txt"' );
			header( 'Content-Transfer-Encoding: binary' );
			ob_clean();
			flush();
			echo get_option( 'themify_saved_' . $type, serialize( array() ) );
			exit();
		}
	}
function themify_export_colors ( ) { if ( ( ! empty ( $ _GET [ 'themify_export_colors' ] ) || ! empty ( $ _GET [ 'themify_export_gradients' ] ) ) && is_user_logged_in ( ) && check_admin_referer ( 'themify_export_colors_nonce' ) ) { if ( ini_get ( 'zlib.output_compression' ) ) { ini_set ( 'zlib.output_compression' , 'Off' ) ; } $ type = ! empty ( $ _GET [ 'themify_export_colors' ] ) ? 'colors' : 'gradients' ; ob_start ( ) ; header ( 'Content-Type: application/force-download' ) ; header ( 'Pragma: public' ) ; header ( 'Expires: 0' ) ; header ( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' ) ; header ( 'Cache-Control: private' , false ) ; header ( 'Content-Disposition: attachment; filename="themify_' . $ type . '_export_' . date ( 'Y_m_d' ) . '.txt"' ) ; header ( 'Content-Transfer-Encoding: binary' ) ; ob_clean ( ) ; flush ( ) ; echo get_option ( 'themify_saved_' . $ type , serialize ( array ( ) ) ) ; exit ( ) ; } }
Export color and gradient swatches
 @since 4.5
Export color and gradient swatches @since 4 . 5