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') { ?>
$menu, 'fallback_cb' => false, 'container' => false, 'menu_class' => 'ms-product-menu', 'theme_location' => '', )); ?>
' . esc_html__('Menu', 'bigmart') . ''; wp_nav_menu(array( 'menu' => $menu, 'menu_class' => 'ms-top-header-menu', 'fallback_cb' => false, 'depth' => -1, 'container' => false, 'theme_location' => '' )); } } } /** Social Icons */ if (!function_exists('bigmart_socialicons')) { function bigmart_socialicons() { $social_icons = get_theme_mod('bigmart_social_icons', '[{"icon":"icofont-facebook","link":"#","enable":"on"},{"icon":"icofont-twitter","link":"#","enable":"on"},{"icon":"icofont-instagram","link":"#","enable":"on"},{"icon":"icofont-youtube","link":"#","enable":"on"}]'); if ($social_icons == '') { return; } $social_icon_lists = json_decode($social_icons, true); if (!empty($social_icon_lists)) { ?> 1) $opacity = 1.0; $output = 'rgba(' . implode(",", $rgb) . ',' . $opacity . ')'; } else { $output = 'rgb(' . implode(",", $rgb) . ')'; } //Return rgb(a) color string return $output; } }