function themerex_scripts() { global $concatenate_scripts; $concatenate_scripts = get_theme_option('compose_scripts') == 'yes'; //Enqueue styles $fonts = getThemeFontsList(false); $font = get_custom_option('theme_font'); if (isset($fonts[$font])) { $theme_font_link = $fonts[$font]['link']; } else { $theme_font_link = "Oxygen:400,700"; } $font = get_custom_option('logo_font'); if (isset($fonts[$font])) { $logo_font_link = $fonts[$font]['link']; } else { $logo_font_link = "Cabin:700"; } // Must be loaded before main stylesheet wp_enqueue_style('theme-font', 'http://fonts.googleapis.com/css?family=' . $theme_font_link . '&subset=latin,cyrillic-ext,latin-ext,cyrillic', array(), null); wp_enqueue_style('logo-font', 'http://fonts.googleapis.com/css?family=' . $logo_font_link . '&subset=latin,cyrillic-ext,latin-ext,cyrillic', array(), null); wp_enqueue_style('fontello', get_template_directory_uri() . '/includes/fontello/css/fontello.css', array(), null); wp_enqueue_style('animation', get_template_directory_uri() . '/includes/fontello/css/animation.css', array(), null); // Main stylesheet wp_enqueue_style('main-style', get_stylesheet_uri(), array(), null); // Themes $themes = array(); $themes[get_custom_option('blog_theme')] = 1; $themes[get_custom_option('sidebar_main_theme')] = 1; $themes[get_custom_option('sidebar_advert_theme')] = 1; $themes[get_custom_option('sidebar_footer_theme')] = 1; foreach ($themes as $style => $v) { wp_enqueue_style('theme-' . $style, esc_url(get_template_directory_uri() . '/css/themes/' . $style . '.css'), array('main-style'), null); } // Shortcodes wp_enqueue_style('shortcodes', get_template_directory_uri() . '/css/shortcodes.css', array('main-style'), null); // Customizer wp_add_inline_style('shortcodes', prepareThemeCustomStyles()); // Responsive if (get_theme_option('responsive_layouts') == 'yes') { wp_enqueue_style('responsive', get_template_directory_uri() . '/css/responsive.css', array('main-style'), null); } // WooCommerce customizer if (function_exists('is_woocommerce')) { wp_enqueue_style('woo-style', get_template_directory_uri() . '/css/woo-style.css', array('main-style'), null); } // BuddyPress customizer if (class_exists('BuddyPress')) { wp_enqueue_style('buddy-style', get_template_directory_uri() . '/css/buddy-style.css', array('main-style'), null); } // BB Press customizer if (class_exists('bbPress')) { wp_enqueue_style('bbpress-style', get_template_directory_uri() . '/css/bbpress-style.css', array('main-style'), null); } // Loads the Internet Explorer specific stylesheet. wp_enqueue_style('puzzles-ie', get_template_directory_uri() . '/css/ie.css', array('main-style'), null); wp_style_add_data('puzzles-ie', 'conditional', 'lt IE 10'); // RTL support if (get_bloginfo('text_direction') == 'rtl') { wp_enqueue_style('shortcodes_rtl', get_template_directory_uri() . '/css/shortcodes_rtl.css'); wp_enqueue_style('bbpress_rtl', get_template_directory_uri() . '/css/bbpress-style_rtl.css'); wp_enqueue_style('buddy-style_rtl', get_template_directory_uri() . '/css/buddy-style_rtl.css'); wp_enqueue_style('woo-style_rtl', get_template_directory_uri() . '/css/woo-style_rtl.css'); } wp_enqueue_script('jquery', false, array(), null, true); wp_enqueue_script('jquery-cookie', get_template_directory_uri() . '/js/jquery.cookie.js', array('jquery'), null, true); wp_enqueue_script('jquery-easing', get_template_directory_uri() . '/js/jquery.easing.js', array('jquery'), null, true); wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'), null, true); if (get_theme_option('responsive_layouts') == 'yes') { wp_enqueue_script('mobilemenu', get_template_directory_uri() . '/js/jquery.mobilemenu.min.js', array('jquery'), null, true); } if (get_theme_option('menu_slider') == 'yes') { wp_enqueue_script('slidemenu', get_template_directory_uri() . '/js/jquery.slidemenu.js', array('jquery'), null, true); } wp_enqueue_script('skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), null, true); wp_enqueue_script('_utils', get_template_directory_uri() . '/js/_utils.js', array(), null, true); if (get_bloginfo('text_direction') == 'rtl') { wp_enqueue_script('_front', get_template_directory_uri() . '/js/_frontrtl.js', array(), null, true); } else { wp_enqueue_script('_front', get_template_directory_uri() . '/js/_front.js', array(), null, true); } wp_enqueue_script('_reviews', get_template_directory_uri() . '/js/_reviews.js', array('jquery'), null, true); wp_enqueue_style('prettyphoto-style', get_template_directory_uri() . '/js/prettyphoto/css/prettyPhoto.css', array(), null); wp_enqueue_script('prettyphoto', get_template_directory_uri() . '/js/prettyphoto/jquery.prettyPhoto.min.js', array('jquery'), 'no-compose', true); wp_enqueue_script('flexslider', get_template_directory_uri() . '/js/jquery.flexslider.min.js', array('jquery'), null, true); if (get_theme_option('use_mediaelement') == 'yes') { wp_enqueue_style('mediaplayer-style', get_template_directory_uri() . '/js/mediaplayer/mediaelementplayer.css', array(), null); wp_enqueue_script('mediaplayer', get_template_directory_uri() . '/js/mediaplayer/mediaelement-and-player.min.js', array(), null, true); } if (is_singular() && get_theme_option('show_share') == 'yes') { wp_enqueue_script('social-share', get_template_directory_uri() . '/js/social/social-share.js', array(), null, true); } if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply', false, array(), null, true); } if (get_theme_option('show_theme_customizer') == 'yes') { wp_enqueue_script('jquery-ui-draggable', false, array('jquery', 'jquery-ui-core'), null, true); } }
<?php global $THEMEREX_shortname; $THEMEREX_shortname = 'wps'; // Prepare arrays $fonts = getThemeFontsList(false); $themes = getThemesList(false); $socials = getSocialsList(false); $puzzles = getPuzzlesList(false); $categories = getCategoriesList(false); $sidebars = getSidebarsList(false); $positions = getSidebarsPositions(false); $blog_styles = getBlogStylesList(false); $body_styles = getBodyStylesList(false); $sliders = getSlidersList(false); $yes_no = getYesNoList(false); $dir = getDirectionList(false); $show_hide = getShowHideList(false); $sorting = getSortingList(false); $ordering = getOrderingList(false); // Theme options arrays $THEMEREX_theme_options = array(); /* ############################### #### General #### ############################### */ $THEMEREX_theme_options[] = array("name" => __('General', 'themerex'), "override" => "category,post,page", "type" => "heading"); $THEMEREX_theme_options[] = array("name" => __('Contact form email', 'themerex'), "desc" => __('E-mail for send contact form and user registration data', 'themerex'), "id" => $THEMEREX_shortname . "_" . "contact_email", "std" => "", "type" => "text"); $THEMEREX_theme_options[] = array("name" => __('Favicon', 'themerex'), "desc" => __('Upload a 16px x 16px image that will represent your website\'s favicon.<br /><br /><em>To ensure cross-browser compatibility, we recommend converting the favicon into .ico format before uploading. (<a href="http://www.favicon.cc/">www.favicon.cc</a>)</em>', 'themerex'), "id" => $THEMEREX_shortname . "_" . "favicon", "std" => "", "type" => "upload"); $THEMEREX_theme_options[] = array("name" => __('Logo image', 'themerex'), "desc" => __('Upload logo image', 'themerex'), "id" => $THEMEREX_shortname . "_" . "logo_image", "std" => "", "type" => "mediamanager");
function prepareThemeCustomStyles() { // Custom fonts if (get_custom_option('typography_custom') == 'yes') { $s = ''; $fonts = getThemeFontsList(false); $fname = get_custom_option('typography_p_font'); if (isset($fonts[$fname])) { $fstyle = explode(',', get_custom_option('typography_p_style')); $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname; $i = in_array('i', $fstyle); $u = in_array('u', $fstyle); $c = get_custom_option('typography_p_color'); $s .= "\n\t\t\t\tbody, button, input, select, textarea {\n\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t}\n\t\t\t\tbody {\n\t\t\t\t\tfont-size: " . get_custom_option('typography_p_size') . "px;\n\t\t\t\t\tfont-weight: " . get_custom_option('typography_p_weight') . ";\n\t\t\t\t\tline-height: " . get_custom_option('typography_p_lineheight') . "px;\n\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t}\n\t\t\t"; } for ($h = 1; $h <= 6; $h++) { $fname = get_custom_option('typography_h' . $h . '_font'); if (isset($fonts[$fname])) { $fstyle = explode(',', get_custom_option('typography_h' . $h . '_style')); $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname; $i = in_array('i', $fstyle); $u = in_array('u', $fstyle); $c = get_custom_option('typography_h' . $h . '_color'); $s .= "\n\t\t\t\t\th" . $h . ", .h" . $h . " {\n\t\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t\t\tfont-size: " . get_custom_option('typography_h' . $h . '_size') . "px;\n\t\t\t\t\t\tfont-weight: " . get_custom_option('typography_h' . $h . '_weight') . ";\n\t\t\t\t\t\tline-height: " . get_custom_option('typography_h' . $h . '_lineheight') . "px;\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t\t}\n\t\t\t\t\th" . $h . " a, .h" . $h . " a {\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t}\n\t\t\t\t"; } } if (!empty($s)) { addThemeCustomStyle($s); } } // Submenu width $menu_width = (int) get_theme_option('menu_width'); if ($menu_width > 50) { addThemeCustomStyle("\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 31) . "px;\n\t\t\t}\n\t\t\t.menu_right .topWrap .topMenuStyleLine ul.submenu_left {\n\t\t\t\tleft: -" . ($menu_width + 91) . "px !important;\n\t\t\t}\n\t\t\tul#mainmenu .menu-panel ul.columns > li ul {\n\t\t\t\tmax-width: " . $menu_width . "px;\n\t\t\t}\n\n\t\t"); } // Logo height $logo_height = (int) get_custom_option('logo_height'); $logo_offset = (int) get_custom_option('logo_offset'); if ($logo_height > 10) { if (empty($logo_offset)) { $logo_offset = max(20, round((100 - $logo_height) / 2)); } $add = max(0, round(($logo_offset * 2 + $logo_height - 100) / 2)); addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo .logo_text {\n\t\t\t\tline-height: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .openRightMenu,\n\t\t\theader.noFixMenu.menu_right .topWrap .search {\n\t\t\t\tmargin-top: " . (33 + $add) . "px;\n\t\t\t\tmargin-bottom: " . (37 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li {\n\t\t\t\tpadding-top: " . (30 + $add) . "px;\n\t\t\t\tpadding-bottom: " . (30 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul#mainmenu > li > .menu-panel,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li > ul {\n\t\t\t\ttop: " . (100 + $add) . "px;\n\t\t\t}\n\t\t"); } // Logo top offset if ($logo_offset > 0) { addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\tpadding: " . $logo_offset . "px 0 0 0;\n\t\t\t}\n\t\t"); } $logo_height = (int) get_theme_option('logo_image_footer_height'); if ($logo_height > 10) { addThemeCustomStyle("\n\t\t\tfooter .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t"); } // Main Slider height $slider_height = (int) get_custom_option('slider_height'); if ($slider_height > 10) { addThemeCustomStyle("\n\t\t\t.sliderHomeBullets {\n\t\t\t\theight: " . $slider_height . "px;\n\t\t\t}\n\t\t"); } // Bg custom image global $bg_custom_image_style; if ($bg_custom_image_style != '' && get_custom_option('bg_custom_image_style') != '') { addThemeCustomStyle("\n\t\t\t.sc_quote_style_1,\n\t\t\t.audio_container,\n\t\t\t.topTabsWrap,\n\t\t\t.relatedPostWrap article .wrap.no_thumb,\n\t\t\t.postAside,\n\t\t\t.postStatus,\n\t\t\t.postLink,\n\t\t\t.portfolioWrap .isotopePadding,\n\t\t\t.userFooterSection.global,\n\t\t\t.sc_testimonials_style {\n\t\t\t\tbackground-image:url(" . $bg_custom_image_style . ");\n\t\t\t}\n\t\t\t.sc_testimonials_style {\n\t\t\t\tbackground-size: 100% auto;\n\t\t\t}\n\t\t"); } // Bg custom image in header global $bg_custom_image_style_header; if ($bg_custom_image_style_header != '') { addThemeCustomStyle("\n\t\t\t.userHeaderSection.global {\n\t\t\t\tbackground-image:url(" . $bg_custom_image_style_header . ");\n\t\t\t}\n\t\t"); } else { if ($bg_custom_image_style != '' && get_custom_option('bg_custom_image_style') != '') { addThemeCustomStyle("\n\t\t\t.userHeaderSection.global {\n\t\t\t\tbackground-image:url(" . $bg_custom_image_style . ");\n\t\t\t}\n\t\t"); } } // Custom css from theme options $css = get_custom_option('custom_css'); if (!empty($css)) { addThemeCustomStyle($css); } $custom_style = ''; $customizer = get_theme_option('show_theme_customizer') == 'yes'; // Theme color from customizer $clr = ''; if ($customizer) { $clr = getValueGPC('theme_color', ''); } if (empty($clr)) { $clr = get_custom_option('theme_color'); } if (!empty($clr)) { $rgb = hex2rgb($clr); $custom_style .= ' a:hover, .theme_accent, .theme_accent:before, .topTabsWrap .speedBar a:hover, .topWrap .topMenuStyleLine > ul > li ul li a:hover, .topWrap .topMenuStyleLine .current-menu-item > a, .topWrap .topMenuStyleLine .current-menu-ancestor > a, .topWrap .topMenuStyleLine > ul li a:hover, .topWrap .topMenuStyleLine > ul li.sfHover > a, .infoPost a:hover, .tabsButton ul li a:hover, .popularFiltr ul li a:hover, .isotopeFiltr ul li a:hover, .widget_popular_posts article h3:before, .widgetTabs .widget_popular_posts article .post_info .post_date a:hover, .sidebar .widget_popular_posts article .post_info .post_date a:hover, .sidebar .widget_recent_posts article .post_info .post_date a:hover, .main .widgetWrap a:hover, .main .widgetWrap a:hover span, .widgetWrap a:hover span, .roundButton:hover a, input[type="submit"]:hover, input[type="button"]:hover, .squareButton > a:hover, .nav_pages_parts > a:hover, .nav_comments > a:hover, .comments_list a.comment-edit-link:hover, .wp-calendar tbody td.today a:hover, blockquote.sc_quote_title a:hover, blockquote.sc_quote_style_1 a:hover, blockquote.sc_quote_style_2 a:hover, .postLink a, .masonry article .masonryInfo a:hover, .masonry article .masonryInfo span.infoTags a:hover, .relatedPostWrap article .relatedInfo a:hover, .relatedPostWrap article .relatedInfo span.infoTags a:hover, .infoPost span.infoTags a:hover, .page404 p a, .page404 .searchAnimation.sFocus .searchIcon, .copyWrap a, .comments .commBody li.commItem .replyWrap .posted a:hover, .comments .commBody li.commItem h4 a:hover, .ratingItem span:before, .reviewBlock .totalRating, .widget_area .contactInfo .fContact:before, .footerStyleLight .widget_area article .post_title:before, .footerStyleLight .widget_area article .post_info a:hover, .footerStyleLight .widget_area article .post_info .post_date a:hover, .sc_list_style_arrows li:before, .sc_list_style_arrows li a:hover, .sc_list_style_iconed li a:hover, .sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title, .sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title:before, .sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title, .sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title:before, .sc_tabs .sc_tabs_titles li a:hover, .sc_highlight.sc_highlight_style_2, .sc_price_item .sc_price_money, .sc_price_item .sc_price_penny, .sc_pricing_table .sc_pricing_columns ul li .sc_icon, .sc_title_icon, .sc_scroll_controls .flex-direction-nav a:hover:before, .sc_testimonials_style_1 .flex-direction-nav a:hover:before, .sc_testimonials_style_3 .flex-direction-nav a:hover:before, .sc_testimonials_style_3 .flex-direction-nav a:active:before, .pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:hover:before, .topWrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover, .topWrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a, .topWrap .usermenu_area ul.usermenu_list li ul li a:hover, .topWrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover, .topWrap .usermenu_area a:hover, .topWrap .usermenu_area .sfHover a, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a, .sidemenu_wrap .usermenu_area ul.usermenu_list li ul li a:hover, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover, .sc_blogger a:hover, .sc_blogger.style_date .load_more:before, .sc_blogger.style_accordion .sc_blogger_info .comments_number, .widgetTabs .widgetTop ul > li:not(.tabs):before, .widgetTabs .widgetTop ul > li:not(.tabs) > a:hover, .widgetTabs .widgetTop ul > li:not(.tabs) > a:hover span, .widgetTabs .widgetTop.widget_popular_posts article .post_title:before, .swpRightPos .tabsMenuBody a:hover, .swpRightPos .tabsMenuBody a:hover:before, .swpRightPos .panelmenu_area .current-menu-item > a, .swpRightPos .panelmenu_area .current-menu-ancestor > a, .swpRightPos .panelmenu_area > ul li a:hover, .swpRightPos .panelmenu_area > ul li.sfHover > a, .swpRightPos .panelmenu_area .current-menu-item.dropMenu:before, .swpRightPos .panelmenu_area .current-menu-ancestor.dropMenu:before, .swpRightPos .panelmenu_area li.liHover.dropMenu:before, .topWrap .search:not(.searchOpen):hover:before, .topWrap .search .searchSubmit:hover .icoSearch:before, .user-popUp .formItems.loginFormBody .remember .forgotPwd, .user-popUp .formItems.loginFormBody .loginProblem, .user-popUp .formItems.registerFormBody .i-agree a, .sc_slider_pagination_area .flex-control-nav.manual .slide_info .slide_title, #toc .toc_item.current .toc_icon, #toc .toc_item:hover .toc_icon, .openResponsiveMenu:hover, .openResponsiveMenu:hover:before, .sidebarStyleLight .widgetWrap ul li.liHover:before, .sidebarStyleLight .widgetWrap a:hover, .sidebarStyleLight .widgetWrap a:active, .sidebarStyleLight.widget_area .widgetWrap a:hover span, .sidebarStyleLight.widget_area .widgetWrap a:hover, .sidebarStyleLight.widget_area .widgetWrap ul > li > a:hover, .sidebarStyleLight.widget_area .widgetWrap ul > li > a:hover span, .sidebarStyleLight.widget_area ul.tabs > li.ui-state-active > a, .sidebarStyleLight .widgetWrap .tagcloud a:hover, .sidebarStyleLight .widgetWrap .tagcloud a:active, .sidebarStyleLight.widget_area a:hover, .sidebarStyleLight.widget_area a:hover span, .sidebarStyleLight.widget_area .ui-state-active a, .sidebarStyleLight.widget_area .widgetWrap ul li a:hover, .sidebarStyleLight.widget_area .widget_twitter ul li:before, .sidebarStyleLight .wp-calendar tfoot th a:before, .sidebarStyleLight.widget_area table.wp-calendar tfoot a:hover, .sidebarStyleLight.widget_area article span:before, .sidebarStyleLight.widget_area .widgetWrap ul > li.dropMenu:hover:before, .sidebarStyleLight.widget_area .widgetWrap ul > li.dropMenu.dropOpen:before, .sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_title, .sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_data > span, .sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_title, .sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_data > span, .postSharing > ul > li> a:before, .post .tagsWrap .post_cats a:hover, .post .tagsWrap .post_tags a:hover, .post_text_area .tagsWrap .post_cats a:hover, .post_text_area .tagsWrap .post_tags a:hover, .infoPost > span:before, .infoPost > span a:before, .comments .commBody li.commItem .replyWrap a:hover, .relatedPostWrap .no_indent_style article .wrap a:hover, .postLink a:hover, .portfolBlock ul li a:hover, .swpRightPos .searchBlock .searchSubmit:hover:before, .twitBlock .sc_slider .swiper-slide a:hover, .twitBlockWrap .twitterAuthor a:hover, .relatedPostWrap.sc_blogger article .relatedInfo a:hover, .sc_blogger.style_date .sc_blogger_item .sc_blogger_info a:hover, ul#mainmenu .menu-panel.thumb_title > li > ul > li > ul li a:before, .footerContentWrap .googlemap_button:after ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce ul.products li.product .added_to_cart, .woocommerce-page ul.products li.product .added_to_cart, .woocommerce .woocommerce-breadcrumb a:hover, .woocommerce-page .woocommerce-breadcrumb a:hover, .topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button:hover, .topWrap .sidebar_cart ul.cart_list li > a:hover, .woocommerce .star-rating span:before, .woocommerce-page .star-rating span:before, .woocommerce a.reset_variations, .woocommerce-page a.reset_variations, .shipping-calculator-button:hover ') . ' { color:' . $clr . '; } .roundButton.border_1:hover > a, .squareButton.border_1 > a:hover, .squareButton.border_1 > a:active, .topWrap .topMenuStyleLine > ul > li ul li a:hover, .flip-clock-wrapper ul li a div div.inn ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce .woocommerce-info a:after, .woocommerce-page .woocommerce-info a:after, .woocommerce .woocommerce-info a, .woocommerce-page .woocommerce-info a, .woocommerce p.stars a:hover.star-1:after, .woocommerce p.stars a:hover.star-1.active:after, .woocommerce-page p.stars a:hover.star-1:after, .woocommerce-page p.stars a.star-1.active:after, .woocommerce p.stars a:hover.star-2:after, .woocommerce p.stars a.star-2.active:after, .woocommerce-page p.stars a:hover.star-2:after, .woocommerce-page p.stars a.star-2.active:after, .woocommerce p.stars a:hover.star-3:after, .woocommerce p.stars a.star-3.active:after, .woocommerce-page p.stars a:hover.star-3:after, .woocommerce-page p.stars a.star-3.active:after, .woocommerce p.stars a:hover.star-4:after, .woocommerce p.stars a.star-4.active:after, .woocommerce-page p.stars a:hover.star-4:after, .woocommerce-page p.stars a.star-4.active:after, .woocommerce p.stars a.star-5:hover:after, .woocommerce p.stars a.star-5.active:after, .woocommerce-page p.stars a:hover.star-5:after, .woocommerce-page p.stars a.star-5.active:after, .woocommerce .widget_shopping_cart .cart_list li a.remove:hover, .woocommerce.widget_shopping_cart .cart_list li a.remove:hover ') . ' { color:' . $clr . ' !important; } .theme_accent_bgc, .theme_accent_bgc:before, .sc_video_player:active .sc_video_play_button:after, input[type="submit"]:active, input[type="button"]:active, .squareButton.active > span, .squareButton.active > a, .squareButton.ui-state-active > a, .roundButton > a:active, .squareButton > a:active, .squareButton.global > a, .nav_pages_parts > span.page_num, .nav_comments > span.current, ul > li.likeActive:active > a, .masonry article .status, .portfolio .isotopeElement .folioShowBlock:before, .post .postStatus, .itemPageFull .itemDescriptionWrap .toggleButton:active, .footerWrap .footerWidget .sc_video_player:active .sc_video_play_button:after, .topMenuStyleLine > ul .menu-panel, .sliderLogo .elastislide-wrapper nav span:active:before, .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .sc_highlight.sc_highlight_style_1, .sc_title_bg, .sc_testimonials_style_1 .flex-direction-nav a:active, .sc_testimonials_style_3 .sc_testimonials_items, .sc_testimonials_style_3 .flex-direction-nav li, .sc_testimonials_style_3 .flex-direction-nav a, .pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:active, .sc_popup_light:before, .global_bg, .widgetTabs .widgetTop .tagcloud a:hover, .widgetTabs .widgetTop .tagcloud a:active, .fullScreenSlider.globalColor .sliderHomeBullets .rsContent:before, .fullScreenSlider .sliderHomeBullets .rsContent .slide-3 .order p span, ul.sc_list_style_disk li:before, .sc_slider_pagination_area .flex-control-nav.manual .slide_date, .sc_contact_form_custom .bubble label:hover, .sc_contact_form_custom .bubble label.selected, .topWrap .cart a.cart_button, .sidebarStyleLight .widget_socials .socPage ul li a:hover, .sidebarStyleLight.widget_area .instagram-pics li a:after, .sidebarStyleLight.widget_area .flickr_images .flickr_badge_image a:after, .sidebarStyleLight .wp-calendar tbody td a:hover, .sidebarStyleLight .wp-calendar tbody td a:hover, .sidebarStyleLight .wp-calendar tbody td.today > span, .sidebarStyleLight .wp-calendar tbody td.today a, .footerStyleLight .contactFooter .contactShare ul li a:hover, .footerContentWrap .googlemap_button, .page404 .titleError > span, .isotopeFiltr ul a .data_count, .isotopeFiltr ul a .data_count:before ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce #review_form #respond .form-submit input, .woocommerce-page #review_form #respond .form-submit input, .woocommerce table.cart a.remove:hover, .woocommerce #content table.cart a.remove:hover, .woocommerce-page table.cart a.remove:hover, .woocommerce-page #content table.cart a.remove:hover, .topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button.checkout ') . ' ' . (!class_exists('TribeEvents') ? '' : ', .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"], .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"] > a, #tribe_events_filters_wrapper input[type="submit"], .tribe-events-button, #tribe-events .tribe-events-button, .tribe-events-button.tribe-inactive, #tribe-events .tribe-events-button:hover, .tribe-events-button:hover, .tribe-events-button.tribe-active:hover ') . ' { background-color:' . $clr . '; } .sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate .sc_button > a, .sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate .sc_button > a ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce .woocommerce-message a.button, .woocommerce .woocommerce-error a.button, .woocommerce .woocommerce-info a.button, .woocommerce-page .woocommerce-message a.button, .woocommerce-page .woocommerce-error a.button, .woocommerce-page .woocommerce-info a.button ') . ' { background-color: ' . $clr . ' !important; } .theme_accent_border, .squareButton.border_1 > a:hover, .squareButton.border_1 > a:active, .sidebarStyleLight .widgetWrap .tagcloud a:hover, .sidebarStyleLight .widgetWrap .tagcloud a:active, .sidebarStyleLight.widget_area .tabs_area ul.tabs > li > a:hover, .sidebarStyleLight.widget_area .tagcloud a:hover, .sidebarStyleLight.widget_area .tagcloud a:active, .sidebarStyleLight.widget_area ul.tabs > li.ui-state-active > a, .sidebarStyleLight.widget_area .wp-calendar tbody a:hover, .sc_pricing_light .sc_pricing_columns:hover ul.columnsAnimate, .sc_pricing_light .sc_pricing_columns.active ul.columnsAnimate, #toc .toc_item.current, #toc .toc_item:hover, .topWrap .search:not(.searchOpen):hover, .upToScroll a.addBookmark:hover, .sc_scroll_controls .flex-direction-nav a:active, .sc_testimonials_style_1 .flex-direction-nav a:active, .pagination .flex-direction-nav a:active .sc_scroll_controls .flex-direction-nav a:hover, .topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button:hover, .openResponsiveMenu:hover { border-color: ' . $clr . '; } .theme_accent_bg, .theme_accent_bg:before { background:' . $clr . '; } ' . (!class_exists('TribeEvents') ? '' : ', #tribe-bar-form .tribe-bar-submit input[type="submit"] { background:' . $clr . '; } ') . ' .squareButton.global > a:hover, .squareButton.global > a:active, .topWrap .sidebar_cart .widget_shopping_cart_content .buttons .button.checkout:hover, .topWrap .cart .cart_button:hover ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce #review_form #respond .form-submit input:hover, .woocommerce-page #review_form #respond .form-submit input:hover, .woocommerce #payment #place_order:hover, .woocommerce-page #payment #place_order:hover, .woocommerce .woocommerce-message a.button:hover, .woocommerce .woocommerce-error a.button:hover, .woocommerce .woocommerce-info a.button:hover, .woocommerce-page .woocommerce-message a.button:hover, .woocommerce-page .woocommerce-error a.button:hover, .woocommerce-page .woocommerce-info a.button:hover ') . ' { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } ::selection { background-color:' . $clr . ';} ::-moz-selection { background-color:' . $clr . ';} '; $custom_style = apply_filters('theme_skin_set_theme_color', $custom_style, $clr); } // Theme color 1 from customizer $clr = ''; if ($customizer) { $clr = getValueGPC('theme_color_1', ''); } if (empty($clr)) { $clr = get_custom_option('theme_color_1'); } if (!empty($clr)) { $rgb = hex2rgb($clr); $custom_style .= ' .theme_accent_1, .theme_accent_1:before, .sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_data > span, .sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate .sc_pricing_title, .sc_pricing_dark .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_data > span, .sc_pricing_dark .sc_pricing_columns.active ul.columnsAnimate .sc_pricing_title, .postLink a { color:' . $clr . '; } .roundButton.border:hover > a, .squareButton.border > a:hover, .squareButton.border > a:active, .revlink.border:hover, .revlink.border:active { color:' . $clr . ' !important; } .theme_accent_1_bgc, .theme_accent_1_bgc:before, .sc_dropcaps.sc_dropcaps_style_4 .sc_dropcap, .squareButton.accent_1 > a, .revlink.filled { background-color: ' . $clr . '; } .sc_pricing_dark .sc_pricing_columns .sc_button > a:hover, .sc_pricing_dark .sc_pricing_columns .sc_button > a:active, .sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate .sc_button > a ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce form .button, .woocommerce-page form .button ') . ' { background-color: ' . $clr . ' !important; } .squareButton.border > a:hover, .squareButton.border > a:active, .sc_pricing_dark .sc_pricing_columns:hover ul.columnsAnimate, .sc_pricing_dark .sc_pricing_columns.active ul.columnsAnimate, .revlink.border:hover, .revlink.border:active { border-color: ' . $clr . '; } .theme_accent_1_bg, .theme_accent_1_bg:before { background:' . $clr . '; } .squareButton.accent_1 > a:hover, .squareButton.accent_1 > a:active, .revlink.filled:hover, .revlink.filled:active { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce form .button:hover, .woocommerce-page form .button:hover { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } ') . ' '; } // Theme color 2 from customizer $clr = ''; if ($customizer) { $clr = getValueGPC('theme_color_2', ''); } if (empty($clr)) { $clr = get_custom_option('theme_color_2'); } if (!empty($clr)) { $rgb = hex2rgb($clr); $custom_style .= ' .theme_accent_2, .theme_accent_2:before, .sc_tooltip_parent, .hoverIncrease .hoverIcon:hover:before, .sc_video_player .sc_video_play_button:hover:after, .sc_video_player:active .sc_video_play_button:hover:after, .sc_accordion.sc_accordion_style_1 .sc_accordion_item.sc_active .sc_accordion_title, .sc_toggles.sc_toggles_style_1 .sc_toggles_item.sc_active .sc_toggles_title, .sc_team .sc_team_item .sc_team_item_avatar .sc_team_item_socials li a:hover, .hoverIncrease .hoverIcon:hover:before, .hoverIncrease .hoverLink:hover:before { color:' . $clr . '; } .relatedPostWrap.sc_blogger article a.readmore_blogger:hover { color:' . $clr . ' !important; } .theme_accent_2_bgc, .theme_accent_2_bgc:before, .sc_tooltip_parent .sc_tooltip, .sc_tooltip_parent .sc_tooltip:before, .sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap, .hoverIncrease .hoverShadow, .sc_accordion.sc_accordion_style_1 .sc_accordion_item .sc_accordion_title:before, .sc_toggles.sc_toggles_style_1 .sc_toggles_item .sc_toggles_title:before, .squareButton.accent_2 > a, .sc_skills_bar .sc_skills_item .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_3 .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_info, .relatedPostWrap .wrap:before, .relatedPostWrap.sc_blogger .wrap:hover:before, .portfolioWrap .isotopePadding:before, #pagination .squareButton.active span, #pagination .squareButton a:hover, #pagination .squareButton a:active, #viewmore_link:hover, #viewmore_link:active, .user-popUp .formItems .formList li .sendEnter, .user-popUp ul.loginHeadTab li.ui-tabs-active:before, .sc_blogger.style_date .sc_blogger_item .sc_blogger_date, .sc_scroll_bar .swiper-scrollbar-drag:before, .sc_blogger.sc_blogger_vertical.style_date.sc_scroll_controls ul.flex-direction-nav li a:hover ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce .widget_area aside.widgetWrap.woocommerce .button, .woocommerce-page .widget_area aside.widgetWrap.woocommerce .button, .woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce #content nav.woocommerce-pagination ul li span.current, .woocommerce #content nav.woocommerce-pagination ul li a:hover, .woocommerce #content nav.woocommerce-pagination ul li a:focus, .woocommerce-page nav.woocommerce-pagination ul li span.current, .woocommerce-page nav.woocommerce-pagination ul li a:hover, .woocommerce-page nav.woocommerce-pagination ul li a:focus, .woocommerce-page #content nav.woocommerce-pagination ul li span.current, .woocommerce-page #content nav.woocommerce-pagination ul li a:hover, .woocommerce-page #content nav.woocommerce-pagination ul li a:focus ') . ' { background-color: ' . $clr . '; } .theme_accent_2_bg, .theme_accent_2_bg:before { background:' . $clr . '; } a.sc_icon.bg_icon.sc_icon_round:hover, a.sc_icon.no_bg_icon.sc_icon_round:hover { background-color: ' . $clr . ' !important; } .sc_slider_flex .sc_slider_info, .sc_slider_swiper .sc_slider_info, .squareButton.accent_2 > a:hover, .squareButton.accent_2 > a:active, .user-popUp .formItems .formList li .sendEnter:hover, .user-popUp .formItems .formList li .sendEnter:active { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } .postSharing > ul > li > a:active, .postSharing > ul > li > span:active, .roundButton > a:active, .nav_pages_parts > span.page_num, .nav_comments > span.current, .itemPageFull .itemDescriptionWrap .toggleButton:active, .footerWidget .sc_video_player:active .sc_video_play_button:after, .sliderLogo .elastislide-wrapper nav span:active:before, pre.code, .sc_tooltip_parent { border-color: ' . $clr . '; } blockquote.sc_quote_style_2 { border-left-color: ' . $clr . '; } ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce .widget_price_filter .price_slider_amount .button, .woocommerce-page .widget_price_filter .price_slider_amount .button { background: ' . $clr . ' !important; } ') . ' ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce .widget_price_filter .price_slider_amount .button:hover, .woocommerce-page .widget_price_filter .price_slider_amount .button:hover, .woocommerce .widget_area aside.widgetWrap.woocommerce .button:hover, .woocommerce-page .widget_area aside.widgetWrap.woocommerce .button:hover { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } ') . ' .sc_image_shape_round:hover figcaption, .post .sc_image_shape_round:hover figcaption { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.6); } '; } // Theme color 3 from customizer $clr = ''; if ($customizer) { $clr = getValueGPC('theme_color_3', ''); } if (empty($clr)) { $clr = get_custom_option('theme_color_3'); } if (!empty($clr)) { $rgb = hex2rgb($clr); $custom_style .= ' .theme_accent_3, .theme_accent_3:before, .widgetWrap ul li.liHover:before, .widgetWrap a:hover, .widgetWrap a:active, .widget_area .widgetWrap ul > li > a:hover, .widget_area .widgetWrap ul > li > a:hover span, .sidebarStyleDark.widget_area a:hover, .sidebarStyleDark.widget_area a:hover span, .widget_area ul.tabs > li.ui-state-active > a, aside.widgetWrap .tagcloud a:hover, aside.widgetWrap .tagcloud a:active, .sidebarStyleDark.widget_area a:hover, .sidebarStyleDark.widget_area .ui-state-active a, .sidebarStyleDark.widget_area .widgetWrap ul li a:hover, .sidebarStyleDark.widget_area .widget_twitter ul li:before, .sidebarStyleDark .wp-calendar tfoot th a:before, .sidebarStyleDark.widget_area table.wp-calendar tfoot a:hover, .sidebarStyleDark.widget_area .widgetWrap ul > li.dropMenu:hover:before, .sidebarStyleDark.widget_area .widgetWrap ul > li.dropMenu.dropOpen:before, .copyWrap .copy .copyright > a, .widget_area article span:before, .twitBlock .sc_slider .swiper-slide a, .twitBlock .sc_slider .swiper-slide .twitterIco:before, .menuSearch .searchSubmit:hover:before, .sidemenu_wrap .sidemenu_area .current-menu-item > a, .sidemenu_wrap .sidemenu_area .current-menu-ancestor > a, .sidemenu_wrap .sidemenu_area > ul li a:hover, .sidemenu_wrap .sidemenu_area > ul li.sfHover > a, .sidemenu_wrap .sidemenu_area .current-menu-item.dropMenu:before, .sidemenu_wrap .sidemenu_area .current-menu-ancestor.dropMenu:before, .sidemenu_wrap .sidemenu_area li.liHover.dropMenu:before, .twitBlock .sc_slider .swiper-slide a, .twitBlockWrap .twitterAuthor a, .sidebarStyleDark.widget_area .widgetWrap a:hover, .sidebarStyleDark.widget_area .widgetWrap .post_info a:hover ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce ul.cart_list li > .amount, .woocommerce ul.product_list_widget li > .amount, .woocommerce-page ul.cart_list li > .amount, .woocommerce-page ul.product_list_widget li > .amount, .woocommerce ul.cart_list li span .amount, .woocommerce ul.product_list_widget li span .amount, .woocommerce-page ul.cart_list li span .amount, .woocommerce-page ul.product_list_widget li span .amount, .woocommerce ul.cart_list li ins .amount, .woocommerce ul.product_list_widget li ins .amount, .woocommerce-page ul.cart_list li ins .amount, .woocommerce-page ul.product_list_widget li ins .amount, .woocommerce .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover, .woocommerce-page .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover, .woocommerce .sidebarStyleDark.widget_area.widget_area aside.widgetWrap.woocommerce .button:hover, .woocommerce-page .sidebarStyleDark.widget_area.widget_area aside.widgetWrap.woocommerce .button:hover, .woocommerce div.product span.price, .woocommerce div.product p.price, .woocommerce #content div.product span.price, .woocommerce #content div.product p.price, .woocommerce-page div.product span.price, .woocommerce-page div.product p.price, .woocommerce-page #content div.product span.price, .woocommerce-page #content div.product p.price, .woocommerce .sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a, .woocommerce-page .sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a, #sidebar_main.sidebarStyleDark .widget_layered_nav ul li.chosen a:before, #sidebar_main.sidebarStyleDark .widget_layered_nav ul li a:hover:before, #sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li a:hover:before, #sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li.chosen a:before, .woocommerce.widget_shopping_cart .total .amount, .woocommerce .widget_shopping_cart .total .amount, .woocommerce-page.widget_shopping_cart .total .amount, .woocommerce-page .widget_shopping_cart .total .amount, .woocommerce ul.products li.product .price > .amount, .woocommerce ul.products li.product .price ins .amount, .woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price ') . ' { color:' . $clr . '; } .sidebarStyleDark.widget_area a:hover span { color:' . $clr . ' !important; } .theme_accent_3_bgc, .theme_accent_3_bgc:before, .sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap, .squareButton.accent_3 > a, .copyWrap .socPage ul li a:hover, .sidebarStyleDark .widget_socials .socPage ul li a:hover, .widget_area .instagram-pics li a:after, .widget_area .flickr_images .flickr_badge_image a:after, .wp-calendar tbody td a:hover, .footerStyleDark .contactFooter .contactShare ul li a:hover, ul > li.share > ul.shareDrop > li > a:hover, .author .socPage ul li a:hover, .sc_team .sc_team_item .sc_team_item_avatar:after, .wp-calendar tbody td a:hover, .wp-calendar tbody td.today > span { background-color: ' . $clr . '; } .theme_accent_3_bg, .theme_accent_3_bg:before { background:' . $clr . '; } .squareButton.accent_3 > a:hover, .squareButton.accent_3 > a:active, .squareButton.gray > a:hover, .squareButton.gray > a:active { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7);} ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce #content table.cart td.actions .button:hover, .woocommerce table.cart td.actions .button:hover, .woocommerce #content table.cart td.actions .button:active, .woocommerce table.cart td.actions .button:active, .woocommerce #content table.cart td.actions .button.checkout-button, .woocommerce table.cart td.actions .button.checkout-button, .woocommerce .shipping-calculator-form .button:hover, .woocommerce .shipping-calculator-form .button:active, .return-to-shop .button:hover, .return-to-shop .button:active, .wc-proceed-to-checkout .checkout-button, .woocommerce div.product form.cart .button, .woocommerce #content div.product form.cart .button, .woocommerce-page div.product form.cart .button, .woocommerce-page #content div.product form.cart .button { background-color:' . $clr . ' !important; } ') . ' ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce #content table.cart td.actions .button.checkout-button:hover, .woocommerce table.cart td.actions .button.checkout-button:hover, .wc-proceed-to-checkout .checkout-button:hover, .woocommerce div.product form.cart .button:hover, .woocommerce #content div.product form.cart .button:hover, .woocommerce-page div.product form.cart .button:hover, .woocommerce-page #content div.product form.cart .button:hover { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } ') . ' ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce ul.products li.product:hover .button, .woocommerce-page ul.products li.product:hover .button { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7); } ') . ' .widgetWrap .tagcloud a:hover, .widgetWrap .tagcloud a:active, .widget_area .tabs_area ul.tabs > li > a:hover, .sidebarStyleDark.widget_area .tagcloud a:hover, .sidebarStyleDark.widget_area .tagcloud a:active, .widget_area ul.tabs > li.ui-state-active > a ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover, .woocommerce-page .sidebarStyleDark.widget_area .widget_price_filter .price_slider_amount .button:hover, .woocommerce .sidebarStyleDark.widget_area aside.widgetWrap.woocommerce .button:hover, .woocommerce-page .sidebarStyleDark.widget_area aside.widgetWrap.woocommerce .button:hover, #sidebar_main.sidebarStyleDark.widget_area .widget_layered_nav ul li a:hover:before, .woocommerce #sidebar_main .sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a:before, .woocommerce-page #sidebar_main.sidebarStyleDark.widget_area .widget_layered_nav ul li.chosen a:before, #sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li.chosen a:before, #sidebar_main.sidebarStyleDark .widget_layered_nav_filters ul li a:hover:before ') . ' { border-color: ' . $clr . '; } .sc_table table tr:hover { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.15); } '; } addThemeCustomStyle(apply_filters('theme_skin_add_styles_inline', $custom_style)); return getThemeCustomStyles(); }
function prepareThemeCustomStyles() { // Custom font $fonts = getThemeFontsList(false); $font = get_custom_option('theme_font'); if (isset($fonts[$font])) { addThemeCustomStyle("\n\t\t\tbody, button, input, select, textarea {\n\t\t\t\tfont-family: '" . $font . "', " . $fonts[$font]['family'] . ";\n\t\t\t}\n\t\t"); } $font = get_custom_option('logo_font'); if (isset($fonts[$font])) { addThemeCustomStyle("\n\t\t\t.logo_text .logo_title {\n\t\t\t\tfont-family: '" . $font . "', " . $fonts[$font]['family'] . ";\n\t\t\t}\n\t\t"); } // Custom menu if (get_theme_option('menu_colored') == 'yes') { $menu_name = 'mainmenu'; if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) { $menu = wp_get_nav_menu_object($locations[$menu_name]); if (is_object($menu) && $menu) { $menu_items = wp_get_nav_menu_items($menu->term_id); $menu_styles = ''; $menu_slider = get_theme_option('menu_slider') == 'yes'; if (count($menu_items) > 0) { foreach ($menu_items as $k => $item) { // if ($item->menu_item_parent==0) { $cur_accent_color = ''; if ($item->type == 'taxonomy' && $item->object == 'category') { $cur_accent_color = getCategoryInheritedProperty($item->object_id, 'theme_accent_color'); } if ((empty($cur_accent_color) || $cur_accent_color == 'default') && isset($item->classes[0]) && !empty($item->classes[0])) { $cur_accent_color = (themerex_substr($item->classes[0], 0, 1) != '#' ? '#' : '') . $item->classes[0]; } if (!empty($cur_accent_color) && $cur_accent_color != 'default') { $menu_styles .= ($item->menu_item_parent == 0 ? "#header_middle_inner #mainmenu li.menu-item-{$item->ID}.current-menu-item > a," : '') . "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} ul {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"; } if ($menu_slider && $item->menu_item_parent == 0) { $menu_styles .= "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over:not(.current-menu-item) > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: transparent !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t"; } // } } } if (!empty($menu_styles)) { addThemeCustomStyle($menu_styles); } } } } // Main menu height $menu_height = (int) get_theme_option('menu_height'); if ($menu_height > 20) { addThemeCustomStyle("\n\t\t\t#mainmenu > li > a {\n\t\t\t\theight: {$menu_height}px !important;\n\t\t\t\tline-height: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#mainmenu > li ul {\n\t\t\t\ttop: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#header_middle {\n\t\t\t\tmin-height: {$menu_height}px !important;\n\t\t\t}\n\t\t"); } // Submenu width $menu_width = (int) get_theme_option('menu_width'); if ($menu_width > 50) { addThemeCustomStyle("\n\t\t\t#mainmenu > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t#mainmenu > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t\t#mainmenu > li:nth-child(n+6) ul li ul {\n\t\t\t\tleft: -" . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t"); } // Custom css from theme options $css = get_custom_option('custom_css'); if (!empty($css)) { addThemeCustomStyle($css); } return getThemeCustomStyles(); }
function themerex_scripts() { global $wp_styles, $concatenate_scripts; $concatenate_scripts = get_theme_option('debug_mode') == 'no' && get_theme_option('compose_scripts') == 'yes'; // Enqueue styles //----------------------------------------------------------------------------------------------------- $fonts = getThemeFontsList(false); $theme_fonts = array(); // Prepare custom fonts if (get_custom_option('typography_custom') == 'yes') { $selectors = array('p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'); foreach ($selectors as $s) { $font = get_custom_option('typography_' . $s . '_font'); if (!empty($font)) { $theme_fonts[$font] = 1; } } } // Prepare current skin fonts $theme_fonts = apply_filters('theme_skin_use_fonts', $theme_fonts); // Link to selected fonts foreach ($theme_fonts as $font => $v) { if (isset($fonts[$font])) { $font_name = ($pos = themerex_strpos($font, ' (')) !== false ? themerex_substr($font, 0, $pos) : $font; $css = !empty($fonts[$font]['css']) ? $fonts[$font]['css'] : 'http://fonts.googleapis.com/css?family=' . (!empty($fonts[$font]['link']) ? $fonts[$font]['link'] : str_replace(' ', '+', $font_name) . ':100,100italic,300,300italic,400,400italic,700,700italic') . '&subset=latin,latin-ext,cyrillic,cyrillic-ext'; themerex_enqueue_style('theme-font-' . str_replace(' ', '-', $font_name), $css, array(), null); } } // Fontello styles must be loaded before main stylesheet themerex_enqueue_style('fontello', themerex_get_file_url('/css/fontello/css/fontello.css'), array(), null); themerex_enqueue_style('animation', themerex_get_file_url('/css/fontello/css/animation.css'), array(), null); // Main stylesheet themerex_enqueue_style('main-style', get_stylesheet_uri(), array(), null); // WooCommerce customizer if (function_exists('is_woocommerce')) { themerex_enqueue_style('woo-style', themerex_get_file_url('/css/woo-style.css'), array('main-style'), null); } // Tribe Events if (class_exists('TribeEvents')) { $wp_styles->done[] = 'tribe-events-custom-jquery-styles'; themerex_enqueue_style('tribe-style', themerex_get_file_url('/css/tribe-style.css'), array('main-style'), null); } // BuddyPress customizer if (class_exists('BuddyPress')) { themerex_enqueue_style('buddy-style', themerex_get_file_url('/css/buddy-style.css'), array('main-style'), null); } // BB Press customizer if (class_exists('bbPress')) { themerex_enqueue_style('bbpress-style', themerex_get_file_url('/css/bbpress-style.css'), array('main-style'), null); } if (get_theme_option('debug_mode') == 'no' && get_theme_option('packed_scripts') == 'yes' && file_exists(themerex_get_file_dir('/css/__packed.css'))) { // Load packed styles themerex_enqueue_style('packed-styles', themerex_get_file_url('/css/__packed.css'), array('main-style'), null); } else { // Magnific popup themerex_enqueue_style('magnific-style', themerex_get_file_url('/js/magnific-popup/magnific-popup.css'), array(), null); // Swiper slider themerex_enqueue_style('swiperslider-style', themerex_get_file_url('/js/swiper/idangerous.swiper.css'), array(), null); themerex_enqueue_style('swiperslider-scrollbar-style', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar.css'), array(), null); // Messages themerex_enqueue_style('messages-style', themerex_get_file_url('/js/messages/_messages.css'), array('main-style'), null); // Additional hovers for portfolio themerex_enqueue_style('ihover-styles', themerex_get_file_url('/css/ihover.css'), array(), null); // Shortcodes themerex_enqueue_style('shortcodes', themerex_get_file_url('/shortcodes/shortcodes.css'), array('main-style'), null); } // Main slider if (get_custom_option('slider_show') == 'yes') { themerex_enqueue_style('main-slider-style', themerex_get_file_url('/css/slider-style.css'), array(), null); } // Theme skin stylesheet do_action('theme_skin_add_stylesheets'); // Custom fonts and colors if (get_custom_option('theme_skin') != '') { wp_add_inline_style('theme-skin', prepareThemeCustomStyles()); } else { if (get_theme_option('debug_mode') == 'no' && get_theme_option('packed_scripts') == 'yes' && file_exists(themerex_get_file_dir('/css/__packed.css'))) { wp_add_inline_style('packed-styles', prepareThemeCustomStyles()); } else { wp_add_inline_style('shortcodes', prepareThemeCustomStyles()); } } // Responsive if (get_theme_option('responsive_layouts') == 'yes') { themerex_enqueue_style('responsive', themerex_get_file_url('/css/responsive.css'), array('main-style'), null); do_action('theme_skin_add_responsive'); if (get_custom_option('theme_skin') != '') { $css = apply_filters('theme_skin_add_responsive_inline', ''); if (!empty($css)) { wp_add_inline_style('responsive', $css); } } } // Enqueue scripts //---------------------------------------------------------------------------------------------------------------------------- themerex_enqueue_script('jquery', false, array(), null, true); themerex_enqueue_script('jquery-ui-core', false, array(), null, true); themerex_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true); themerex_enqueue_script('jquery-effects-core', false, array(), null, true); themerex_enqueue_script('jquery-effects-fade', false, array('jquery', 'jquery-effects-core'), null, true); if (get_custom_option('show_top_page') == 'yes' && get_custom_option('show_sidebar_top') == 'yes') { themerex_enqueue_script('jquery-effects-drop', false, array('jquery', 'jquery-effects-drop'), null, true); } if (get_theme_option('debug_mode') == 'no' && get_theme_option('packed_scripts') == 'yes' && file_exists(themerex_get_file_dir('/js/__packed.js'))) { // Load packed theme scripts themerex_enqueue_script('packed-scripts', themerex_get_file_url('/js/__packed.js'), array('jquery'), null, true); } else { // Load separate theme scripts themerex_enqueue_script('jquery-cookie', themerex_get_file_url('/js/jquery.cookie.js'), array('jquery'), null, true); themerex_enqueue_script('jquery-easing', themerex_get_file_url('/js/jquery.easing.js'), array('jquery'), null, true); themerex_enqueue_script('jquery-autosize', themerex_get_file_url('/js/jquery.autosize.js'), array('jquery'), null, true); themerex_enqueue_script('superfish', themerex_get_file_url('/js/superfish.min.js'), array('jquery'), null, true); themerex_enqueue_script('magnific', themerex_get_file_url('/js/magnific-popup/jquery.magnific-popup.min.js'), array('jquery'), null, true); themerex_enqueue_script('swiperslider', themerex_get_file_url('/js/swiper/idangerous.swiper-2.7.js'), array('jquery'), null, true); themerex_enqueue_script('swiperslider-scrollbar', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar-2.4.js'), array('jquery'), null, true); themerex_enqueue_script('flexslider', themerex_get_file_url('/js/jquery.flexslider.min.js'), array('jquery'), null, true); themerex_enqueue_script('smooth-scroll', themerex_get_file_url('/js/SmoothScroll.min.js'), array('jquery'), null, true); themerex_enqueue_script('hover-dir', themerex_get_file_url('/js/hover/jquery.hoverdir.js'), array(), null, true); themerex_enqueue_script('hover-intent', themerex_get_file_url('/js/hover/hoverIntent.js'), array(), null, true); themerex_enqueue_script('messages', themerex_get_file_url('/js/messages/_messages.js'), array(), null, true); themerex_enqueue_script('diagram-chart', themerex_get_file_url('/js/diagram/chart.min.js'), array(), null, true); themerex_enqueue_script('diagram-raphael', themerex_get_file_url('/js/diagram/diagram.raphael.min.js'), array(), 'no-compose', true); themerex_enqueue_script('shortcodes-init', themerex_get_file_url('/shortcodes/shortcodes_init.js'), array(), null, true); themerex_enqueue_script('_utils', themerex_get_file_url('/js/_utils.js'), array(), null, true); themerex_enqueue_script('_front', themerex_get_file_url('/js/_front.js'), array(), null, true); themerex_enqueue_script('_reviews', themerex_get_file_url('/js/_reviews.js'), array('jquery'), null, true); } if (file_exists(themerex_get_file_dir('/js/chopslider/jquery.id.chopslider-2.0.0.free.min.js'))) { themerex_enqueue_script('chopslider', themerex_get_file_url('/js/chopslider/jquery.id.chopslider-2.0.0.free.min.js'), array('jquery'), null, true); themerex_enqueue_script('cstransitions', themerex_get_file_url('/js/chopslider/jquery.id.cstransitions-1.0.min.js'), array('jquery'), null, true); } // Load Isotope separately (don't included in the __packed) - Visual Composer (new version) reload isotope themerex_enqueue_script('isotope', themerex_get_file_url('/js/jquery.isotope.min.js'), array(), null, true); // Load PrettyPhoto if it selected in Theme Options if (get_theme_option('popup_engine') == 'pretty') { themerex_enqueue_style('prettyphoto-style', themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null); themerex_enqueue_script('prettyphoto', themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'), array('jquery'), 'no-compose', true); } // Media elements library if (get_theme_option('use_mediaelement') == 'yes') { if (floatval(get_bloginfo('version')) < "3.6") { themerex_enqueue_style('mediaplayer-style', themerex_get_file_url('/js/mediaplayer/mediaplayer.css'), array(), null); themerex_enqueue_script('mediaplayer', themerex_get_file_url('/js/mediaplayer/mediaelement.min.js'), array(), null, true); } else { wp_enqueue_style('mediaelement'); wp_enqueue_style('wp-mediaelement'); wp_enqueue_script('mediaelement'); wp_enqueue_script('wp-mediaelement'); } } else { global $wp_scripts; $wp_scripts->done[] = 'mediaelement'; $wp_scripts->done[] = 'wp-mediaelement'; $wp_styles->done[] = 'mediaelement'; $wp_styles->done[] = 'wp-mediaelement'; } // Video background if (get_custom_option('show_video_bg') == 'yes' && get_custom_option('video_bg_youtube_code') != '') { themerex_enqueue_script('video-bg', themerex_get_file_url('/js/jquery.tubular.1.0.js'), array('jquery'), null, true); } // Google map if (get_custom_option('googlemap_show') == 'yes') { themerex_enqueue_script('googlemap', 'http://maps.google.com/maps/api/js?sensor=false', array(), null, true); themerex_enqueue_script('googlemap_init', themerex_get_file_url('/js/_googlemap_init.js'), array(), null, true); } // Sound effects on mouse hover if (get_custom_option('sound_enable') == 'yes') { themerex_enqueue_script('sound-manager', themerex_get_file_url('/js/sounds/soundmanager2-nodebug-js.min.js'), array('jquery'), null, true); } // Social share buttons if (is_singular() && get_theme_option('show_share') == 'yes') { themerex_enqueue_script('social-share', themerex_get_file_url('/js/social/social-share.js'), array(), null, true); } // Login form if (get_custom_option('show_login') == 'yes') { themerex_enqueue_script('form-login', themerex_get_file_url('/js/_form_login.js'), array(), null, true); } // Comments if (is_singular() && comments_open() && get_option('thread_comments')) { themerex_enqueue_script('comment-reply', false, array(), null, true); themerex_enqueue_script('form-comments', themerex_get_file_url('/js/_form_comments.js'), array(), null, true); } // Right panel if (get_theme_option('show_right_panel') == 'yes') { themerex_enqueue_script('jquery-ui-draggable', false, array('jquery', 'jquery-ui-core'), null, true); themerex_enqueue_script('jquery-ui-sortable', false, array('jquery', 'jquery-ui-core'), null, true); if (get_theme_option('show_theme_customizer') == 'yes') { themerex_enqueue_script('_customizer', themerex_get_file_url('/js/_customizer.js'), array(), null, true); } } // Theme skin script do_action('theme_skin_add_scripts'); }
function prepareThemeCustomStyles() { // Custom font $fonts = getThemeFontsList(false); $theme_font = get_custom_option('theme_font'); $header_font = get_custom_option('header_font'); $theme_color = get_custom_option('theme_color'); $theme_accent_color = get_custom_option('theme_accent_color'); $background_color = get_custom_option('body_bg_color'); $logo_widht = get_custom_option('logo_block_width'); //theme fonts if (isset($fonts[$theme_font])) { addThemeCustomStyle(' body, button, input, select, textarea { font-family: \'' . $theme_font . '\', ' . $fonts[$theme_font]['family'] . '; }'); } // heading fonts if (isset($fonts[$header_font])) { addThemeCustomStyle((get_theme_option('show_theme_customizer') == 'yes' ? '.custom_options .co_label, .custom_options .co_header span, ' : '') . 'h1, h2, h3, h4, h5, h6, .h1,.h2,.h3,.h4,.h5,.h6, #header, .logoHeader, .subTitle, .widget_calendar table caption, .sc_button, .widget_calendar, .widget_search .searchFormWrap .searchSubmit, .sc_video_frame .sc_video_frame_info_wrap .sc_video_frame_info .sc_video_frame_player_title, .widget_popular_posts .ui-tabs-nav li a, .format-quote .sc_quote, .sc_tabs ul.sc_tabs_titles li a, .sc_testimonials_item_quote, .sc_testimonials_item_user, .sc_price_item, .sc_pricing_table .sc_pricing_item ul li.sc_pricing_title, .sc_skills_arc .sc_skills_legend li, .sc_skills_counter, .sc_countdown_flip .flip-clock-wrapper ul, .sc_countdown_round .countdown-amount{ font-family: \'' . $header_font . '\',\'' . $theme_font . '\', ' . $fonts[$header_font]['family'] . '; }'); } //Custom heading H1-H6 $hCounter = 1; while ($hCounter <= 6) { $heading_array = array(); $heading_array[] = 'letter-spacing:' . (get_custom_option('header_font_spacing_h' . $hCounter) != '' ? get_custom_option('header_font_spacing_h' . $hCounter) : 0) . 'px;'; $heading_array[] = 'font-size:' . get_custom_option('header_font_size_h' . $hCounter) . 'px;'; $heading_array[] = get_custom_option('header_font_uppercase_h' . $hCounter) == 'yes' ? 'text-transform: uppercase;' : 'text-transform: capitalize;'; $heading_array[] = 'font-style:' . get_custom_option('header_font_style_h' . $hCounter) . ';'; $heading_array[] = 'font-weight:' . get_custom_option('header_font_weight_h' . $hCounter) . ';'; $heading_array[] = 'line-height:' . round(get_custom_option('header_font_size_h' . $hCounter) * 1.2) . 'px;'; $heading_array[] = 'margin: 0 0 ' . round(get_custom_option('header_font_size_h' . $hCounter) / 2) . 'px 0;'; $extra_h2 = $hCounter == 2 ? ', .sc_video_frame .sc_video_frame_info_wrap .sc_video_frame_info .sc_video_frame_player_title' : ''; addThemeCustomStyle('h' . $hCounter . $extra_h2 . '{ ' . (!empty($heading_array) ? join(' ', $heading_array) : '') . ' }'); $hCounter++; } //Custom logo style if (get_custom_option('logo_type') == 'logoImage') { //images style addThemeCustomStyle(' .wrap.logoImageStyle .logoHeader{ width:' . $logo_widht . 'px; } .wrap.logoImageStyle .logo_bg_size{ border-width: 45px ' . $logo_widht / 2 . 'px 0 ' . $logo_widht / 2 . 'px; } .menu-logo{ width:' . $logo_widht . 'px; }'); } else { //logo text style $style_logo_array = array(); $style_logo_array[] = 'font-family:"' . get_custom_option('logo_font') . '";'; $style_logo_array[] = 'font-style:' . get_custom_option('logo_font_style') . ';'; $style_logo_array[] = 'font-weight:' . get_custom_option('logo_font_weight') . ';'; $style_logo_array[] = 'font-size:' . get_custom_option('logo_font_size') . 'px;'; $style_logo_array[] = 'line-height:' . get_custom_option('logo_font_size') . 'px;'; addThemeCustomStyle(' .wrap.logoTextStyle .logoHeader{ width:' . $logo_widht . 'px; ' . (!empty($style_logo_array) ? join(' ', $style_logo_array) : '') . ' } .wrap.logoTextStyle .logo_bg_size{ border-width: 45px ' . $logo_widht / 2 . 'px 0 ' . $logo_widht / 2 . 'px; } .menu-logo{ width:' . $logo_widht . 'px; } .wrapTopMenu .topMenu .logo a{' . (!empty($style_logo_array) ? join(' ', $style_logo_array) : '') . '}'); } //background custom style if (get_custom_option('body_style') == 'boxed') { $style_custom_array = array(); get_custom_option('bg_color') != '' ? $style_custom_array[] = get_custom_option('bg_color') : ''; if (get_custom_option('bg_custom_image') != '') { $style_custom_array[] = 'url(' . get_custom_option('bg_custom_image') . ')'; $style_custom_array[] = get_custom_option('bg_custom_image_position_x'); $style_custom_array[] = get_custom_option('bg_custom_image_position_y'); $style_custom_array[] = get_custom_option('bg_custom_image_repeat'); $style_custom_array[] = get_custom_option('bg_custom_image_attachment'); } addThemeCustomStyle(' .wrap{ background-color: ' . (!empty($style_custom_array) ? join(' ', $style_custom_array) : '') . ';}'); addThemeCustomStyle(' .bodyStyleBoxed .wrapBox{background-color: ' . get_custom_option('body_bg_color') . ';}'); } if ($theme_color == '') { $theme_color = '#5ea281'; } if ($theme_accent_color == '') { $theme_accent_color = '#a7d692'; } //theme color if ($theme_color != '') { addThemeCustomStyle(' /*color*/ a, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, .h1 a:hover,.h2 a:hover,.h3 a:hover,.h4 a:hover,.h5 a:hover,.h6 a:hover, .logoHeader a, .subTitle, #header .rightTop a, .menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li.sfHover > a, .menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li a:hover, .menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li.menu-item-has-children:after, .widget_twitter ul > li:before, .widget_twitter ul > li a, .widget_rss ul li a, .widget_trex_post .ui-tabs-nav li a, .nav_pages ul li a:hover, .postFormatIcon:before, .comments .commentModeration .icon, .sc_button.sc_button_skin_dark.sc_button_style_line:hover, .sc_button.sc_button_skin_global.sc_button_style_line, .sc_quote, blockquote, .sc_toggl.sc_toggl_style_1 .sc_toggl_item .sc_toggl_title:hover, .sc_toggl.sc_toggl_style_2 .sc_toggl_item .sc_toggl_title:hover, .sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap, .sc_highlight.sc_highlight_style_2 , .sc_tabs.sc_tabs_style_2 ul li a, .sc_tabs.sc_tabs_style_1 ul li.ui-tabs-active a, .sc_testimonials .sc_testimonials_item_author .sc_testimonials_item_user, ul.sc_list.sc_list_style_iconed li:before, ul.sc_list.sc_list_style_iconed.sc_list_marked_yes li, ul.sc_list.sc_list_style_iconed li.sc_list_marked_yes , .sc_button.sc_button_skin_global.sc_button_style_line, .sc_quote, blockquote, .sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap, .sc_team .sc_team_item:hover .sc_team_item_title, .sc_team .sc_team_item:hover .sc_team_item_position, .sc_countdown.sc_countdown_round .sc_countdown_counter .countdown-section .countdown-amount, .sc_countdown .flip-clock-wrapper ul li a div div.inn, .isotopeWrap .fullItemWrap .fullItemClosed:hover, .postInfo .postReview .revBlock .ratingValue, .reviewBlock .reviewTab .revTotalWrap .revTotal .revRating, .reviewBlock .reviewTab .revWrap .revBlock .ratingValue, .sc_countdown.sc_countdown_round .sc_countdown_counter .countdown-section:after, .isotopeWrap .isotopeItem .isotopeContent .isotopeTitle a:hover, .sc_toggl.sc_toggl_style_4.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:before, .sc_toggl.sc_toggl_style_4 .sc_toggl_item.sc_active .sc_toggl_title, .sc_table.sc_table_style_1 table tbody tr td.first, .sc_table.sc_table_style_1 table thead tr th.first,.sc_skills_counter .sc_skills_item.sc_skills_style_1 .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_2 .sc_skills_count, .sc_quote.sc_quote_style2 .icon-quote, blockquote.sc_quote_style2 .icon-quote, .author .authorInfo .authorTitle a, .comments .commentInfo .commAuthor a, .comments .commentInfo .commReply a, .comments .commentInfo .commAuthor, .sc_slider_swiper .slides li .sc_slider_info a:hover, .sc_testimonials .sc_testimonials_item_author .sc_testimonials_item_user, .sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_controls .slider-control-nav li a:before, ul.sc_list.sc_list_style_iconed li:before, ul.sc_list.sc_list_style_iconed.sc_list_marked_yes li, ul.sc_list.sc_list_style_iconed li.sc_list_marked_yes, .sc_chat .sc_quote_title, .sc_aside_title, .post.type-post.format-link a p, .sc_button.sc_button_skin_dark.sc_button_style_line:hover, .sc_button.sc_button_skin_global.sc_button_style_line, .sc_quote, blockquote, .sc_quote .sc_quote_title, blockquote .sc_quote_title, .sc_toggl.sc_toggl_style_1 .sc_toggl_item .sc_toggl_title:hover, .sc_toggl.sc_toggl_style_1 .sc_toggl_item .sc_toggl_title:hover a, .sc_toggl.sc_toggl_style_2 .sc_toggl_item .sc_toggl_title:hover, .sc_toggl.sc_toggl_style_4 .sc_toggl_item .sc_toggl_title:hover, .sc_toggl.sc_toggl_style_4 .sc_toggl_item .sc_toggl_title:hover a, .sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap, .sc_countdown.sc_countdown_round .sc_countdown_counter .countdown-section .countdown-amount, .sc_highlight.sc_highlight_style_2, .sc_highlight.sc_highlight_style_2 a, .sc_pricing_table:not(.sc_pricing_table_blue).sc_pricing_table_style_1 .sc_pricing_price, .sc_pricing_table:not(.sc_pricing_table_blue).sc_pricing_table_style_2 .sc_pricing_price, .sc_pricing_table:not(.sc_pricing_table_blue).sc_pricing_table_style_3 .sc_button.sc_button_skin_global, .sc_tabs.sc_tabs_style_2 ul li a, .logoHeader a, .subTitle, .wrapTopMenu .topMenu > ul > li > a:hover, .hideMenuDisplay .usermenuArea > ul > li > a, .menuStyle1 #header ul > li > ul li.sfHover > a, .menuStyle1 #header ul > li > ul li a:hover, .menuStyle2 #header ul > li > ul li.sfHover > a, .menuStyle2 #header ul > li > ul li a:hover, .widgetWrap ul > li, .widget_twitter ul > li:before, .widget_twitter ul > li a, .widget_rss ul li a, .widget_trex_post .ui-tabs-nav li a, .revItem .revBlock .ratingValue, .reviewBlock .reviewTab .revWrap .revBlock .ratingValue, .reviewBlock .reviewTab .revTotalWrap .revTotal .revRating, .nav_pages ul li a:hover, .hoverUnderline a:hover, .postFormatIcon:before, .page404 .title404, .comments .commentModeration .icon, .isotopeWrap .isotopeItem .isotopeContent .isotopeTitle a:hover, .isotopeWrap .fullItemWrap .fullItemClosed:hover, .isotopeWrap .fullItemWrap .isotopeNav:hover, .sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_title, .sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_price, .sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_price, li.sc_list_item.sc_list_marked_yes, .isotopeWrap .isotopeItem .isotopeContent .isotopeCats a:hover, .sc_contact_info .sc_contact_info_name, .woocommerce .star-rating:before, .woocommerce .star-rating:before, .woocommerce .star-rating span, .woocommerce .star-rating span, .woocommerce #reviews #comments ol.commentlist li .comment-text p.meta strong , table.shop_table.cart th, .wrapTopMenu .topMenu div > ul > li > a:hover, .sideBarWide .sc_button.sc_button_skin_dark.sc_button_style_bg:hover, .sideBarWide .postSharing .postSpan .revInfo:hover, .sc_required, q, .widget_trex_post .post_item .post_wrapper .post_title a:hover , .widgetWrap ul > li a:hover, .sideBar a:hover{ color: ' . $theme_color . '; } .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color: ' . $theme_color . ' !important; } input[type="search"]::-webkit-search-cancel-button {color: ' . $theme_color . ';} /*border*/ .isotopeWrap .isotopeItem .isotopeRating{ border-color: ' . $theme_color . ' transparent;} .woocommerce ul.products li.product a:hover img {border-bottom: 2px solid ' . $theme_color . ' !important;} .nav_pages ul li a:hover, .wrapTopMenu .topMenu > ul > li > ul, .menuStyle1 .wrapTopMenu .topMenu > ul > li > ul > li ul, .menuStyle2 .wrapTopMenu .topMenu > ul > li > ul > li ul, .widget_trex_post .ui-tabs-nav li a, .sc_button.sc_button_skin_dark.sc_button_style_line:hover, .sc_button.sc_button_skin_global.sc_button_style_line, .sc_tooltip, .sc_tooltip .sc_tooltip_item, .sc_tabs.sc_tabs_style_2 ul li a, .sc_tabs.sc_tabs_style_2 ul li + li a, .sc_tabs.sc_tabs_style_2 .sc_tabs_array, .sc_banner:before, .sc_button.sc_button_skin_global.sc_button_style_line, .sc_banner:before, .sc_button.sc_button_skin_dark.sc_button_style_line:hover, .sc_button.sc_button_skin_global.sc_button_style_line, .sc_tabs.sc_tabs_style_2 ul li a, .sc_tabs.sc_tabs_style_2 ul li + li a, .sc_tabs.sc_tabs_style_2 .sc_tabs_array,, .wrapTopMenu .topMenu > ul > li > ul, .usermenuArea > ul > li > ul, .menuStyle2 #header ul > li > ul > li ul, .widget_calendar table tbody td#today span, .widget_trex_post .ui-tabs-nav li a, .nav_pages ul li a:hover, .sc_tabs.sc_tabs_style_2 ul.sc_tabs_titles li.ui-tabs-active a{ border-color: ' . $theme_color . '; } .sc_tooltip .sc_tooltip_item:before, .logoStyleBG .logoHeader .logo_bg_size, .isotopeWrap .isotopeItem .isotopeRating:after, .sc_slider_swiper .sc_slider_info .sc_slider_reviews_short:after, .sc_tooltip .sc_tooltip_item:before, .logoStyleBG .logoHeader .logo_bg_size { border-color: ' . $theme_color . ' transparent transparent transparent; } .widget_recent_reviews .post_item .post_wrapper .post_info .post_review:after{ border-color: transparent transparent transparent ' . $theme_color . '; } .buttonScrollUp { border-color: transparent transparent ' . $theme_color . ' transparent; } .sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_author_show .sc_testimonials_item_quote:after { border-left-color: ' . $theme_color . '; } .widget_calendar table tbody td#today { outline: 1px solid ' . $theme_color . '; } .sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_author_show .sc_testimonials_item_quote:after{ border-left-color: ' . $theme_color . '; } .sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_title, .sc_tooltip{border-bottom-color: ' . $theme_color . ';} .postInfo .stickyPost:after{ border-color: transparent transparent transparent ' . $theme_color . '; } /*background*/ #header .openTopMenu, .menuStyle1 .wrapTopMenu .topMenu > ul > li > ul > li ul, .menuStyle2 .wrapTopMenu .topMenu > ul > li > ul li a:before, .widget_calendar table tbody td a:before, .widget_calendar table tbody td a:hover, .widget_tag_cloud a:hover, .widget_trex_post .ui-tabs-nav li.ui-state-active a, .nav_pages ul li span, .sc_button.sc_button_skin_global.sc_button_style_bg, .sc_video_frame.sc_video_active:before, .sc_toggl.sc_toggl_style_2.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:after, .sc_toggl.sc_toggl_style_3 .sc_toggl_item .sc_toggl_title , .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .sc_tooltip .sc_tooltip_item, .sc_table.sc_table_style_2 table thead tr th, .sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul li.sc_pricing_title, .sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_title, .sc_scroll .sc_scroll_bar .swiper-scrollbar-drag, .sc_skills_bar .sc_skills_item .sc_skills_count , .sc_skills_bar.sc_skills_vertical .sc_skills_item .sc_skills_count , .sc_icon.sc_icon_box, .sc_icon.sc_icon_box_circle, .sc_icon.sc_icon_box_square, .sc_slider.sc_slider_dark .slider-pagination-nav span.swiper-active-switch , .sc_slider.sc_slider_light .slider-pagination-nav span.swiper-active-switch, .sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_quote, .sc_testimonials.sc_testimonials_style_2 .sc_testimonials_title:after, .sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_pagination .slider-pagination-nav span.swiper-active-switch, .sc_button.sc_button_skin_global.sc_button_style_bg, .sc_video_frame.sc_video_active:before, .sc_loader_show:before, .sc_toggl.sc_toggl_style_2.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:after , .sc_toggl.sc_toggl_style_3 .sc_toggl_item .sc_toggl_title , .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .postInfo .postReview .revBlock.revStyle100 .ratingValue, .reviewBlock .reviewTab .revWrap .revBlock.revStyle100 .ratingValue, .post-password-required .post-password-form input[type="submit"]:hover, .sc_button.sc_button_skin_dark.sc_button_style_bg:hover, .sc_button.sc_button_skin_global.sc_button_style_bg, .sc_skills_counter .sc_skills_item.sc_skills_style_3 .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_count, .isotopeFiltr ul li.active a, .sc_slider.sc_slider_dark .slider-pagination-nav span.swiper-active-switch, .sc_slider.sc_slider_light .slider-pagination-nav span.swiper-active-switch, .sc_slider_swiper .sc_slider_info .sc_slider_reviews_short span.rInfo, .sc_testimonials.sc_testimonials_style_1 .sc_testimonials_item_quote, .sc_testimonials.sc_testimonials_style_2 .sc_testimonials_title:after, .sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_pagination .slider-pagination-nav span.swiper-active-switch, .sc_video_frame.sc_video_active:before, .sc_button.sc_button_skin_global.sc_button_style_bg, .sc_button.sc_button_style_regular:hover, .sc_toggl.sc_toggl_style_2.sc_toggl_icon_show .sc_toggl_item .sc_toggl_title:after, .sc_toggl.sc_toggl_style_3 .sc_toggl_item .sc_toggl_title, .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .sc_tooltip .sc_tooltip_item, .sc_table.sc_table_style_2 table thead tr th, .sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul li.sc_pricing_title, .sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul, .sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_title, .sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul, .sc_scroll .sc_scroll_bar .swiper-scrollbar-drag, .sc_skills_bar .sc_skills_item .sc_skills_count, .sc_skills_bar.sc_skills_vertical .sc_skills_item .sc_skills_count, .sc_icon.sc_icon_box, .sc_icon.sc_icon_box_square, .sc_icon.sc_icon_box_circle, .sc_tabs.sc_tabs_style_2 ul.sc_tabs_titles li.ui-tabs-active a, #header .openTopMenu, .openMobileMenu, .hideMenuDisplay .usermenuArea > ul > li > a:before, .menuStyle2 #header ul > li > ul li a:before, .widget_calendar table tbody td a:before, .widget_calendar table tbody td a:hover, .widget_tag_cloud a:hover, .widget_recent_reviews .post_item .post_wrapper .post_info .post_review, .widget_trex_post .ui-tabs-nav li.ui-state-active a, .postInfo .stickyPost .postSticky, .revItem .revBlock.revStyle100 .ratingValue, .reviewBlock .reviewTab .revWrap .revBlock.revStyle100 .ratingValue, .nav_pages ul li span, .subCategory, .sc_highlight.sc_highlight_style_1, .sc_tooltip .sc_tooltip_item, .widget_search .searchFormWrap .searchSubmit input, #header .usermenuArea ul.usermenuList .usermenuCart .widget_area p.buttons a:hover{ background-color: ' . $theme_color . '; } .woocommerce ul.products li.product a.button:hover, .woocommerce div.product form.cart .button:hover, .woocommerce input.button:hover{ background-color: ' . $theme_color . ' !important;} .sc_button.sc_button_style_regular:hover, .woocommerce #review_form #respond .form-submit input:hover{ background-color: ' . $theme_color . ' !important; } ::selection { color: #fff; background-color:' . $theme_color . ';} ::-moz-selection { color: #fff; background-color:' . $theme_color . ';}'); } //theme accent color if ($theme_accent_color != '') { addThemeCustomStyle(' .sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul, .sc_pricing_table.sc_pricing_table_style_1 .sc_pricing_item ul li.sc_pricing_title, .sc_pricing_table.sc_pricing_table_style_2 .sc_button.sc_button_skin_global.sc_button_style_bg , .sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul, .sc_skills_bar .sc_skills_item , .sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_info, .sc_tabs.sc_tabs_style_3 ul.sc_tabs_titles li, .sc_testimonials.sc_testimonials_style_2 .sc_slider_swiper.sc_slider_pagination .slider-pagination-nav span, footer.footer_style_green .widget_tag_cloud a, .widget_tag_cloud a, .isotopeFiltr ul li a , .themeDark .isotopeFiltr ul li.active a, .isotopeFiltr ul li a:hover{ background-color: ' . $theme_accent_color . ';} .woocommerce ul.products li.product a.button, .woocommerce div.product form.cart .button, .woocommerce #content .quantity .plus:hover, .woocommerce #content .quantity .minus:hover, .woocommerce input.button { background-color: ' . $theme_accent_color . ' !important; background: ' . $theme_accent_color . ' !important;} .sc_pricing_table.sc_pricing_table_style_2 .sc_pricing_item ul li.sc_pricing_title, .sc_pricing_table.sc_pricing_table_style_3 .sc_pricing_item ul li.sc_pricing_title{border-bottom-color: ' . $theme_accent_color . ';} .sc_team .sc_team_item .sc_team_item_border, .woocommerce .quantity input.qty, .woocommerce #content .quantity input.qty, .woocommerce .quantity input.qty, .woocommerce #content .quantity input.qty, .woocommerce #content .quantity .plus, .woocommerce #content .quantity .minus, .woocommerce .quantity .plus, .woocommerce .quantity .minus{border-color: ' . $theme_accent_color . ';} .sc_team .sc_team_item .sc_team_item_socials ul li a:hover span, footer.footer_style_green .widgetWrap ul > li a, .sc_icons_widget .sc_icons_item{ color: ' . $theme_accent_color . '; } .woocommerce #content div.product div.images a {border: 2px solid ' . $theme_accent_color . ' !important;} '); } if ($background_color != '') { addThemeCustomStyle(' body{ background-color: ' . $background_color . '; } .rsUni, .rsUni .rsOverflow, .rsUni .rsSlide, .rsUni .rsVideoFrameHolder, .rsUni .rsThumbs{ background-color: ' . $background_color . ' !important; } .woocommerce #content div.product .woocommerce-tabs ul.tabs li.active{border-bottom: 1px solid ' . $background_color . '; } '); } // Custom menu if (get_theme_option('menu_colored') == 'yes') { $menu_name = 'mainmenu'; if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) { $menu = wp_get_nav_menu_object($locations[$menu_name]); if (is_object($menu) && $menu) { $menu_items = wp_get_nav_menu_items($menu->term_id); $menu_styles = ''; $menu_slider = get_theme_option('menu_slider') == 'yes'; if (count($menu_items) > 0) { foreach ($menu_items as $k => $item) { // if ($item->menu_item_parent==0) { $cur_accent_color = ''; if ($item->type == 'taxonomy' && $item->object == 'category') { $cur_accent_color = get_category_inherited_property($item->object_id, 'theme_accent_color'); } if ((empty($cur_accent_color) || is_inherit_option($cur_accent_color)) && isset($item->classes[0]) && !empty($item->classes[0])) { $cur_accent_color = (themerex_substr($item->classes[0], 0, 1) != '#' ? '#' : '') . $item->classes[0]; } if (!empty($cur_accent_color) && !is_inherit_option($cur_accent_color)) { $menu_styles .= ($item->menu_item_parent == 0 ? "#header_middle_inner #mainmenu li.menu-item-{$item->ID}.current-menu-item > a," : '') . "\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} > a:hover,\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.sfHover > a { background-color: {$cur_accent_color} !important; }\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} ul { background-color: {$cur_accent_color} !important; } "; } if ($menu_slider && $item->menu_item_parent == 0) { $menu_styles .= "\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over:not(.current-menu-item) > a:hover,\r\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over.sfHover > a { background-color: transparent !important; } "; } // } } } if (!empty($menu_styles)) { addThemeCustomStyle($menu_styles); } } } } //main menu responsive width // $menu_responsive = get_theme_option('responsive_menu_width') . 'px'; addThemeCustomStyle("\r\n\t\t@media (min-width: {$menu_responsive}) { \r\n\t\t\t.logo_center .logoHeader, .logo_center #mainmenu{display: none;}\r\n\t\t}\r\n\r\n\t\t@media (max-width: {$menu_responsive}) { \r\n\t\t\t.openMobileMenu{ display: block; }\r\n\t\t\t.menuStyleFixed #header.fixedTopMenuShow .menuFixedWrap{ position: static !important; }\r\n\t\t\t.wrapTopMenu .topMenu { width: 100%; }\r\n\t\t\t.wrapTopMenu .topMenu > ul{ display: none; clear:both; }\r\n\t\t\t.wrapTopMenu .topMenu > ul li{ display: block; clear:both; border-top: 1px solid #ddd; padding: 10px 0; text-align: center !important;}\r\n\t\t\t.wrapTopMenu .topMenu > ul li a{ }\r\n\t\t\t.wrapTopMenu .topMenu > ul li ul{ position: static !important; width:auto !important; margin:0 !important; border: none !important; text-align:center; background-color: transparent !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul:before{ display:none;}\r\n\t\t\t.openTopMenu{ display: none; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li.sfHover > a:before,\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > a{ line-height: 30px !important; opacity:1 !important; height: auto !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > a:hover:before{ left:10px; right:10px; }\r\n\t\t\t.hideMenuDisplay .wrapTopMenu{ min-height: 45px !important; height: auto !important;}\r\n\t\t\t.hideMenuDisplay .usermenuArea > ul li a{ color: #fff !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul:after{content: none;}\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul li:last-child {padding-bottom: 0 !important; }\r\n\t\t\t.wrapTopMenu .topMenu > ul > li > ul li.menu-item-has-children {padding: 10px 0; }\r\n\t\t\t.menuStyle1 #header ul > li > ul > li ul:before, .menuStyle1 #header ul > li > ul > li ul:after, .menuStyle1 #header ul > li > ul li.menu-item-has-children:after{display: none;}\r\n\t\t\t.logo_center .topMenu .newMenu, .logo_center .topMenu .logo {display: none !important;}\r\n\t\t\t.wrap.logoImageStyle .logoHeader {padding-top: 20px;}\r\n\t\t}\r\n\t"); // Main menu height $menu_height = (int) get_theme_option('menu_height'); if ($menu_height > 20) { addThemeCustomStyle("\r\n\t\t\t#mainmenu > li > a { height: {$menu_height}px !important; line-height: {$menu_height}px !important; }\r\n\t\t\t#mainmenu > li ul { top: {$menu_height}px !important; }\r\n\t\t\t#header_middle { min-height: {$menu_height}px !important; } "); } // Submenu width $menu_width = (int) get_custom_option('menu_width'); if ($menu_width > 50) { addThemeCustomStyle(' .wrapTopMenu .topMenu > ul > li > ul { width: ' . $menu_width . 'px; margin: 0 0 0 -' . ($menu_width + 30) / 2 . 'px; } #mainmenu > li:nth-child(n+6) ul li ul { left: -' . $menu_width . 'px; } '); } // Custom css from theme options $css = get_theme_option('custom_css'); if (!empty($css)) { addThemeCustomStyle($css); } return getThemeCustomStyles(); }
function themerex_scripts() { global $concatenate_scripts; $concatenate_scripts = get_theme_option('compose_scripts') == 'yes'; //Enqueue styles $fonts = getThemeFontsList(false); $font = get_custom_option('theme_font'); if (isset($fonts[$font])) { $theme_font_link = !empty($fonts[$font]['link']) ? $fonts[$font]['link'] : str_replace(' ', '+', $font) . ':100,100italic,300,300italic,400,400italic,500,500italic,700,700italic,900,900italic'; } else { $theme_font_link = "Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic,900,900italic"; } // Must be loaded before main stylesheet wp_enqueue_style('theme-font', 'http://fonts.googleapis.com/css?family=' . $theme_font_link . '&subset=latin,cyrillic-ext,latin-ext,cyrillic', array(), null); wp_enqueue_style('fontello', get_template_directory_uri() . '/includes/fontello/css/fontello.css', array(), null); wp_enqueue_style('animation', get_template_directory_uri() . '/includes/fontello/css/animation.css', array(), null); // Main stylesheet wp_enqueue_style('main-style', get_stylesheet_uri(), array(), null); // Shortcodes wp_enqueue_style('shortcodes', get_template_directory_uri() . '/includes/shortcodes/shortcodes.css', array('main-style'), null); // Customizer wp_add_inline_style('shortcodes', prepareThemeCustomStyles()); // Responsive if (get_theme_option('responsive_layouts') == 'yes') { wp_enqueue_style('responsive', get_template_directory_uri() . '/css/responsive.css', array('main-style'), null); } // WooCommerce customizer if (function_exists('is_woocommerce')) { wp_enqueue_style('woo-style', get_template_directory_uri() . '/css/woo-style.css', array('main-style'), null); } // BuddyPress customizer if (class_exists('BuddyPress')) { wp_enqueue_style('buddy-style', get_template_directory_uri() . '/css/buddy-style.css', array('main-style'), null); } // BB Press customizer if (class_exists('bbPress')) { wp_enqueue_style('bbpress-style', get_template_directory_uri() . '/css/bbpress-style.css', array('main-style'), null); } // Load scripts wp_enqueue_script('jquery', false, array(), null, true); wp_enqueue_script('underscore', false, array(), null, true); wp_enqueue_script('jquery-cookie', get_template_directory_uri() . '/js/jquery.cookie.js', array('jquery'), null, true); wp_enqueue_script('jquery-easing', get_template_directory_uri() . '/js/jquery.easing.js', array('jquery'), null, true); wp_enqueue_script('jquery-autosize', get_template_directory_uri() . '/js/jquery.autosize.js', array('jquery'), null, true); wp_enqueue_script('jquery-ui-core', false, array(), null, true); wp_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true); wp_enqueue_script('jquery-effects-core', false, array(), null, true); wp_enqueue_script('jquery-effects-fade', false, array('jquery', 'jquery-effects-core'), null, true); wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'), null, true); wp_enqueue_script('_utils', get_template_directory_uri() . '/js/_utils.js', array(), null, true); wp_enqueue_script('_front', get_template_directory_uri() . '/js/_front.js', array(), null, true); wp_enqueue_script('shortcodes-init', get_template_directory_uri() . '/includes/shortcodes/shortcodes_init.js', array(), null, true); wp_enqueue_style('magnific-style', get_template_directory_uri() . '/js/magnific-popup/magnific-popup.css', array(), null); wp_enqueue_script('magnific', get_template_directory_uri() . '/js/magnific-popup/jquery.magnific-popup.min.js', array('jquery'), null, true); wp_enqueue_script('flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery'), null, true); wp_enqueue_style('swiperslider-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.css', array(), null); wp_enqueue_script('swiperslider', get_template_directory_uri() . '/js/swiper/idangerous.swiper.js', array('jquery'), null, true); wp_enqueue_style('swiperslider-scrollbar-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.scrollbar.css', array(), null); wp_enqueue_script('swiperslider-scrollbar', get_template_directory_uri() . '/js/swiper/idangerous.swiper.scrollbar-2.1.js', array('jquery'), null, true); // wp_enqueue_style( 'swiperslider-3dflow-style', get_template_directory_uri() . '/js/swiper/idangerous.swiper.3dflow.css', array(), null ); // wp_enqueue_script( 'swiperslider-3dflow', get_template_directory_uri() . '/js/swiper/idangerous.swiper.3dflow.js', array('jquery'), null, true ); global $wp_styles; $wp_styles->done[] = 'mediaelement'; $wp_styles->done[] = 'wp-mediaelement'; wp_enqueue_style('mediaplayer-style', themerex_get_file_url('/js/mediaplayer/mediaplayer.css'), array(), null); // WP already include Media Element Library if (floatval(get_bloginfo('version')) < "3.6") { wp_enqueue_script('mediaplayer', themerex_get_file_url('/js/mediaplayer/mediaelement.min.js'), array(), null, true); } else { wp_enqueue_script('mediaelement'); } //wp_enqueue_style( 'scrollbar-style', get_template_directory_uri() . '/js/scroll/scroll.css', array(), null ); //wp_enqueue_script( 'scrollbar', get_template_directory_uri() . '/js/scroll/jquery.mCustomScrollbar.concat.min.js', array(), null, true ); wp_enqueue_script('hover-dir', get_template_directory_uri() . '/js/hover/jquery.hoverdir.js', array(), null, true); wp_enqueue_script('hover-intent', get_template_directory_uri() . '/js/hover/hoverIntent.js', array(), null, true); wp_enqueue_script('isotope', get_template_directory_uri() . '/js/jquery.isotope.min.js', array(), null, true); // wp_enqueue_script( 'elastislide-modernizr', get_template_directory_uri() . '/js/elastislide/modernizr.custom.17475.js', array(), null, true ); // wp_enqueue_script( 'elastislide-querypp', get_template_directory_uri() . '/js/elastislide/jquerypp.custom.js', array(), null, true ); // wp_enqueue_script( 'elastislide', get_template_directory_uri() . '/js/elastislide/jquery.elastislide.js', array(), null, true ); //wp_enqueue_script( 'smooth-scroll', get_template_directory_uri() . '/js/SmoothScroll.js', array(), null, true ); wp_enqueue_script('diagram-chart', get_template_directory_uri() . '/js/diagram/chart.min.js', array(), null, true); wp_enqueue_script('diagram-raphael', get_template_directory_uri() . '/js/diagram/diagram.raphael.js', array(), null, true); if (is_singular() && get_theme_option('show_share') == 'yes') { wp_enqueue_script('social-share', get_template_directory_uri() . '/js/social/social-share.js', array(), null, true); } if (get_custom_option('show_login') == 'yes') { wp_enqueue_script('form-login', get_template_directory_uri() . '/js/_form_login.js', array(), null, true); } if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply', false, array(), null, true); wp_enqueue_script('form-comments', get_template_directory_uri() . '/js/_form_comments.js', array(), null, true); } if (get_theme_option('show_theme_customizer') == 'yes') { wp_enqueue_script('jquery-ui-draggable', false, array('jquery', 'jquery-ui-core'), null, true); wp_enqueue_script('_customizer', get_template_directory_uri() . '/js/_customizer.js', array(), null, true); } wp_enqueue_style('messages-style', get_template_directory_uri() . '/js/messages/_messages.css', array('main-style'), null); wp_enqueue_script('messages', get_template_directory_uri() . '/js/messages/_messages.js', array(), null, true); wp_enqueue_script('knob', get_template_directory_uri() . '/js/jquery.knob.js', array(), null, true); wp_enqueue_script('jquery-ui-slider'); if (function_exists('awesome_weather_wp_head')) { wp_deregister_style('awesome-weather'); } }
function themerex_scripts() { global $concatenate_scripts; $concatenate_scripts = get_theme_option('compose_scripts') == 'yes'; //custom fonts $fonts = getThemeFontsList(false); $fontArray = array('theme_font', 'header_font', 'logo_font'); $fontUsed = array(); foreach ($fontArray as $fnt) { $fnt = get_custom_option($fnt); if (!in_array($fnt, $fontUsed)) { $fontUsed[] = $fnt; if (isset($fonts[$fnt])) { $theme_font_link = !empty($fonts[$fnt]['link']) ? $fonts[$fnt]['link'] : str_replace(' ', '+', $fnt) . ' :100,100italic,300,300italic,400,400italic,500,500italic,700,700italic,900,900italic'; themerex_enqueue_style('theme-font-' . str_replace(' ', '_', $fnt), 'http://fonts.googleapis.com/css?family=' . $theme_font_link . '&subset=latin,cyrillic-ext,latin-ext,cyrillic', array(), null); } } } themerex_enqueue_style('fontello', get_template_directory_uri() . '/includes/fontello/css/fontello.css', array(), null); themerex_enqueue_style('animation', get_template_directory_uri() . '/includes/fontello/css/animation.css', array(), null); // Main stylesheet themerex_enqueue_style('main-style', get_stylesheet_uri(), array(), null); // Shortcodes themerex_enqueue_style('shortcodes', get_template_directory_uri() . '/includes/shortcodes/shortcodes.css', array('main-style'), null); // Customizer wp_add_inline_style('shortcodes', prepareThemeCustomStyles()); // Responsive if (get_theme_option('responsive_layouts') == 'yes') { themerex_enqueue_style('responsive', get_template_directory_uri() . '/css/responsive.css', array('main-style'), null); } // WooCommerce customizer if (function_exists('is_woocommerce')) { themerex_enqueue_style('woo-style', get_template_directory_uri() . '/css/woo-style.css', array('main-style'), null); } // BuddyPress customizer if (class_exists('BuddyPress')) { themerex_enqueue_style('buddy-style', get_template_directory_uri() . '/css/buddy-style.css', array('main-style'), null); } // BB Press customizer if (class_exists('bbPress')) { themerex_enqueue_style('bbpress-style', get_template_directory_uri() . '/css/bbpress-style.css', array('main-style'), null); } // Load scripts themerex_enqueue_script('jquery', false, array(), null, true); themerex_enqueue_script('jquery-cookie', get_template_directory_uri() . '/js/jquery.cookie.js', array('jquery'), null, true); themerex_enqueue_script('jquery-easing', get_template_directory_uri() . '/js/jquery.easing.js', array('jquery'), null, true); themerex_enqueue_script('jquery-autosize', get_template_directory_uri() . '/js/jquery.autosize.js', array('jquery'), null, true); themerex_enqueue_script('jquery-ui-core', false, array(), null, true); themerex_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true); themerex_enqueue_script('jquery-effects-core', false, array(), null, true); themerex_enqueue_script('jquery-effects-fade', false, array('jquery', 'jquery-effects-core'), null, true); themerex_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', array('jquery'), null, true); themerex_enqueue_script('_utils', get_template_directory_uri() . '/js/_utils.js', array(), null, true); themerex_enqueue_script('_front', get_template_directory_uri() . '/js/_front.js', array(), null, true); themerex_enqueue_script('shortcodes-init', get_template_directory_uri() . '/includes/shortcodes/shortcodes_init.js', array(), null, true); themerex_enqueue_script('smooth-scroll', get_template_directory_uri() . '/js/SmoothScroll.js', array(), null, true); if (get_theme_option('use_mediaelement') == 'yes') { if (floatval(get_bloginfo('version')) > "3.6") { themerex_enqueue_style('wp-mediaelement'); themerex_enqueue_script('wp-playlist'); } else { global $wp_scripts, $wp_styles; $wp_styles->done[] = 'mediaelement'; $wp_styles->done[] = 'wp-mediaelement'; $wp_scripts->done[] = 'mediaelement'; $wp_scripts->done[] = 'wp-mediaelement'; themerex_enqueue_script('mediaplayer', get_template_directory_uri() . '/js/mediaelement/mediaelement.min.js', array(), null, true); themerex_enqueue_style('mediaplayer-style', get_template_directory_uri() . '/js/mediaelement/mediaelement.css', array(), null); } themerex_enqueue_style('mediaelement-custom', get_template_directory_uri() . '/js/mediaelement/mediaplayer_custom.css', array(), null); } else { global $wp_scripts, $wp_styles; $wp_styles->done[] = 'mediaelement'; $wp_styles->done[] = 'wp-mediaelement'; $wp_scripts->done[] = 'mediaelement'; $wp_scripts->done[] = 'wp-mediaelement'; } if (is_singular() && get_theme_option('show_share') == 'yes') { themerex_enqueue_script('social-share', get_template_directory_uri() . '/js/social/social-share.js', array(), null, true); } if (get_custom_option('show_login') == 'yes') { themerex_enqueue_script('form-login', get_template_directory_uri() . '/js/_form_login.js', array(), null, true); } if (get_theme_option('show_theme_customizer') == 'yes') { themerex_enqueue_script('jquery-ui-draggable', false, array('jquery', 'jquery-ui-core'), null, true); themerex_enqueue_script('_customizer', get_template_directory_uri() . '/js/_customizer.js', array(), null, true); } if (get_theme_option("allow_editor") == 'yes' && (is_single() && current_user_can('edit_posts', get_the_ID()) || is_page() && current_user_can('edit_pages', get_the_ID()))) { themerex_enqueue_style('frontend-editor-style', get_template_directory_uri() . '/js/editor/_editor.css', array('main-style'), null); themerex_enqueue_script('frontend-editor', get_template_directory_uri() . '/js/editor/_editor.js', array(), null, true); } themerex_enqueue_style('messages-style', get_template_directory_uri() . '/js/messages/_messages.css', array('main-style'), null); themerex_enqueue_script('messages', get_template_directory_uri() . '/js/messages/_messages.js', array(), null, true); }
function prepareThemeCustomStyles() { // Custom fonts if (get_custom_option('typography_custom') == 'yes') { $s = ''; $fonts = getThemeFontsList(false); $fname = get_custom_option('typography_p_font'); if (isset($fonts[$fname])) { $fstyle = explode(',', get_custom_option('typography_p_style')); $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname; $i = in_array('i', $fstyle); $u = in_array('u', $fstyle); $c = get_custom_option('typography_p_color'); $s .= "\n\t\t\t\tbody, button, input, select, textarea {\n\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t}\n\t\t\t\tbody {\n\t\t\t\t\tfont-size: " . get_custom_option('typography_p_size') . "px;\n\t\t\t\t\tfont-weight: " . get_custom_option('typography_p_weight') . ";\n\t\t\t\t\tline-height: " . get_custom_option('typography_p_lineheight') . "px;\n\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t}\n\t\t\t"; } for ($h = 1; $h <= 6; $h++) { $fname = get_custom_option('typography_h' . $h . '_font'); if (isset($fonts[$fname])) { $fstyle = explode(',', get_custom_option('typography_h' . $h . '_style')); $fname2 = ($pos = themerex_strpos($fname, ' (')) !== false ? themerex_substr($fname, 0, $pos) : $fname; $i = in_array('i', $fstyle); $u = in_array('u', $fstyle); $c = get_custom_option('typography_h' . $h . '_color'); $s .= "\n\t\t\t\t\th" . $h . ", .h" . $h . " {\n\t\t\t\t\t\tfont-family: '" . $fname2 . "'" . (isset($fonts[$fname]['family']) ? ", " . $fonts[$fname]['family'] : '') . ";\n\t\t\t\t\t\tfont-size: " . get_custom_option('typography_h' . $h . '_size') . "px;\n\t\t\t\t\t\tfont-weight: " . get_custom_option('typography_h' . $h . '_weight') . ";\n\t\t\t\t\t\tline-height: " . get_custom_option('typography_h' . $h . '_lineheight') . "px;\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t\t" . ($i ? "font-style: italic;" : '') . "\n\t\t\t\t\t\t" . ($u ? "text-decoration: underline;" : '') . "\n\t\t\t\t\t}\n\t\t\t\t\th" . $h . " a, .h" . $h . " a {\n\t\t\t\t\t\t" . ($c ? "color: " . $c . ";" : '') . "\n\t\t\t\t\t}\n\t\t\t\t"; } } if (!empty($s)) { addThemeCustomStyle($s); } } // Submenu width $menu_width = (int) get_theme_option('menu_width'); if ($menu_width > 50) { addThemeCustomStyle("\n\t\t\t.topWrap .topMenuStyleFon > ul > li ul,\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t.topWrap .topMenuStyleFon > ul > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 10) . "px;\n\t\t\t}\n\t\t\t.menu_right .topWrap .topMenuStyleFon ul.submenu_left {\n\t\t\t\tleft: -" . ($menu_width + 10) . "px !important;\n\t\t\t}\n\n\t\t\t.topWrap .topMenuStyleLine > ul > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 2) . "px;\n\t\t\t}\n\t\t\t.menu_right .topWrap .topMenuStyleLine ul.submenu_left {\n\t\t\t\tleft: -" . ($menu_width + 4) . "px !important;\n\t\t\t}\n\t\t\tul#mainmenu .menu-panel ul.columns > li ul {\n\t\t\t\tmax-width: " . $menu_width . "px;\n\t\t\t}\n\n\t\t"); } // Logo height $logo_height = (int) get_custom_option('logo_height'); $logo_offset = (int) get_custom_option('logo_offset'); if ($logo_height > 10) { if (empty($logo_offset)) { $logo_offset = max(20, round((100 - $logo_height) / 2)); } $add = max(0, round(($logo_offset * 2 + $logo_height - 100) / 2)); addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu .topWrap .logo .logo_text {\n\t\t\t\tline-height: " . $logo_height . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .openRightMenu,\n\t\t\theader.noFixMenu.menu_right .topWrap .search {\n\t\t\t\tmargin-top: " . (33 + $add) . "px;\n\t\t\t\tmargin-bottom: " . (37 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleFon > ul > li {\n\t\t\t\tpadding-top: " . (30 + $add) . "px;\n\t\t\t\tpadding-bottom: " . (30 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleFon > ul#mainmenu > li > .menu-panel,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleFon > ul > li > ul {\n\t\t\t\ttop: " . (67 + $add) . "px;\n\t\t\t}\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul#mainmenu > li > .menu-panel,\n\t\t\theader.noFixMenu.menu_right .topWrap .topMenuStyleLine > ul > li > ul {\n\t\t\t\ttop: " . (100 + $add) . "px;\n\t\t\t}\n\t\t"); } // Logo top offset if ($logo_offset > 0) { addThemeCustomStyle("\n\t\t\theader.noFixMenu .topWrap .logo {\n\t\t\t\tpadding: " . $logo_offset . "px 0 0 0;\n\t\t\t}\n\t\t"); } $logo_height = (int) get_theme_option('logo_image_footer_height'); if ($logo_height > 10) { addThemeCustomStyle("\n\t\t\tfooter .logo img {\n\t\t\t\theight: " . $logo_height . "px;\n\t\t\t}\n\t\t"); } // Main Slider height $slider_height = (int) get_custom_option('slider_height'); if ($slider_height > 10) { addThemeCustomStyle("\n\t\t\t.sliderHomeBullets {\n\t\t\t\theight: " . $slider_height . "px;\n\t\t\t}\n\t\t"); } // Custom css from theme options $css = get_custom_option('custom_css'); if (!empty($css)) { addThemeCustomStyle($css); } $custom_style = ''; $customizer = get_theme_option('show_theme_customizer') == 'yes'; // Theme color from customizer $clr = ''; if ($customizer) { $clr = getValueGPC('theme_color', ''); } if (empty($clr)) { $clr = get_custom_option('theme_color'); } if (!empty($clr)) { $rgb = hex2rgb($clr); $custom_style .= ' a:hover, .theme_accent, .topTabsWrap .speedBar a:hover, .topWrap .topMenuStyleFon > ul li a:hover, .topWrap .topMenuStyleFon > ul > li.sfHover > a, .topWrap .topMenuStyleFon > ul > li > a.sf-with-ul:hover, .topWrap .topMenuStyleFon > ul > li ul a.sf-with-ul:after, .topWrap .topMenuStyleLine > ul > li ul li a:hover, .topMenuStyleFon ul#mainmenu .menu-panel ul.columns > li > a, .topMenuStyleFon ul#mainmenu .menu-panel ul.columns > li a:hover, .topMenuStyleFon ul#mainmenu .menu-panel ul.columns > li ul li a:hover, .topMenuStyleFon ul#mainmenu .menu-panel ul.thumb_title > li > a, .topMenuStyleFon ul#mainmenu .menu-panel ul.thumb_title > li > a:hover, .infoPost a:hover, .tabsButton ul li a:hover, .widgetWrap ul li:before, .popularFiltr ul li a:hover, .isotopeFiltr ul li a:hover, .widget_popular_posts article h3:before, .widgetTabs .widget_popular_posts article .post_info .post_date a:hover, .sidebar .widget_popular_posts article .post_info .post_date a:hover, .sidebar .widget_recent_posts article .post_info .post_date a:hover, .main .widgetWrap a:hover, .main .widgetWrap a:hover span, .widgetWrap a:hover span, .roundButton:hover a, input[type="submit"]:hover, input[type="button"]:hover, .squareButton > a:hover, .squareButton.border > a, .roundButton.border > a, .nav_pages_parts > a:hover, .nav_comments > a:hover, .comments_list a.comment-edit-link:hover, .widget_area ul.tabs > li.squareButtonlite.ui-state-active > a, .wp-calendar tbody td a, .wp-calendar tbody td.today a:hover, blockquote cite, blockquote cite a, .sc_quote_title, .sc_quote_title a, .postLink a, .masonry article .masonryInfo a:hover, .masonry article .masonryInfo span.infoTags a:hover, .relatedPostWrap article .relatedInfo a:hover, .relatedPostWrap article .relatedInfo span.infoTags a:hover, .infoPost span.infoTags a:hover, .page404 p a, .page404 .searchAnimation.sFocus .searchIcon, .sc_team .sc_team_item .sc_team_item_position, .copyWrap a, .comments .commBody li.commItem .replyWrap .posted a:hover, .comments .commBody li.commItem h4 a:hover, .ratingItem span:before, .reviewBlock .totalRating, .widget_area .contactInfo .fContact:before, .widget_area .widgetWrap a:hover, .widget_area .widgetWrap a:hover span, .widget_area .widgetWrap ul > li > a:hover, .widget_area .widgetWrap ul > li > a:hover span, .footerStyleLight .widget_area article .post_title:before, .footerStyleLight .widget_area article .post_info a:hover, .footerStyleLight .widget_area article .post_info .post_date a:hover, .sc_list_style_arrows li:before, .sc_list_style_arrows li a:hover, .sc_list_style_iconed li a:hover, .sc_accordion.sc_accordion_style_1 .sc_accordion_item .sc_accordion_title, .sc_accordion.sc_accordion_style_1 .sc_accordion_item .sc_accordion_title:before, .sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title, .sc_accordion.sc_accordion_style_2 .sc_accordion_item.sc_active .sc_accordion_title:before, .sc_accordion.sc_accordion_style_3 .sc_accordion_item.sc_active .sc_accordion_title, .sc_toggles.sc_toggles_style_1 .sc_toggles_item .sc_toggles_title, .sc_toggles.sc_toggles_style_1 .sc_toggles_item .sc_toggles_title:before, .sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title, .sc_toggles.sc_toggles_style_2 .sc_toggles_item.sc_active .sc_toggles_title:before, .sc_toggles.sc_toggles_style_3 .sc_toggles_item.sc_active .sc_toggles_title, .sc_tabs .sc_tabs_titles li a:hover, .sc_dropcaps.sc_dropcaps_style_3 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_4 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_5 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_6 .sc_dropcap, .sc_highlight.sc_highlight_style_2, .sc_price_item .sc_price_money, .sc_price_item .sc_price_penny, .sc_pricing_table .sc_pricing_columns ul li .sc_icon, .sc_tooltip_parent, .sc_title_icon:before, .sc_scroll_controls .flex-direction-nav a:hover:before, .sc_testimonials_style_1 .flex-direction-nav a:hover:before, .sc_testimonials_style_3 .flex-direction-nav a:hover:before, .sc_testimonials_style_3 .flex-direction-nav a:active:before, .pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:hover:before, .topWrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover, .topWrap .usermenu_area ul.usermenu_list li.usermenu_currency > a, .topWrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a, .topWrap .usermenu_area ul.usermenu_list li ul li a:hover, .topWrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency > a:hover, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency > a, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_currency.sfHover > a, .sidemenu_wrap .usermenu_area ul.usermenu_list li ul li a:hover, .sidemenu_wrap .usermenu_area ul.usermenu_list li.usermenu_cart .widget_area ul li a:hover, .sc_blogger a:hover, .sc_blogger.style_date .load_more:before, .sc_blogger.style_date .sc_blogger_item .sc_blogger_date .day_month, .sc_blogger.style_date .sc_blogger_item .sc_blogger_info .comments_number, .sc_blogger.style_accordion .sc_blogger_info .comments_number, .widgetTabs .widgetTop ul > li:not(.tabs):before, .widgetTabs .widgetTop ul > li:not(.tabs) > a:hover, .widgetTabs .widgetTop ul > li:not(.tabs) > a:hover span, .widgetTabs .widgetTop.widget_popular_posts article .post_title:before, .swpRightPos .tabsMenuBody a:hover, .swpRightPos .tabsMenuBody a:hover:before, .openRightMenu:hover:before, .topWrap .search:not(.searchOpen):hover:before, .user-popUp .formItems.loginFormBody .remember .forgotPwd, .user-popUp .formItems.loginFormBody .loginProblem, .user-popUp .formItems.registerFormBody .i-agree a, .sc_slider_pagination_area .flex-control-nav.manual .slide_info .slide_title, #toc .toc_item.current .toc_icon, #toc .toc_item:hover .toc_icon ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce div.product span.price, .woocommerce div.product p.price, .woocommerce #content div.product span.price, .woocommerce #content div.product p.price, .woocommerce-page div.product span.price, .woocommerce-page div.product p.price, .woocommerce-page #content div.product span.price, .woocommerce-page #content div.product p.price,.woocommerce ul.products li.product .price,.woocommerce-page ul.products li.product .price, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page input.button:hover, .woocommerce-page #respond input#submit:hover, .woocommerce-page #content input.button:hover, .woocommerce .quantity input[type="button"]:hover, .woocommerce #content input[type="button"]:hover, .woocommerce-page .quantity input[type="button"]:hover, .woocommerce-page #content .quantity input[type="button"]:hover, .woocommerce ul.cart_list li > .amount, .woocommerce ul.product_list_widget li > .amount, .woocommerce-page ul.cart_list li > .amount, .woocommerce-page ul.product_list_widget li > .amount, .woocommerce ul.cart_list li span .amount, .woocommerce ul.product_list_widget li span .amount, .woocommerce-page ul.cart_list li span .amount, .woocommerce-page ul.product_list_widget li span .amount, .woocommerce ul.cart_list li ins .amount, .woocommerce ul.product_list_widget li ins .amount, .woocommerce-page ul.cart_list li ins .amount, .woocommerce-page ul.product_list_widget li ins .amount, .woocommerce.widget_shopping_cart .total .amount, .woocommerce .widget_shopping_cart .total .amount, .woocommerce-page.widget_shopping_cart .total .amount, .woocommerce-page .widget_shopping_cart .total .amount, .woocommerce a:hover h3, .woocommerce-page a:hover h3, .woocommerce .cart-collaterals .order-total strong, .woocommerce-page .cart-collaterals .order-total strong, .woocommerce .checkout #order_review .order-total .amount, .woocommerce-page .checkout #order_review .order-total .amount, .woocommerce .star-rating, .woocommerce-page .star-rating, .woocommerce .star-rating:before, .woocommerce-page .star-rating:before, .widget_area .widgetWrap ul > li .star-rating span, .woocommerce #review_form #respond .stars a, .woocommerce-page #review_form #respond .stars a ') . ' { color:' . $clr . '; } .topWrap .topMenuStyleLine > ul > li ul li a:hover, .footerStyleDark .widget_area a.button:hover, .flip-clock-wrapper ul li a div div.inn, .footerStyleDark .widget_area .squareButton > a { color:' . $clr . ' !important; } .theme_accent_bgc, .topWrap, .sidemenu_wrap .menuTranform, .sc_video_player:active .sc_video_play_button:after, .mejs-controls .mejs-button button:active, .mejs-container .mejs-controls .mejs-time-rail .mejs-time-current, .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current, input[type="submit"]:active, input[type="button"]:active, .squareButton.active > span, .squareButton.active > a, .squareButton.ui-state-active > a, .roundButton > a:active, .squareButton > a:active, .squareButton.global > a, .squareButton.dark > a:active, .squareButton.border > a:hover, .roundButton.border:hover > a, .nav_pages_parts > span.page_num, .nav_comments > span.current, ul > li.likeActive:active > a, .sc_table.sc_table_style_1 table tr:first-child th, .sc_table.sc_table_style_1 table tr:first-child td, .masonry article .status, .portfolio .isotopeElement .folioShowBlock:before, .post .postStatus, .sc_team .sc_team_item .sc_team_item_avatar:after, .itemPageFull .itemDescriptionWrap .toggleButton:active, .footerWrap .footerWidget .sc_video_player:active .sc_video_play_button:after, .topWrap .topMenuStyleLine > ul > li ul, .topMenuStyleLine > ul .menu-panel, .sidemenu_wrap .sidemenu_button, .userHeaderSection.global, .sliderLogo .elastislide-wrapper nav span:active:before, .sc_skills_bar .sc_skills_item .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_3 .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_count, .sc_skills_counter .sc_skills_item.sc_skills_style_4 .sc_skills_info, .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap, .sc_highlight.sc_highlight_style_1, .sc_pricing_table .sc_pricing_columns .sc_pricing_title, .sc_pricing_table .sc_pricing_columns:hover ul li.sc_pricing_title, .sc_tooltip_parent .sc_tooltip, .sc_tooltip_parent .sc_tooltip:before, .sc_title_bg:before, .sc_accordion.sc_accordion_style_3 .sc_accordion_item .sc_accordion_title, .sc_toggles.sc_toggles_style_3 .sc_toggles_item .sc_toggles_title, .sc_scroll_controls .flex-direction-nav a:active, .sc_testimonials_style_1 .flex-direction-nav a:active, .sc_testimonials_style_3 .sc_testimonials_items, .sc_testimonials_style_3 .flex-direction-nav li, .sc_testimonials_style_3 .flex-direction-nav a, .pagination .pageLibrary > li.libPage > .pageFocusBlock .flex-direction-nav a:active, .sc_popup_light:before, .user-popUp ul.loginHeadTab li.ui-tabs-active:before, .sc_banner:before, .global_bg, .widgetWrap .tagcloud a:hover, .widgetWrap .tagcloud a:active, .sc_scroll_bar .swiper-scrollbar-drag:before, .widgetTabs .widgetTop .tagcloud a:hover, .widgetTabs .widgetTop .tagcloud a:active, #custom_options .co_options #co_bg_images_list a.current, #custom_options .co_options #co_bg_pattern_list a.current, .fullScreenSlider.globalColor .sliderHomeBullets .rsContent:before, .fullScreenSlider .sliderHomeBullets .rsContent .slide-3 .order p span, ul.sc_list_style_disk li:before, .sc_slider_pagination_area .flex-control-nav.manual .slide_date, .sc_tabs.sc_tabs_style_2 .sc_tabs_titles li.ui-state-active a .sc_contact_form_custom .bubble label:hover, .sc_contact_form_custom .bubble label.selected ' . (!function_exists('is_woocommerce') ? '' : ', .woocommerce .woocommerce-message:before, .woocommerce-page .woocommerce-message:before,.woocommerce .widget_price_filter .ui-slider .ui-slider-range,.woocommerce-page .widget_price_filter .ui-slider .ui-slider-range ') . ' ' . (!class_exists('TribeEvents') ? '' : ', .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"], .tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"] > a, #tribe_events_filters_wrapper input[type="submit"], .tribe-events-button, #tribe-events .tribe-events-button, .tribe-events-button.tribe-inactive, #tribe-events .tribe-events-button:hover, .tribe-events-button:hover, .tribe-events-button.tribe-active:hover ') . ' { background-color:' . $clr . '; } .sc_table.sc_table_style_1 table tr:first-child th, .sc_table.sc_table_style_1 table tr:first-child td { border-top-color: ' . $clr . '; } .sc_table.sc_table_style_1 table tr:first-child th:first-child, .sc_table.sc_table_style_1 table tr:first-child td:first-child { border-left-color: ' . $clr . '; } .sc_table.sc_table_style_1 table tr:first-child th:last-child, .sc_table.sc_table_style_1 table tr:first-child td:last-child { border-right-color: ' . $clr . '; } ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce .widget_price_filter .ui-slider .ui-slider-handle, .woocommerce-page .widget_price_filter .ui-slider .ui-slider-handle { background:' . $clr . '; } ') . ' ' . (!class_exists('TribeEvents') ? '' : ', #tribe-bar-form .tribe-bar-submit input[type="submit"] { background:' . $clr . '; } ') . ' .top_panel_above .fullScreenSlider .topWrap, .top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li ul, .top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li .menu-panel { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.8); } .sc_slider_flex .sc_slider_info, .sc_slider_chop .sc_slider_info, .sc_slider_swiper .sc_slider_info, .sc_slider_flex .flex-direction-nav li, .sc_slider_chop .flex-direction-nav li, .sc_slider_swiper .flex-direction-nav li { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.8) !important; } .theme_accent_border, .postSharing > ul > li > a:active, .postSharing > ul > li > span:active .mejs-controls .mejs-button button:active, .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current, .squareButton.active > span, .squareButton.active > a, .roundButton > a:active, .squareButton > a:active, .squareButton.ui-state-active > a, .squareButton.global > a, .squareButton.dark > a:active, .squareButton.border > a, .roundButton.border > a, .nav_pages_parts > span.page_num, .nav_comments > span.current, .wp-calendar thead tr + tr th, .sc_skills_bar .sc_skills_item .sc_skills_count, .itemPageFull .itemDescriptionWrap .toggleButton:active, .footerWidget .sc_video_player:active .sc_video_play_button:after, .topWrap .topMenuStyleLine > ul > li ul, .topMenuStyleLine > ul#mainmenu ul.menu-panel, .sc_scroll_controls .flex-direction-nav a:active, .sc_testimonials_style_1 .flex-direction-nav a:active, .pagination .flex-direction-nav a:active, .sliderLogo .elastislide-wrapper nav span:active:before, .sc_dropcaps.sc_dropcaps_style_4 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_5 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_6 .sc_dropcap, .sc_accordion.sc_accordion_style_3 .sc_accordion_item, .sc_toggles.sc_toggles_style_3 .sc_toggles_item, .sc_tooltip_parent, pre.code, .widgetWrap .tagcloud a:hover, .widgetWrap .tagcloud a:active, .topWrap .openRightMenu:hover, .topWrap .search:not(.searchOpen):hover, #toc .toc_item.current, #toc .toc_item:hover { border-color:' . $clr . '; } ' . (!function_exists('is_woocommerce') ? '' : ' .woocommerce .woocommerce-message, .woocommerce-page .woocommerce-message, .woocommerce a.button.alt:active, .woocommerce button.button.alt:active, .woocommerce input.button.alt:active, .woocommerce #respond input#submit.alt:active, .woocommerce #content input.button.alt:active, .woocommerce-page a.button.alt:active, .woocommerce-page button.button.alt:active, .woocommerce-page input.button.alt:active, .woocommerce-page #respond input#submit.alt:active, .woocommerce-page #content input.button.alt:active, .woocommerce a.button:active, .woocommerce button.button:active, .woocommerce input.button:active, .woocommerce #respond input#submit:active, .woocommerce #content input.button:active, .woocommerce-page a.button:active, .woocommerce-page button.button:active, .woocommerce-page input.button:active, .woocommerce-page #respond input#submit:active, .woocommerce-page #content input.button:active { border-top-color:' . $clr . '; } ') . ' .theme_accent_bg, .ih-item.circle.effect1.colored .info, .ih-item.circle.effect2.colored .info, .ih-item.circle.effect3.colored .info, .ih-item.circle.effect4.colored .info, .ih-item.circle.effect5.colored .info .info-back, .ih-item.circle.effect6.colored .info, .ih-item.circle.effect7.colored .info, .ih-item.circle.effect8.colored .info, .ih-item.circle.effect9.colored .info, .ih-item.circle.effect10.colored .info, .ih-item.circle.effect11.colored .info, .ih-item.circle.effect12.colored .info, .ih-item.circle.effect13.colored .info, .ih-item.circle.effect14.colored .info, .ih-item.circle.effect15.colored .info, .ih-item.circle.effect16.colored .info, .ih-item.circle.effect18.colored .info .info-back, .ih-item.circle.effect19.colored .info, .ih-item.circle.effect20.colored .info .info-back, .ih-item.square.effect1.colored .info, .ih-item.square.effect2.colored .info, .ih-item.square.effect3.colored .info, .ih-item.square.effect4.colored .mask1, .ih-item.square.effect4.colored .mask2, .ih-item.square.effect5.colored .info, .ih-item.square.effect6.colored .info, .ih-item.square.effect7.colored .info, .ih-item.square.effect8.colored .info, .ih-item.square.effect9.colored .info .info-back, .ih-item.square.effect10.colored .info, .ih-item.square.effect11.colored .info, .ih-item.square.effect12.colored .info, .ih-item.square.effect13.colored .info, .ih-item.square.effect14.colored .info, .ih-item.square.effect15.colored .info { background:' . $clr . '; } .ih-item.circle.effect1.colored .info, .ih-item.circle.effect2.colored .info, .ih-item.circle.effect5.colored .info .info-back, .ih-item.circle.effect19.colored .info, .ih-item.circle.effect20.colored .info .info-back, .ih-item.square.effect4.colored .mask1, .ih-item.square.effect4.colored .mask2, .ih-item.square.effect6.colored .info, .ih-item.square.effect7.colored .info, .ih-item.square.effect12.colored .info, .ih-item.square.effect13.colored .info, .sc_image_shape_round:hover figcaption, .post .sc_image_shape_round:hover figcaption { background: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.6);} .ih-item.circle.effect17.colored a:hover .img:before { box-shadow: inset 0 0 0 110px ' . $clr . ', inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 0 0 110px rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.6), inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1); } .ih-item.circle.effect1 .spinner { border-right-color: ' . $clr . '; border-bottom-color: ' . $clr . '; } .mejs-container, .mejs-embed, .mejs-embed body, .mejs-container .mejs-controls { background:' . $clr . ' !important; } .mejs-controls .mejs-volume-button .mejs-volume-slider { rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7) !important; } ::selection { background-color:' . $clr . ';} ::-moz-selection { background-color:' . $clr . ';} '; $custom_style = apply_filters('theme_skin_set_theme_color', $custom_style, $clr); } // Top panel background $clr2 = ''; if ($customizer) { $clr2 = getValueGPC('menu_color', ''); } if (empty($clr2)) { $clr2 = get_custom_option('menu_color'); } if (!empty($clr2)) { $clr = $clr2; $rgb = hex2rgb($clr); $custom_style .= ' .topWrap, .topWrap .topMenuStyleLine > ul > li ul, .topMenuStyleLine > ul .menu-panel, .usermenu_area { background-color: ' . $clr . '; } .top_panel_above .fullScreenSlider .topWrap, .top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li ul, .top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li .menu-panel { background-color: rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.8); } .topWrap .topMenuStyleLine > ul > li ul, .topMenuStyleLine > ul#mainmenu ul.menu-panel { border-color: ' . $clr . '; } '; $custom_style = apply_filters('theme_skin_set_menu_bgcolor', $custom_style, $clr, $rgb); } // Top panel fore color $fore_clr = get_custom_option('menu_fore_color'); if (!empty($clr) || !empty($fore_clr)) { if (empty($fore_clr) && !empty($clr)) { $hsb = hex2hsb($clr); if ($hsb['b'] > 90 && ($hsb['h'] >= 45 && $hsb['h'] <= 185 || $hsb['s'] < 20)) { $clr = '#272727'; $clr01 = 'rgba(39,39,39,0.1)'; $clr02 = 'rgba(39,39,39,0.2)'; $clr04 = 'rgba(39,39,39,0.4)'; $clr05 = 'rgba(39,39,39,0.5)'; $clr07 = 'rgba(39,39,39,0.7)'; } else { $clr = '#ffffff'; $clr01 = 'rgba(255,255,255,0.1)'; $clr02 = 'rgba(255,255,255,0.2)'; $clr04 = 'rgba(255,255,255,0.4)'; $clr05 = 'rgba(255,255,255,0.5)'; $clr07 = 'rgba(255,255,255,0.7)'; } } else { $rgb = hex2rgb($fore_clr); $clr = $fore_clr; $clr01 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.1)'; $clr02 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.2)'; $clr04 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.4)'; $clr05 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.5)'; $clr07 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7)'; } $custom_style .= ' .logo, .logo_text,.logo a,.topWrap .topMenuStyleLine > ul > li > a,.topWrap .topMenuStyleLine > ul > li ul li a,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_title,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_title a,.topMenuStyleLine ul#mainmenu .menu-panel.thumb .item_placeholder .item_title,.topMenuStyleLine ul#mainmenu .menu-panel.thumb .item_placeholder .item_title a,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_info > * > span,.topMenuStyleLine ul#mainmenu .menu-panel .item_placeholder .item_info > * > em,.topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li a,.topWrap .topMenuStyleFon > ul > li > a,.top_panel_above .fullScreenSlider .topWrap .topMenuStyleLine > ul > li a,.topMenuStyleLine ul#mainmenu > li ul li a .menu_icon { color: ' . $clr . '; } .topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li > a,.topMenuStyleLine ul#mainmenu .menu-panel ul.thumb_title > li > a,.topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li > a:hover,.topMenuStyleLine ul#mainmenu .menu-panel ul.thumb_title > li > a:hover { color: ' . $clr . ' !important; } .topWrap .topMenuStyleLine > ul > li:after { background:' . $clr . '; } .topWrap .search:before,.topWrap .search .searchForm .searchSubmit .icoSearch:before,.openRightMenu:before { color: ' . $clr04 . '; } .topWrap .usermenu_area,.topWrap .search .searchForm .searchField { color: ' . $clr05 . '; } .topWrap .usermenu_area a, .menu_item_description, .logo .logo_slogan { color: ' . $clr07 . '; } .topWrap .usermenu_area a:hover,.topWrap .usermenu_area ul.usermenu_list > li.sfHover > a { color: ' . $clr . '; } .topWrap .search, .openRightMenu { border-color: ' . $clr04 . '; } .topMenuStyleLine ul#mainmenu .menu-panel ul.columns > li + li { border-color: ' . $clr02 . '; } .openResponsiveMenu { border-top-color: ' . $clr02 . '; color: ' . $clr . '; } .responsive_menu .menuTopWrap > ul > li { border-bottom-color: ' . $clr01 . '; } '; $custom_style = apply_filters('theme_skin_set_menu_color', $custom_style, $clr); } // User menu area background $clr2 = ''; if ($customizer) { $clr2 = getValueGPC('user_menu_color', ''); } if (empty($clr2)) { $clr2 = get_custom_option('user_menu_color'); } $fore_clr = get_custom_option('user_menu_fore_color'); if (!empty($clr2) || !empty($fore_clr)) { if (!empty($clr2)) { $clr = $clr2; $custom_style .= ' .usermenu_area { background-color: ' . $clr . '; } '; $custom_style = apply_filters('theme_skin_set_user_menu_bgcolor', $custom_style, $clr); } // User menu color if (empty($fore_clr)) { $hsb = hex2hsb($clr); if ($hsb['b'] > 90 && ($hsb['h'] >= 45 && $hsb['h'] <= 185 || $hsb['s'] < 20)) { $clr = '#272727'; $clr01 = 'rgba(39,39,30,0.1)'; $clr05 = 'rgba(39,39,30,0.5)'; $clr07 = 'rgba(39,39,30,0.7)'; } else { $clr = '#ffffff'; $clr01 = 'rgba(255,255,255,0.1)'; $clr05 = 'rgba(255,255,255,0.5)'; $clr07 = 'rgba(255,255,255,0.7)'; } } else { $rgb = hex2rgb($fore_clr); $clr = $fore_clr; $clr01 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.1)'; $clr05 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.5)'; $clr07 = 'rgba(' . $rgb['r'] . ',' . $rgb['g'] . ',' . $rgb['b'] . ',0.7)'; } $custom_style .= ' .topWrap .usermenu_area { color: ' . $clr05 . '; } .topWrap .usermenu_area a { color: ' . $clr07 . '; } .topWrap .usermenu_area a:hover,.topWrap .usermenu_area ul.usermenu_list > li.sfHover > a { color: ' . $clr . '; } '; $custom_style = apply_filters('theme_skin_set_user_menu_color', $custom_style, $clr); } addThemeCustomStyle(apply_filters('theme_skin_add_styles_inline', $custom_style)); return getThemeCustomStyles(); }
<?php // Prepare arrays if (is_themerex_options_used()) { $fonts = getThemeFontsList(); $themes = getThemesList(); $socials = getSocialsList(); $icons = getIconsList(); $categories = getCategoriesList(); $sidebars = getSidebarsList(); $positions = getSidebarsPositions(); $body_styles = getBodyStylesList(); $blog_styles = getBlogStylesList(); $hovers = getHoversList(); $sliders = getSlidersList(); $popups = getPopupEngines(); $gmap_styles = getGooglemapStyles(); $dir = getDirectionList(); $yes_no = getYesNoList(); $on_off = getOnOffList(); $show_hide = getShowHideList(); $sorting = getSortingList(); $ordering = getOrderingList(); } else { $hovers = $fonts = $themes = $socials = $icons = $categories = $sidebars = $positions = $body_styles = $blog_styles = $sliders = $popups = $gmap_styles = $dir = $yes_no = $on_off = $show_hide = $sorting = $ordering = array(); } // Theme options arrays $THEMEREX_options = array(); //############################### //#### General #### //###############################
function prepareThemeCustomStyles() { // Custom font $fonts = getThemeFontsList(false); $font = get_custom_option('theme_font'); $body_bg = get_custom_option('bg_color'); $theme_color = get_custom_option('theme_color'); if (isset($fonts[$font])) { addThemeCustomStyle("\n\t\t\tbody, button, input, select, textarea {\n\t\t\t\tfont-family: '" . $font . "', " . $fonts[$font]['family'] . ";\n\t\t\t}\n\t\t\tbody {\n\t\t\t\tbackground: " . $body_bg . "\n\t\t\t}\n\t\t"); } // Custom menu if (get_custom_option('menu_colored') == 'yes') { $menu_name = 'mainmenu'; if (($locations = get_nav_menu_locations()) && isset($locations[$menu_name])) { $menu = wp_get_nav_menu_object($locations[$menu_name]); if (is_object($menu) && $menu) { $menu_items = wp_get_nav_menu_items($menu->term_id); $menu_styles = ''; $menu_slider = get_custom_option('menu_slider') == 'yes'; if (count($menu_items) > 0) { foreach ($menu_items as $k => $item) { // if ($item->menu_item_parent==0) { $cur_accent_color = ''; if ($item->type == 'taxonomy' && $item->object == 'category') { $cur_accent_color = get_category_inherited_property($item->object_id, 'theme_accent_color'); } if ((empty($cur_accent_color) || is_inherit_option($cur_accent_color)) && isset($item->classes[0]) && !empty($item->classes[0])) { $cur_accent_color = (themerex_substr($item->classes[0], 0, 1) != '#' ? '#' : '') . $item->classes[0]; } if (!empty($cur_accent_color) && !is_inherit_option($cur_accent_color)) { $menu_styles .= ($item->menu_item_parent == 0 ? "#header_middle_inner #mainmenu li.menu-item-{$item->ID}.current-menu-item > a," : '') . "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID} ul {\n\t\t\t\t\t\t\t\t\t\tbackground-color: {$cur_accent_color} !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t"; } if ($menu_slider && $item->menu_item_parent == 0) { $menu_styles .= "\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over:not(.current-menu-item) > a:hover,\n\t\t\t\t\t\t\t\t\t#header_middle_inner #mainmenu li.menu-item-{$item->ID}.blob_over.sfHover > a {\n\t\t\t\t\t\t\t\t\t\tbackground-color: transparent !important;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t"; } // } } } if (!empty($menu_styles)) { addThemeCustomStyle($menu_styles); } } } } // Main menu height $menu_height = (int) get_custom_option('menu_height'); if ($menu_height > 20) { addThemeCustomStyle("\n\t\t\t#mainmenu > li > a {\n\t\t\t\theight: {$menu_height}px !important;\n\t\t\t\tline-height: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#mainmenu > li ul {\n\t\t\t\ttop: {$menu_height}px !important;\n\t\t\t}\n\t\t\t#header_middle {\n\t\t\t\tmin-height: {$menu_height}px !important;\n\t\t\t}\n\t\t"); } // Submenu width $menu_width = (int) get_custom_option('menu_width'); if ($menu_width > 50) { addThemeCustomStyle("\n\t\t\t#mainmenu > li ul {\n\t\t\t\twidth: {$menu_width}px;\n\t\t\t}\n\t\t\t#mainmenu > li ul li ul {\n\t\t\t\tleft: " . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t\t#mainmenu > li:nth-child(n+6) ul li ul {\n\t\t\t\tleft: -" . ($menu_width + 1) . "px;\n\t\t\t}\n\t\t"); } if (!empty($theme_color)) { addThemeCustomStyle(' #sidebar_main .popular_and_commented_tabs .tab_content:not(.style_post_format) .post_item .post_title a:hover, .wp-calendar thead th.prevMonth a:hover, .wp-calendar thead th.nextMonth a:hover, .wp-calendar tbody td.dayWithPost a:hover, .widget_twitter .theme_text a, .top_news_section .top_news_term a:hover, a:hover, .trex_accent_color, .post_info .post_title a:hover, .link_text_wrap a, .sc_quote_icon, article.format-link > .icon, blockquote.sc_quote, article.format-aside > .icon, article.format-chat > .icon, article.format-status > .icon, #nav_pages ul li:hover a, #nav_pages ul li:hover span, #nav_pages ul li.pager_current span, #nav_pages .pager_prev a:hover, #nav_pages .pager_next a:hover, .isotopeFiltr ul li a:hover, section.author .user_links ul li span:hover, .comment_content .review .label i, .popularFiltr ul li.ui-state-active a span, .prev_next_posts .prev_post_icon, .prev_next_posts .next_post_icon, .prev_next_posts .prev_post_link a:hover, .prev_next_posts .next_post_link a:hover, .link_pages a:hover, .itemscope .post_tags a:hover, .article_services section.comments li.comment .comment_header .comment_reply a, .swpRightPos .sc_tabs .tabsMenuHead li.ui-tabs-active a, .swpRightPos .sc_tabs .tabsMenuHead li a:hover, .swpRightPos .addBookmark:hover i, .swpRightPos .listBookmarks li:hover a, #panelmenu li a:hover, .popular_and_commented_tabs ul.tabs li a:hover, .popular_and_commented_tabs .tab_content .post_item a:hover, .popular_and_commented_tabs .tab_content .post_item i.format-icon.hover:before, .footerWidget .popular_and_commented_tabs .tab_content h5.post_title a:hover, #sidebar_main .widget ul li a:hover, .sc_accordion.sc_accordion_style_1 .sc_accordion_item h4.sc_accordion_title i.icon, .sc_dropcaps .sc_dropcap, .sc_tooltip_parent, .sc_skills.sc_skills_type_counter .sc_skills_item_progress, .sc_title_icon, .sc_title_bg.sc_title_without_bg, .sc_icon, .sc_tabs ul.sc_tabs_titles li a .icon, .slider_wrap .sc_slider_swiper + .flex-control-nav ul li.current .post_icon, .sc_testimonials .flex-direction-nav li a, .sc_testimonials.sc_testimonials_style_2 .flex-direction-nav li a:hover, .sc_blogger .sc_blogger_item .sc_blogger_title a:hover, .sc_blogger.style_list .sc_blogger_item > .icon, .sc_blogger.style_carousel .sc_blogger_item .post_links a:hover, .sc_blogger.style_carousel .prev_slide:hover, .sc_blogger.style_carousel .next_slide:hover, .sc_review_panel .sc_review_title, .sc_team .sc_team_item .sc_team_item_position, .sc_list.sc_list_style_ol li .sc_list_num, .sc_list.sc_list_style_ol_filled li .sc_list_num, .sc_list.sc_list_style_iconed li:before { color: ' . $theme_color . '; } #nav_pages .pager_prev a:hover, #nav_pages .pager_next a:hover, .isotopeFiltr ul li.active a, .pagination_viewmore .view_more_button:hover, .popular_and_commented_tabs ul.tabs li.ui-tabs-active a, .link_pages a:hover, .popular_and_commented_tabs ul.tabs li a:hover, .wp-calendar thead th.prevMonth a:hover, .wp-calendar thead th.nextMonth a:hover, .wp-calendar tbody td.dayWithPost, .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap, .sc_dropcaps .sc_dropcap, .sc_tooltip_parent, .sc_blogger .sc_blogger_block_link:hover, .sc_blogger.style_carousel .prev_slide:hover, input[type="submit"]:hover, .sc_blogger.style_carousel .next_slide:hover { border-color: ' . $theme_color . '; } article.format-aside > .article_wrap, .isotopeFiltr ul li.active a, section.author .user_links span.tooltip, .vote_criterias li a:hover:before, .vote_criterias li a:active:before, .link_pages .pages_popup .popup_inner, .popular_and_commented_tabs ul.tabs li.ui-tabs-active a, #sidebar_main .widget.widget_recent_entries ul li a:before, .widget.widget_flickr .flickr_images a, .widget_contact_social .tooltip, .sc_dropcaps.sc_dropcaps_style_1 .sc_dropcap, .sc_dropcaps.sc_dropcaps_style_2 .sc_dropcap, .sc_skills.sc_skills_type_bar .sc_skills_item .sc_skills_item_progress, .sc_skills.sc_skills_type_bar .sc_skills_item .sc_skills_item_progress .progress_inner, .sc_slider_swiper .progress, .sc_testimonials .flex-direction-nav li a:hover, .sc_blogger_item .thumb a, .sc_blogger_item .thumb a .hover_plus, .sc_blogger.style_accordion .sc_blogger_item .sc_blogger_title a:hover, .sc_blogger.style_date .sc_blogger_item .post_date_info .month, .sc_blogger.style_carousel .sc_blogger_item .overlay_mask, .sc_blogger.style_carousel .swiper_scrollbar .swiper-scrollbar-drag, .sc_button, .sc_blogger .sc_blogger_block_link:hover, .sc_list.sc_list_style_ul li:before, input[type="submit"]:hover, a:hover .sc_title_icon, .sc_list.sc_list_style_ol_filled li .sc_list_num { background: ' . $theme_color . '; } '); } // Custom css from theme options $css = get_custom_option('custom_css'); $section1_bg = get_custom_option('section_1_bg'); $section2_bg = get_custom_option('section_2_bg'); $section1_font = get_custom_option('section_1_font'); $section2_font = get_custom_option('section_2_font'); $section2_top_margin = get_custom_option('section2_margin_top'); $section2_bottom_margin = get_custom_option('section2_margin_bottom'); $css .= !empty($section1_font) ? '.section_2 { color: ' . $section2_font . '}' : ''; $css .= !empty($section1_font) ? '.section_1,#topmenu li a, header .section_1 .login_loguout_link { color: ' . $section1_font . '}' : ''; $css .= !empty($section1_bg) ? 'header .section_1 { background: ' . $section1_bg . '}' : ''; $sect2_style = '.section_2 {'; $sect2_style .= !empty($section2_bg) ? ' background: ' . $section2_bg . ';' : ''; $sect2_style .= !empty($section2_top_margin) ? ' padding-top: ' . $section2_top_margin . 'px; ' : ''; $sect2_style .= !empty($section2_bottom_margin) ? ' padding-bottom: ' . $section2_bottom_margin . 'px; ' : ''; $sect2_style .= '}'; $css .= !empty($sect2_style) ? $sect2_style : ''; $constructId = getTemplatePageId('under-construction'); if (!empty($constructId) && get_the_ID() == $constructId) { $construct_thumb = wp_get_attachment_url(get_post_thumbnail_id($constructId)); $css .= !empty($construct_thumb) ? '#page { background-image: url( ' . $construct_thumb . ' ) }' : ''; } if (!empty($css)) { addThemeCustomStyle($css); } return getThemeCustomStyles(); }
function themerex_scripts() { global $wp_styles, $concatenate_scripts; $concatenate_scripts = false; // Enqueue styles //----------------------------------------------------------------------------------------------------- $fonts = getThemeFontsList(false); $theme_fonts = array(); // Prepare custom fonts if (get_custom_option('typography_custom') == 'yes') { $selectors = array('p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'); foreach ($selectors as $s) { $font = get_custom_option('typography_' . $s . '_font'); if (!empty($font)) { $theme_fonts[$font] = 1; } } } // Prepare current skin fonts $theme_fonts = apply_filters('theme_skin_use_fonts', $theme_fonts); // Link to selected fonts foreach ($theme_fonts as $font => $v) { if (isset($fonts[$font])) { $font_name = ($pos = themerex_strpos($font, ' (')) !== false ? themerex_substr($font, 0, $pos) : $font; $css = !empty($fonts[$font]['css']) ? $fonts[$font]['css'] : 'http://fonts.googleapis.com/css?family=' . (!empty($fonts[$font]['link']) ? $fonts[$font]['link'] : str_replace(' ', '+', $font_name) . ':100,100italic,300,300italic,400,400italic,700,700italic') . '&subset=latin,latin-ext,cyrillic,cyrillic-ext'; themerex_enqueue_style('theme-font-' . str_replace(' ', '-', $font_name), $css, array(), null); } } // Fontello styles must be loaded before main stylesheet themerex_enqueue_style('fontello', themerex_get_file_url('/css/fontello/css/fontello.css'), array(), null); themerex_enqueue_style('animation', themerex_get_file_url('/css/fontello/css/animation.css'), array(), null); // Main stylesheet themerex_enqueue_style('main-style', get_stylesheet_uri(), array(), null); // WooCommerce customizer if (function_exists('is_woocommerce')) { themerex_enqueue_style('woo-style', themerex_get_file_url('/css/woo-style.css'), array('main-style'), null); } // Tribe Events if (class_exists('TribeEvents')) { $wp_styles->done[] = 'tribe-events-custom-jquery-styles'; themerex_enqueue_style('tribe-style', themerex_get_file_url('/css/tribe-style.css'), array('main-style'), null); } // BuddyPress customizer if (class_exists('BuddyPress')) { themerex_enqueue_style('buddy-style', themerex_get_file_url('/css/buddy-style.css'), array('main-style'), null); } // BB Press customizer if (class_exists('bbPress')) { themerex_enqueue_style('bbpress-style', themerex_get_file_url('/css/bbpress-style.css'), array('main-style'), null); } // Messages themerex_enqueue_style('messages-style', themerex_get_file_url('/js/messages/_messages.css'), array('main-style'), null); // Shortcodes themerex_enqueue_style('shortcodes', themerex_get_file_url('/shortcodes/shortcodes.css'), array('main-style'), null); // Main slider if (get_custom_option('slider_show') == 'yes') { themerex_enqueue_style('swiperslider-style', themerex_get_file_url('/js/swiper/idangerous.swiper.css'), array(), null); themerex_enqueue_style('swiperslider-scrollbar-style', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar.css'), array(), null); themerex_enqueue_style('main-slider-style', themerex_get_file_url('/css/slider-style.css'), array(), null); themerex_enqueue_script('swiperslider', themerex_get_file_url('/js/swiper/idangerous.swiper-2.7.js'), array('jquery'), null, true); themerex_enqueue_script('swiperslider-scrollbar', themerex_get_file_url('/js/swiper/idangerous.swiper.scrollbar-2.4.js'), array('jquery'), null, true); themerex_enqueue_script('flexslider', themerex_get_file_url('/js/jquery.flexslider.min.js'), array('jquery'), null, true); } // Theme skin stylesheet do_action('theme_skin_add_stylesheets'); // Custom fonts and colors if (get_custom_option('theme_skin') != '') { wp_add_inline_style('theme-skin', prepareThemeCustomStyles()); } else { wp_add_inline_style('shortcodes', prepareThemeCustomStyles()); } // Responsive if (get_theme_option('responsive_layouts') == 'yes') { themerex_enqueue_style('responsive', themerex_get_file_url('/css/responsive.css'), array('main-style'), null); do_action('theme_skin_add_responsive'); if (get_custom_option('theme_skin') != '') { $css = apply_filters('theme_skin_add_responsive_inline', ''); if (!empty($css)) { wp_add_inline_style('responsive', $css); } } } // Enqueue scripts //---------------------------------------------------------------------------------------------------------------------------- themerex_enqueue_script('jquery', false, array(), null, true); themerex_enqueue_script('jquery-ui-core', false, array(), null, true); themerex_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true); themerex_enqueue_script('jquery-effects-core', false, array(), null, true); themerex_enqueue_script('jquery-effects-fade', false, array('jquery', 'jquery-effects-core'), null, true); // Load separate theme scripts themerex_enqueue_script('jquery-cookie', themerex_get_file_url('/js/jquery.cookie.js'), array('jquery'), null, true); themerex_enqueue_script('jquery-easing', themerex_get_file_url('/js/jquery.easing.js'), array('jquery'), null, true); themerex_enqueue_script('superfish', themerex_get_file_url('/js/superfish.min.js'), array('jquery'), null, true); themerex_enqueue_script('formstyler', themerex_get_file_url('/js/form_styler/jquery.formstyler.js'), array(), null, true); themerex_enqueue_script('messages', themerex_get_file_url('/js/messages/_messages.js'), array(), null, true); themerex_enqueue_script('smooth-scroll', themerex_get_file_url('/js/SmoothScroll.min.js'), array('jquery'), null, true); themerex_enqueue_script('shortcodes-init', themerex_get_file_url('/shortcodes/shortcodes_init.js'), array(), null, true); themerex_enqueue_script('_utils', themerex_get_file_url('/js/_utils.js'), array(), null, true); themerex_enqueue_script('_front', themerex_get_file_url('/js/_front.js'), array(), null, true); // Chop slider if (file_exists(themerex_get_file_dir('/js/chopslider/jquery.id.chopslider-2.0.0.free.min.js'))) { themerex_enqueue_script('chopslider', themerex_get_file_url('/js/chopslider/jquery.id.chopslider-2.0.0.free.min.js'), array('jquery'), null, true); themerex_enqueue_script('cstransitions', themerex_get_file_url('/js/chopslider/jquery.id.cstransitions-1.0.min.js'), array('jquery'), null, true); } // Video background if (get_custom_option('show_video_bg') == 'yes') { // Media elements library if (get_theme_option('use_mediaelement') == 'yes') { if (floatval(get_bloginfo('version')) < "3.6") { themerex_enqueue_style('mediaplayer-style', themerex_get_file_url('/js/mediaplayer/mediaplayer.css'), array(), null); themerex_enqueue_script('mediaplayer', themerex_get_file_url('/js/mediaplayer/mediaelement.min.js'), array(), null, true); } else { wp_enqueue_style('mediaelement'); wp_enqueue_style('wp-mediaelement'); wp_enqueue_script('mediaelement'); wp_enqueue_script('wp-mediaelement'); } } else { global $wp_scripts; $wp_scripts->done[] = 'mediaelement'; $wp_scripts->done[] = 'wp-mediaelement'; $wp_styles->done[] = 'mediaelement'; $wp_styles->done[] = 'wp-mediaelement'; } } if (get_custom_option('show_video_bg') == 'yes' && get_custom_option('video_bg_youtube_code') != '') { themerex_enqueue_script('video-bg', themerex_get_file_url('/js/jquery.tubular.1.0.js'), array('jquery'), null, true); } // Google map if (get_custom_option('googlemap_show') == 'yes') { themerex_enqueue_script('googlemap', 'http://maps.google.com/maps/api/js?sensor=false', array(), null, true); themerex_enqueue_script('googlemap_init', themerex_get_file_url('/js/_googlemap_init.js'), array(), null, true); } // Theme skin script do_action('theme_skin_add_scripts'); }