function greek_scripts_styles() { global $wp_styles, $wp_scripts, $greek_options; /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments(when in use). */ if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } if (!is_admin()) { // Add Bootstrap JavaScript wp_enqueue_script('bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js', array('jquery'), '3.2.0', true); // Add jQuery Cookie wp_enqueue_script('jquery-cookie', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js', array('jquery'), '1.4.1', true); // Add Fancybox wp_enqueue_script('greek-fancybox', 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.pack.js', array('jquery'), '2.1.5', true); wp_enqueue_style('greek-fancybox-css', 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.css', array(), '2.1.5'); wp_enqueue_script('greek-fancybox-buttons', 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/helpers/jquery.fancybox-buttons.js', array('jquery'), '1.0.5', true); wp_enqueue_style('greek-fancybox-buttons', 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/helpers/jquery.fancybox-buttons.css', array(), '1.0.5'); //Superfish wp_enqueue_script('greek-superfish-js', 'https://cdnjs.cloudflare.com/ajax/libs/superfish/1.7.7/js/superfish.min.js', array('jquery'), '1.3.15', true); //Add Shuffle js wp_enqueue_script('greek-modernizr-js', 'https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js', array('jquery'), '2.6.2', true); wp_enqueue_script('greek-shuffle-js', 'https://cdnjs.cloudflare.com/ajax/libs/Shuffle/3.1.1/jquery.shuffle.min.js', array('jquery'), '3.1.1', true); // Add owl.carousel files wp_enqueue_script('owl.carousel', get_template_directory_uri() . '/js/owl.carousel.js', array('jquery')); wp_enqueue_style('owl.carousel', get_template_directory_uri() . '/css/owl.carousel.css'); wp_enqueue_style('owl.theme', get_template_directory_uri() . '/css/owl.theme.css'); // Add theme.js file wp_enqueue_script('greek-theme-js', get_template_directory_uri() . '/js/theme.js', array('jquery'), '20140826', true); } $font_url = greek_get_font_url(); if (!empty($font_url)) { wp_enqueue_style('greek-fonts', esc_url_raw($font_url), array(), null); } if (!is_admin()) { // Loads our main stylesheet. wp_enqueue_style('greek-style', get_stylesheet_uri()); // Load fontawesome css wp_enqueue_style('fontawesome-css', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), '4.5.0'); // Load bootstrap css wp_enqueue_style('bootstrap-css', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css', array(), '3.2.0'); } // Compile Less to CSS $previewpreset = isset($_REQUEST['preset']) ? $_REQUEST['preset'] : null; //get preset from url(only for demo/preview) if ($previewpreset) { $_SESSION["preset"] = $previewpreset; } if (!isset($_SESSION["preset"])) { $_SESSION["preset"] = 1; } if ($_SESSION["preset"] != 1) { $presetopt = $_SESSION["preset"]; } else { /* if no preset varialbe found in url, use from theme options */ $presetopt = $greek_options['preset_option']; } if (!isset($presetopt)) { $presetopt = 1; } /* in case first time install theme, no options found */ if ($greek_options['enable_less']) { $themevariables = array('heading_font' => $greek_options['headingfont']['font-family'], 'body_font' => $greek_options['bodyfont']['font-family'], 'heading_color' => $greek_options['headingfont']['color'], 'text_color' => $greek_options['bodyfont']['color'], 'primary_color' => $greek_options['primary_color'], 'rate_color' => $greek_options['rate_color']); switch ($presetopt) { case 2: $themevariables['primary_color'] = $greek_options['primary2_color']; $themevariables['rate_color'] = $greek_options['rate2_color']; break; case 3: $themevariables['primary_color'] = $greek_options['primary3_color']; $themevariables['rate_color'] = $greek_options['rate3_color']; break; case 4: $themevariables['primary_color'] = $greek_options['primary4_color']; $themevariables['rate_color'] = $greek_options['rate4_color']; break; } if (function_exists('compileLessFile')) { compileLessFile('theme.less', 'theme' . $presetopt . '.css', $themevariables); compileLessFile('compare.less', 'compare' . $presetopt . '.css', $themevariables); compileLessFile('ie.less', 'ie' . $presetopt . '.css', $themevariables); } } if (!is_admin()) { // Load main theme css style wp_enqueue_style('greek-css', get_template_directory_uri() . '/css/theme' . $presetopt . '.css', array(), '1.0.0'); //Compare CSS wp_enqueue_style('greek-css', get_template_directory_uri() . '/css/compare' . $presetopt . '.css', array(), '1.0.0'); // Loads the Internet Explorer specific stylesheet. wp_enqueue_style('greek-ie', get_template_directory_uri() . '/css/ie' . $presetopt . '.css', array('greek-style'), '20152907'); $wp_styles->add_data('greek-ie', 'conditional', 'lte IE 9'); } if ($greek_options['enable_sswitcher']) { // Add styleswitcher.js file wp_enqueue_script('greek-styleswitcher-js', get_template_directory_uri() . '/js/styleswitcher.js', array(), '20140826', true); // Load styleswitcher css style wp_enqueue_style('greek-styleswitcher-css', get_template_directory_uri() . '/css/styleswitcher.css', array(), '1.0.0'); } if (is_rtl()) { wp_enqueue_style('greek-rtl', get_template_directory_uri() . '/rtl.css', array(), '1.0.0'); } }
/** * Enqueue scripts and styles for front-end. * * @since Road Themes 1.0 */ function road_scripts_styles() { global $wp_styles, $wp_scripts, $road_opt; /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } // Add Bootstrap JavaScript wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.2.0', true); // Add Slick files wp_enqueue_script('slick-js', get_template_directory_uri() . '/js/slick/slick.min.js', array('jquery'), '1.3.15', true); wp_enqueue_style('slick-style', get_template_directory_uri() . '/js/slick/slick.css', array(), '1.3.15'); // Add Chosen js files wp_enqueue_script('chosen-js', get_template_directory_uri() . '/js/chosen/chosen.jquery.min.js', array('jquery'), '1.3.0', true); wp_enqueue_script('chosenproto-js', get_template_directory_uri() . '/js/chosen/chosen.proto.min.js', array('jquery'), '1.3.0', true); wp_enqueue_style('chosen-style', get_template_directory_uri() . '/js/chosen/chosen.min.css', array(), '1.3.0'); // Add parallax script files // Add Fancybox wp_enqueue_script('fancybox', get_template_directory_uri() . '/js/fancybox/jquery.fancybox.pack.js', array('jquery'), '2.1.5', true); wp_enqueue_script('fancybox-buttons', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-buttons.js', array('jquery'), '1.0.5', true); wp_enqueue_script('fancybox-media', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-media.js', array('jquery'), '1.0.6', true); wp_enqueue_script('fancybox-thumbs', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-thumbs.js', array('jquery'), '1.0.7', true); wp_enqueue_style('fancybox-css', get_template_directory_uri() . '/js/fancybox/jquery.fancybox.css', array(), '2.1.5'); wp_enqueue_style('fancybox-buttons', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-buttons.css', array(), '1.0.5'); wp_enqueue_style('fancybox-thumbs', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-thumbs.css', array(), '1.0.7'); //Superfish wp_enqueue_script('superfish-js', get_template_directory_uri() . '/js/superfish/superfish.min.js', array('jquery'), '1.3.15', true); //Add Twitter js wp_enqueue_script('twitter-js', 'http://platform.twitter.com/widgets.js', array('jquery'), '', true); //Add Shuffle js wp_enqueue_script('modernizr-js', get_template_directory_uri() . '/js/modernizr.custom.min.js', array('jquery'), '2.6.2', true); wp_enqueue_script('shuffle-js', get_template_directory_uri() . '/js/jquery.shuffle.min.js', array('jquery'), '3.0.0', true); //Add mousewheel wp_enqueue_script('mousewheel-js', get_template_directory_uri() . '/js/jquery.mousewheel.min.js', array('jquery'), '3.1.12', true); // Add jQuery countdown file wp_enqueue_script('countdown-js', get_template_directory_uri() . '/js/jquery.countdown.min.js', array('jquery'), '2.0.4', true); //Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. wp_enqueue_script('html5-js', get_template_directory_uri() . '/js/html5.js', array(), '3.7.0', true); $wp_scripts->add_data('html5-js', 'conditional', 'lt IE 9'); // Add theme.js file wp_enqueue_script('theme-js', get_template_directory_uri() . '/js/theme.js', array('jquery'), '20140826', true); wp_enqueue_script('collapse-js', get_template_directory_uri() . '/js/jquery.ntm.js', array('jquery'), '20140826', true); wp_enqueue_style('collapse-css', get_template_directory_uri() . '/css/collapse.css', array('roadthemes-css'), '1.0.0'); $font_url = $this->road_get_font_url(); if (!empty($font_url)) { wp_enqueue_style('roadthemes-fonts', esc_url_raw($font_url), array(), null); } // Loads our main stylesheet. wp_enqueue_style('roadthemes-style', get_stylesheet_uri()); // Mega Main Menu wp_enqueue_style('megamenu-css', get_template_directory_uri() . '/css/megamenu_style.css', array(), '2.0.4'); // Load fontawesome css wp_enqueue_style('fontawesome-css', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.2.0'); // Load bootstrap css wp_enqueue_style('bootstrap-css', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.2.0'); // Compile Less to CSS $previewpreset = isset($_REQUEST['preset']) ? $_REQUEST['preset'] : null; //get preset from url (only for demo/preview) if ($previewpreset) { $_SESSION["preset"] = $previewpreset; } if (!isset($_SESSION["preset"])) { $_SESSION["preset"] = 1; } if ($_SESSION["preset"] != 1) { $presetopt = $_SESSION["preset"]; } else { /* if no preset varialbe found in url, use from theme options */ $presetopt = $road_opt['preset_option']; } if (!isset($presetopt)) { $presetopt = 1; } /* in case first time install theme, no options found */ if ($road_opt['enable_less']) { $themevariables = array('heading_font' => $road_opt['headingfont']['font-family'], 'menu_font' => $road_opt['menufont']['font-family'], 'body_font' => $road_opt['bodyfont']['font-family'], 'price_font' => $road_opt['pricefont']['font-family'], 'heading_color' => $road_opt['headingfont']['color'], 'menu_color' => $road_opt['menufont']['color'], 'text_color' => $road_opt['bodyfont']['color'], 'primary_color' => $road_opt['primary_color'], 'sale_color' => $road_opt['sale_color'], 'saletext_color' => $road_opt['saletext_color'], 'rate_color' => $road_opt['rate_color']); switch ($presetopt) { case 2: $themevariables['primary_color'] = '#c49654'; break; case 3: $themevariables['primary_color'] = '#00B900'; break; case 4: $themevariables['primary_color'] = '#FF8787'; break; case 5: $themevariables['primary_color'] = '#EF7C3D'; break; case 6: $themevariables['primary_color'] = '#DE4C4A'; break; } if (function_exists('compileLessFile')) { compileLessFile('theme.less', 'theme' . $presetopt . '.css', $themevariables); compileLessFile('ie.less', 'ie' . $presetopt . '.css', $themevariables); } } // Load main theme css style wp_enqueue_style('roadthemes-css', get_template_directory_uri() . '/css/theme' . $presetopt . '.css', array('bootstrap-css'), '1.0.0'); // Loads the Internet Explorer specific stylesheet. wp_enqueue_style('roadthemes-ie', get_template_directory_uri() . '/css/ie' . $presetopt . '.css', array('roadthemes-style'), '20121010'); $wp_styles->add_data('roadthemes-ie', 'conditional', 'lte IE 9'); if ($road_opt['enable_sswitcher']) { // Add styleswitcher.js file wp_enqueue_script('styleswitcher-js', get_template_directory_uri() . '/js/styleswitcher.js', array(), '20140826', false); // Load styleswitcher css style wp_enqueue_style('styleswitcher-css', get_template_directory_uri() . '/css/styleswitcher.css', array(), '1.0.0'); // Load scroll bar js wp_enqueue_script('scrollbar-js', get_template_directory_uri() . '/js/jquery.scrollbar.min.js', array('jquery'), '0.2.8', true); wp_enqueue_style('scrollbar-css', get_template_directory_uri() . '/css/scrollbar.css', array(), '1.0.0'); } }
/** * Enqueue scripts and styles for front-end. * * @since Huge Shop 1.0 */ function chairman_scripts_styles() { global $wp_styles, $wp_scripts, $chairman_opt; /* * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } // Add Bootstrap JavaScript wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.2.0', true); // Add Slick files wp_enqueue_script('slick-js', get_template_directory_uri() . '/js/slick/slick.min.js', array('jquery'), '1.3.15', true); wp_enqueue_style('slick-style', get_template_directory_uri() . '/js/slick/slick.css', array(), '1.3.15'); // Add Chosen js files wp_enqueue_script('chosen-js', get_template_directory_uri() . '/js/chosen/chosen.jquery.min.js', array('jquery'), '1.3.0', true); wp_enqueue_script('chosenproto-js', get_template_directory_uri() . '/js/chosen/chosen.proto.min.js', array('jquery'), '1.3.0', true); wp_enqueue_style('chosen-style', get_template_directory_uri() . '/js/chosen/chosen.min.css', array(), '1.3.0'); // Add parallax script files // Add Fancybox wp_enqueue_script('fancybox', get_template_directory_uri() . '/js/fancybox/jquery.fancybox.pack.js', array('jquery'), '2.1.5', true); wp_enqueue_script('fancybox-buttons', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-buttons.js', array('jquery'), '1.0.5', true); wp_enqueue_script('fancybox-media', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-media.js', array('jquery'), '1.0.6', true); wp_enqueue_script('fancybox-thumbs', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-thumbs.js', array('jquery'), '1.0.7', true); wp_enqueue_style('fancybox-css', get_template_directory_uri() . '/js/fancybox/jquery.fancybox.css', array(), '2.1.5'); wp_enqueue_style('fancybox-buttons', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-buttons.css', array(), '1.0.5'); wp_enqueue_style('fancybox-thumbs', get_template_directory_uri() . '/js/fancybox/helpers/jquery.fancybox-thumbs.css', array(), '1.0.7'); //Superfish wp_enqueue_script('superfish-js', get_template_directory_uri() . '/js/superfish/superfish.min.js', array('jquery'), '1.3.15', true); //Add Shuffle js wp_enqueue_script('modernizr-js', get_template_directory_uri() . '/js/modernizr.custom.min.js', array('jquery'), '2.6.2', true); wp_enqueue_script('shuffle-js', get_template_directory_uri() . '/js/jquery.shuffle.min.js', array('jquery'), '3.0.0', true); //Add mousewheel wp_enqueue_script('mousewheel-js', get_template_directory_uri() . '/js/jquery.mousewheel.min.js', array('jquery'), '3.1.12', true); // Add jQuery countdown file wp_enqueue_script('countdown-js', get_template_directory_uri() . '/js/jquery.countdown.min.js', array('jquery'), '2.0.4', true); //Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. wp_enqueue_script('html5-js', get_template_directory_uri() . '/js/html5.js', array(), '3.7.0', true); $wp_scripts->add_data('html5-js', 'conditional', 'lt IE 9'); // Add jQuery counter files wp_enqueue_script('waypoints-js', get_template_directory_uri() . '/js/waypoints.min.js', array('jquery'), '1.0', true); wp_enqueue_script('counterup-js', get_template_directory_uri() . '/js/jquery.counterup.min.js', array('jquery'), '1.0', true); // Add theme.js file wp_enqueue_script('theme-js', get_template_directory_uri() . '/js/theme.js', array('jquery'), '20140826', true); $font_url = $this->chairman_get_font_url(); if (!empty($font_url)) { wp_enqueue_style('chairman-fonts', esc_url_raw($font_url), array(), null); } // Loads our main stylesheet. wp_enqueue_style('chairman-style', get_stylesheet_uri()); // Mega Main Menu wp_enqueue_style('megamenu-css', get_template_directory_uri() . '/css/megamenu_style.css', array(), '2.0.4'); // Load fontawesome css wp_enqueue_style('fontawesome-css', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.2.0'); // Load Simple-Line-Icons css wp_enqueue_style('simple-line-css', get_template_directory_uri() . '/css/simple-line-icons.css', array(), '2.2.2'); // Load Simple-Line-Icons css wp_enqueue_style('pe-icon-7-stroke', get_template_directory_uri() . '/css/pe-icon-7-stroke.css', array(), '1.2.0'); // Load bootstrap css wp_enqueue_style('bootstrap-css', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.2.0'); // Compile Less to CSS $previewpreset = isset($_REQUEST['preset']) ? $_REQUEST['preset'] : null; //get preset from url (only for demo/preview) if ($previewpreset) { $_SESSION["preset"] = $previewpreset; } $presetopt = 1; if (!isset($_SESSION["preset"])) { $_SESSION["preset"] = 1; } if ($_SESSION["preset"] != 1) { $presetopt = $_SESSION["preset"]; } else { /* if no preset varialbe found in url, use from theme options */ if (isset($chairman_opt['preset_option'])) { $presetopt = $chairman_opt['preset_option']; } } if (!isset($presetopt)) { $presetopt = 1; } /* in case first time install theme, no options found */ if (isset($chairman_opt['enable_less'])) { if ($chairman_opt['enable_less']) { $themevariables = array('body_font' => $chairman_opt['bodyfont']['font-family'], 'text_color' => $chairman_opt['bodyfont']['color'], 'text_selected_bg' => $chairman_opt['text_selected_bg'], 'text_selected_color' => $chairman_opt['text_selected_color'], 'text_size' => $chairman_opt['bodyfont']['font-size'], 'border_color' => $chairman_opt['border_color']['border-color'], 'heading_font' => $chairman_opt['headingfont']['font-family'], 'heading_color' => $chairman_opt['headingfont']['color'], 'heading_font_weight' => $chairman_opt['headingfont']['font-weight'], 'menu_font' => $chairman_opt['menufont']['font-family'], 'menu_color' => $chairman_opt['menufont']['color'], 'menu_font_size' => $chairman_opt['menufont']['font-size'], 'menu_font_weight' => $chairman_opt['menufont']['font-weight'], 'sub_menu_bg' => $chairman_opt['sub_menu_bg'], 'sub_menu_color' => $chairman_opt['sub_menu_color'], 'link_color' => $chairman_opt['link_color']['regular'], 'link_hover_color' => $chairman_opt['link_color']['hover'], 'link_active_color' => $chairman_opt['link_color']['active'], 'primary_color' => $chairman_opt['primary_color'], 'sale_color' => $chairman_opt['sale_color'], 'saletext_color' => $chairman_opt['saletext_color'], 'rate_color' => $chairman_opt['rate_color'], 'topbar_color' => $chairman_opt['topbar_color'], 'topbar_link_color' => $chairman_opt['topbar_link_color']['regular'], 'topbar_link_hover_color' => $chairman_opt['topbar_link_color']['hover'], 'topbar_link_active_color' => $chairman_opt['topbar_link_color']['active'], 'header_color' => $chairman_opt['header_color'], 'header_link_color' => $chairman_opt['header_link_color']['regular'], 'header_link_hover_color' => $chairman_opt['header_link_color']['hover'], 'header_link_active_color' => $chairman_opt['header_link_color']['active'], 'price_font' => $chairman_opt['pricefont']['font-family'], 'price_color' => $chairman_opt['pricefont']['color'], 'price_size' => $chairman_opt['pricefont']['font-size'], 'price_font_weight' => $chairman_opt['pricefont']['font-weight'], 'footer_color' => $chairman_opt['footer_color'], 'footer_link_color' => $chairman_opt['footer_link_color']['regular'], 'footer_link_hover_color' => $chairman_opt['footer_link_color']['hover'], 'footer_link_active_color' => $chairman_opt['footer_link_color']['active']); if (isset($chairman_opt['header_bg']['background-color']) && $chairman_opt['header_bg']['background-color'] != "") { $themevariables['header_bg'] = $chairman_opt['header_bg']['background-color']; } else { $themevariables['header_bg'] = 'transparent'; } if (isset($chairman_opt['topbar_bg']['background-color']) && $chairman_opt['topbar_bg']['background-color'] != "") { $themevariables['topbar_bg'] = $chairman_opt['topbar_bg']['background-color']; } else { $themevariables['topbar_bg'] = 'transparent'; } if (isset($chairman_opt['header_sticky_bg']['rgba']) && $chairman_opt['header_sticky_bg']['rgba'] != "") { $themevariables['header_sticky_bg'] = $chairman_opt['header_sticky_bg']['rgba']; } else { $themevariables['header_sticky_bg'] = 'transparent'; } if (isset($chairman_opt['footer_bg']['background-color']) && $chairman_opt['footer_bg']['background-color'] != "") { $themevariables['footer_bg'] = $chairman_opt['footer_bg']['background-color']; } else { $themevariables['footer_bg'] = 'transparent'; } switch ($presetopt) { case 2: $themevariables['primary_color'] = '#c7631a'; $themevariables['link_color'] = '#fbaf5d'; break; case 3: $themevariables['primary_color'] = '#71a9d0'; break; case 4: $themevariables['primary_color'] = '#FFB548'; $themevariables['menu_color'] = '#fff'; break; case 5: $themevariables['primary_color'] = '#71a9d0'; $themevariables['menu_color'] = '#fff'; break; case 6: $themevariables['primary_color'] = '#ffb300'; $themevariables['topbar_color'] = '#fff'; $themevariables['topbar_link_color'] = '#fff'; $themevariables['topbar_link_hover_color'] = '#ffb300'; break; case 7: $themevariables['primary_color'] = '#ffb300'; $themevariables['topbar_color'] = '#fff'; $themevariables['topbar_link_color'] = '#fff'; $themevariables['topbar_link_hover_color'] = '#ffb300'; $themevariables['menu_color'] = '#fff'; break; case 8: $themevariables['primary_color'] = '#cd232f'; $themevariables['header_bg'] = '#121112'; $themevariables['menu_color'] = '#ffffff'; $themevariables['header_link_color'] = '#ffffff'; $themevariables['header_link_hover_color'] = '#cd232f'; $themevariables['link_color'] = '#3c9feb'; $themevariables['footer_link_hover_color'] = '#cd232f'; break; case 9: $themevariables['primary_color'] = '#18afd3'; $themevariables['topbar_color'] = '#666666'; $themevariables['topbar_bg'] = '#fff'; $themevariables['topbar_link_color'] = '#666666'; $themevariables['topbar_link_hover_color'] = '#18afd3'; $themevariables['footer_link_hover_color'] = '#18afd3'; break; case 10: $themevariables['primary_color'] = '#b00e09'; $themevariables['header_bg'] = '#1f1f21'; $themevariables['menu_color'] = '#ffffff'; $themevariables['header_link_color'] = '#ffffff'; $themevariables['header_link_hover_color'] = '#b00e09'; $themevariables['link_color'] = '#fe8100'; $themevariables['footer_link_hover_color'] = '#b00e09'; break; case 11: $themevariables['primary_color'] = '#b00e09'; $themevariables['header_bg'] = '#1f1f21'; $themevariables['menu_color'] = '#ffffff'; $themevariables['header_link_color'] = '#ffffff'; $themevariables['header_link_hover_color'] = '#b00e09'; $themevariables['link_color'] = '#f2ba17'; $themevariables['footer_link_hover_color'] = '#b00e09'; $themevariables['footer_bg'] = '#000000'; $themevariables['heading_font_weight'] = '700'; break; case 12: $themevariables['primary_color'] = '#b00e09'; $themevariables['header_bg'] = '#fff'; $themevariables['menu_color'] = '#323334'; $themevariables['header_link_color'] = '#323334'; $themevariables['header_link_hover_color'] = '#b00e09'; $themevariables['link_color'] = '#f2ba17'; $themevariables['footer_link_hover_color'] = '#b00e09'; $themevariables['footer_bg'] = '#151616'; $themevariables['heading_font_weight'] = '700'; break; } if (function_exists('compileLessFile')) { compileLessFile('reset.less', 'reset' . $presetopt . '.css', $themevariables); compileLessFile('global.less', 'global' . $presetopt . '.css', $themevariables); compileLessFile('pages.less', 'pages' . $presetopt . '.css', $themevariables); compileLessFile('woocommerce.less', 'woocommerce' . $presetopt . '.css', $themevariables); compileLessFile('portfolio.less', 'portfolio' . $presetopt . '.css', $themevariables); compileLessFile('layouts.less', 'layouts' . $presetopt . '.css', $themevariables); compileLessFile('responsive.less', 'responsive' . $presetopt . '.css', $themevariables); compileLessFile('ie.less', 'ie' . $presetopt . '.css', $themevariables); } } } // Load main theme css style files wp_enqueue_style('chairmancss-reset', get_template_directory_uri() . '/css/reset' . $presetopt . '.css', array('bootstrap-css'), '1.0.0'); wp_enqueue_style('chairmancss-global', get_template_directory_uri() . '/css/global' . $presetopt . '.css', array('chairmancss-reset'), '1.0.0'); wp_enqueue_style('chairmancss-pages', get_template_directory_uri() . '/css/pages' . $presetopt . '.css', array('chairmancss-global'), '1.0.0'); wp_enqueue_style('chairmancss-woocommerce', get_template_directory_uri() . '/css/woocommerce' . $presetopt . '.css', array('chairmancss-pages'), '1.0.0'); wp_enqueue_style('chairmancss-portfolio', get_template_directory_uri() . '/css/portfolio' . $presetopt . '.css', array('chairmancss-woocommerce'), '1.0.0'); wp_enqueue_style('chairmancss-layouts', get_template_directory_uri() . '/css/layouts' . $presetopt . '.css', array('chairmancss-portfolio'), '1.0.0'); wp_enqueue_style('chairmancss-responsive', get_template_directory_uri() . '/css/responsive' . $presetopt . '.css', array('chairmancss-layouts'), '1.0.0'); // Loads the Internet Explorer specific stylesheet. wp_enqueue_style('chairmancss-ie', get_template_directory_uri() . '/css/ie' . $presetopt . '.css', array('chairmancss-style'), '20121010'); $wp_styles->add_data('chairmancss-ie', 'conditional', 'lte IE 9'); if (isset($chairman_opt['enable_sswitcher'])) { if ($chairman_opt['enable_sswitcher']) { // Add styleswitcher.js file wp_enqueue_script('styleswitcher-js', get_template_directory_uri() . '/js/styleswitcher.js', array(), '20140826', true); // Load styleswitcher css style wp_enqueue_style('styleswitcher-css', get_template_directory_uri() . '/css/styleswitcher.css', array(), '1.0.0'); // Load scroll bar js wp_enqueue_script('scrollbar-js', get_template_directory_uri() . '/js/jquery.scrollbar.min.js', array('jquery'), '0.2.8', true); wp_enqueue_style('scrollbar-css', get_template_directory_uri() . '/css/scrollbar.css', array(), '1.0.0'); } } }