array( 'selector' => 'body', 'font_family' => 'Roboto', 'font_style' => 400, 'text_transform' => 'none', 'text_decoration' => 'none', 'font_size' => 18, 'letter_spacing' => 0, 'line_height' => 1.6, 'color' => '#333333' ), 'menu' => array( 'selector' => '.ms-site-header ul.ms-main-menu > li > a, .ms-site-header .ms-main-navigation', 'font_family' => 'Roboto', 'font_style' => 700, 'text_transform' => 'uppercase', 'text_decoration' => 'none', 'font_size' => 14, 'letter_spacing' => 0, 'line_height' => 2 ), 'h' => array( 'selector' => 'h1, h2, h3, h4, h5, h6', 'font_family' => 'Roboto', 'line_height' => 1.3, 'font_style' => 700, 'text_decoration' => 'none', 'text_transform' => 'none', 'letter_spacing' => 0, 'color' => '#000000' ) ); return apply_filters('bigmart_fonts', $fonts); } } if (!function_exists('bigmart_css_strip_whitespace')) { function bigmart_css_strip_whitespace($css) { $replace = array( "#/\*.*?\*/#s" => "", // Strip C style comments. "#\s\s+#" => " ", // Strip excess whitespace. ); $search = array_keys($replace); $css = preg_replace($search, $replace, $css); $replace = array( ": " => ":", "; " => ";", " {" => "{", " }" => "}", ", " => ",", "{ " => "{", ";}" => "}", // Strip optional semicolons. ",\n" => ",", // Don't wrap multiple selectors. "\n}" => "}", // Don't wrap closing braces. "} " => "}", // Put each rule on it's own line. ); $search = array_keys($replace); $css = str_replace($search, $replace, $css); return trim($css); } } /** Product Category Toggle */ if (!function_exists('bigmart_toggle_menu_cb')) { function bigmart_toggle_menu_cb() { $menu_label = get_theme_mod('bigmart_toggle_menu_label', esc_html__('Categories', 'bigmart')); $menu = get_theme_mod('bigmart_toggle_menu', 'none'); $show_on = get_theme_mod('bigmart_show_menu_on', 'click'); $event_class = ( $show_on == 'click' ) ? 'ms-click-open' : 'ms-hover-open'; if ($menu_label && $menu && $menu != 'none') { ?>