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') {
?>
' . 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;
}
}
function bigmart_premium_demo_config($demos) {
$premium_demos = array(
'digital-store' => array(
'name' => 'Fast Track',
'image' => 'https://wpcirqle.com/import/bigmart/screen/digital-store-screenshot.jpg',
'preview_url' => 'https://demo.mysticalthemes.com/bigmart/digital-store/',
'buy_url' => 'https://wpcirqle.com/theme/bigmart/',
'type' => 'pro',
'tags' => array(
'pro' => 'Premium'
)
),
'shoe' => array(
'name' => 'Fast Track',
'image' => 'https://wpcirqle.com/import/bigmart/screen/shoes-screenshot.jpg',
'preview_url' => 'https://demo.mysticalthemes.com/bigmart/shoe/',
'buy_url' => 'https://wpcirqle.com/theme/bigmart/',
'type' => 'pro',
'tags' => array(
'pro' => 'Premium'
)
),
'jewelry' => array(
'name' => 'Jewelry',
'image' => 'https://wpcirqle.com/import/bigmart/screen/jewels-screenshot.jpg',
'preview_url' => 'https://demo.mysticalthemes.com/bigmart/jewelry/',
'buy_url' => 'https://wpcirqle.com/theme/bigmart/',
'type' => 'pro',
'tags' => array(
'pro' => 'Premium'
)
),
'wine-shop' => array(
'name' => 'Wine Shop',
'image' => 'https://wpcirqle.com/import/bigmart/screen/wine-screenshot.jpg',
'preview_url' => 'https://demo.mysticalthemes.com/bigmart/wine-shop/',
'buy_url' => 'https://wpcirqle.com/theme/bigmart/',
'type' => 'pro',
'tags' => array(
'pro' => 'Premium'
)
),
'book' => array(
'name' => 'Book Store',
'image' => 'https://wpcirqle.com/import/bigmart/screen/book-screenshot.jpg',
'preview_url' => 'https://demo.mysticalthemes.com/bigmart/book/',
'buy_url' => 'https://wpcirqle.com/theme/bigmart/',
'type' => 'pro',
'tags' => array(
'pro' => 'Premium'
)
),
'cosmetics-plus' => array(
'name' => 'Cosmetics Plus',
'image' => 'https://wpcirqle.com/import/bigmart/screen/cosmetics-plus-screenshot.jpg',
'preview_url' => 'https://demo.mysticalthemes.com/bigmart/cosmetics-plus/',
'buy_url' => 'https://wpcirqle.com/theme/bigmart/',
'type' => 'pro',
'tags' => array(
'pro' => 'Premium'
)
)
);
$demos = array_merge($demos, $premium_demos);
return $demos;
}
add_filter('sdi_import_files', 'bigmart_premium_demo_config', 20);