Frontpage Sections', 'optimizer'); ?>

  1. as back button when you are inside a Section.', 'optimizer'); ?>

  2. A : Slider', 'optimizer'); ?>

    B : Frontpage Content.', 'optimizer'); ?>

    C : Footer Widgets.', 'optimizer'); ?>

  3. Settings', 'optimizer'); ?>

get('Version');?>

get_contents($_FILES["file"]["tmp_name"])); $string = str_replace("\n","",$filecontent); $options = json_decode($string, true); //print_r($options); update_option('optimizer', $options); $redirect = admin_url('/customize.php'); wp_redirect( $redirect); } } /*EXPORT FUNCTION*/ add_action('wp_ajax_nopriv_optimizer_get_options', 'optimizer_get_options'); add_action('wp_ajax_optimizer_get_options', 'optimizer_get_options'); function optimizer_get_options() { header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Description: File Transfer'); header("Pragma: public"); header("Expires: 0"); header("Content-Type: text/plain"); header('Content-Disposition: attachment; filename="theme-options-'.date("dMy").'.json"'); echo json_encode(get_option('optimizer')); die(); } /** * Build the HTTP request URL for Google Fonts. * * @since 1.0.0. * * @return string The URL for including Google Fonts. */ function optimizer_google_fonts() { global $optimizer; if(!empty($optimizer['content_font_id']['font-family'])) { $content_font_id = $optimizer['content_font_id']['font-family']; }else{ $content_font_id = '';} if(!empty($optimizer['logo_font_id']['font-family'])) { $logo_font_id = $optimizer['logo_font_id']['font-family']; }else{ $logo_font_id = '';} if(!empty($optimizer['ptitle_font_id']['font-family'])) { $ptitle_font_id = $optimizer['ptitle_font_id']['font-family']; }else{ $ptitle_font_id = '';} // Font options $fonts = array( $content_font_id, $logo_font_id, $ptitle_font_id, ); $font_uri = customizer_library_get_google_font_uri( $fonts ); // Load Google Fonts wp_enqueue_style( 'optimizer_google_fonts', $font_uri, array(), null, 'screen' ); } add_action( 'wp_enqueue_scripts', 'optimizer_google_fonts' ); //add_action( 'admin_enqueue_scripts', 'optimizer_google_fonts' );