<?php wp_head(); ?> </head> <body <?php $class = $style = ''; if (($body_style = get_custom_option('body_style')) == 'boxed') { $customizer = get_theme_option('show_theme_customizer') == 'yes'; if ($customizer && ($img = (int) getValueGPC('bg_image', 0)) > 0) { $class = 'bg_image_' . $img; } else { if ($customizer && ($img = (int) getValueGPC('bg_pattern', 0)) > 0) { $class = 'bg_pattern_' . $img; } else { if ($customizer && ($img = getValueGPC('bg_color', '')) != '') { $style = 'background-color: ' . $img . ';'; } else { if (($img = get_custom_option('bg_custom_image')) != '') { $style = 'background: url(' . $img . ') ' . str_replace('_', ' ', get_custom_option('bg_custom_image_position')) . ' no-repeat fixed;'; } else { if (($img = get_custom_option('bg_custom_pattern')) != '') { $style = 'background: url(' . $img . ') 0 0 repeat fixed;'; } else { if (($img = get_custom_option('bg_image')) > 0) { $class = 'bg_image_' . $img; } else { if (($img = get_custom_option('bg_pattern')) > 0) { $class = 'bg_pattern_' . $img; } }
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 get_custom_option($name, $defa = null, $post_id = 0, $cat_id = 0) { $defaults = array('default', 'inherit'); if ($cat_id > 0) { $rez = getCategoryInheritedProperty($cat_id, $name); if ($rez == '') { $rez = get_theme_option($name, $defa); } } else { if ($post_id > 0) { $rez = get_theme_option($name, $defa); $custom_options = get_post_meta($post_id, 'post_custom_options', true); if (isset($custom_options[$name]) && !in_array(themerex_strtolower($custom_options[$name]), $defaults)) { $rez = $custom_options[$name]; } else { $categories = getCategoriesByPostId($post_id); $tmp = ''; for ($cc = 0; $cc < count($categories) && $tmp == ''; $cc++) { $tmp = getCategoryInheritedProperty($categories[$cc]['term_id'], $name); } if ($tmp != '') { $rez = $tmp; } } } else { global $THEMEREX_post_options, $THEMEREX_cat_options, $THEMEREX_custom_options, $THEMEREX_shop_options; if (isset($THEMEREX_custom_options[$name])) { $rez = $THEMEREX_custom_options[$name]; } else { $rez = get_theme_option($name, $defa); if (is_woocommerce_page() && isset($THEMEREX_shop_options[$name]) && !in_array(themerex_strtolower(is_array($THEMEREX_shop_options[$name]) ? $THEMEREX_shop_options[$name][0] : $THEMEREX_shop_options[$name]), $defaults)) { $rez = is_array($THEMEREX_shop_options[$name]) ? $THEMEREX_shop_options[$name][0] : $THEMEREX_shop_options[$name]; } if (!is_single() && isset($THEMEREX_post_options[$name]) && !in_array(themerex_strtolower(is_array($THEMEREX_post_options[$name]) ? $THEMEREX_post_options[$name][0] : $THEMEREX_post_options[$name]), $defaults)) { $rez = is_array($THEMEREX_post_options[$name]) ? $THEMEREX_post_options[$name][0] : $THEMEREX_post_options[$name]; } if (isset($THEMEREX_cat_options[$name]) && !in_array(themerex_strtolower($THEMEREX_cat_options[$name]), $defaults)) { $rez = $THEMEREX_cat_options[$name]; } if (is_single() && isset($THEMEREX_post_options[$name]) && !in_array(themerex_strtolower(is_array($THEMEREX_post_options[$name]) ? $THEMEREX_post_options[$name][0] : $THEMEREX_post_options[$name]), $defaults)) { $rez = is_array($THEMEREX_post_options[$name]) ? $THEMEREX_post_options[$name][0] : $THEMEREX_post_options[$name]; } if (get_theme_option('show_theme_customizer') == 'yes') { $tmp = getValueGPC($name, $rez); if (!in_array(themerex_strtolower($tmp), $defaults)) { $rez = $tmp; } } $THEMEREX_custom_options[$name] = $rez; } } } return $rez; }
function themerex_init_template() { // AJAX Queries settings global $THEMEREX_ajax_nonce, $THEMEREX_ajax_url; $THEMEREX_ajax_nonce = wp_create_nonce('ajax_nonce'); $THEMEREX_ajax_url = admin_url('admin-ajax.php'); // Set theme params from GET if (isset($_GET['set']) && $_GET['set'] == 1) { foreach ($_GET as $k => $v) { if (get_theme_option($k, null) !== null) { setcookie($k, $v, 0, '/'); $_COOKIE[$k] = $v; } } } // Get custom options from current category / page / post / shop load_custom_options(); // Reject old browsers support global $THEMEREX_jreject; $THEMEREX_jreject = false; if (!isset($_COOKIE['jreject'])) { themerex_enqueue_style('jquery_reject-style', themerex_get_file_url('/js/jreject/css/jquery.reject.css'), array(), null); themerex_enqueue_script('jquery_reject', themerex_get_file_url('/js/jreject/jquery.reject.js'), array('jquery'), null, true); setcookie('jreject', 1, 0, '/'); $THEMEREX_jreject = true; } // Main menu global $THEMEREX_mainmenu; if (get_custom_option('show_top_panel') != 'hide') { $menu_slug = get_custom_option('menu_main'); $args = array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'mainmenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'mainmenu'); if (get_theme_option('custom_menu') == 'yes' && class_exists('themerex_walker')) { $args['walker'] = new themerex_walker(); } $THEMEREX_mainmenu = wp_nav_menu($args); } else { $THEMEREX_mainmenu = ''; } // User menu global $THEMEREX_usermenu; if (get_custom_option('show_top_panel') != 'hide' && get_custom_option('show_user_menu') == 'yes') { $menu_slug = get_custom_option('menu_user'); $THEMEREX_usermenu = wp_nav_menu(array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'usermenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'usermenu')); } else { $THEMEREX_usermenu = ''; } // Side menu global $THEMEREX_sidemenu; if (get_custom_option('show_left_panel') == 'yes') { $menu_slug = get_custom_option('menu_side'); $THEMEREX_sidemenu = wp_nav_menu(array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'sidemenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'sidemenu')); } else { $THEMEREX_sidemenu = ''; } // Panel menu global $THEMEREX_panelmenu; if (get_custom_option('show_right_panel') == 'yes') { $menu_slug = get_custom_option('menu_right'); $THEMEREX_panelmenu = wp_nav_menu(array('menu' => empty($menu_slug) || $menu_slug == 'default' || is_inherit_option($menu_slug) ? '' : $menu_slug, 'container' => '', 'container_class' => '', 'container_id' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'menu_class' => '', 'menu_id' => 'panelmenu', 'echo' => false, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 11, 'theme_location' => 'panelmenu')); } else { $THEMEREX_panelmenu = ''; } // Include current skin $skin = themerex_escape_shell_cmd(get_custom_option('theme_skin')); if (file_exists(themerex_get_file_dir('/skins/' . $skin . '/' . $skin . '.php'))) { require_once themerex_get_file_dir('/skins/' . $skin . '/' . $skin . '.php'); } // Logo image and icon from skin global $logo_text, $logo_slogan, $logo_icon, $logo_image, $logo_side, $logo_fixed, $logo_footer; $logo_text = get_custom_option('logo_text'); $logo_slogan = get_custom_option('logo_slogan'); $menu_align = get_custom_option('menu_align'); if ($logo_slogan == '') { $logo_slogan = get_bloginfo('description'); } $logo_icon = $logo_image = $logo_side = $logo_fixed = $logo_footer = ''; if (($logo_icon = get_custom_option('logo_icon')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-icon.png'))) { $logo_icon = themerex_get_file_url('/skins/' . $skin . '/images/logo-icon.png'); } if ($menu_align == 'left' || $menu_align == 'center') { if (($logo_image = get_custom_option('logo_top')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-top.png'))) { $logo_image = themerex_get_file_url('/skins/' . $skin . '/images/logo-top.png'); } } if ($logo_image == '' && ($logo_image = get_custom_option('logo_image')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo.png'))) { $logo_image = themerex_get_file_url('/skins/' . $skin . '/images/logo.png'); } if (($logo_side = get_custom_option('logo_side')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-side.png'))) { $logo_side = themerex_get_file_url('/skins/' . $skin . '/images/logo-side.png'); } if ($logo_side == '') { $logo_side = $logo_image; } if (($logo_fixed = get_custom_option('logo_fixed')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-fixed.png'))) { $logo_fixed = themerex_get_file_url('/skins/' . $skin . '/images/logo-fixed.png'); } if ($logo_fixed == '') { $logo_fixed = $logo_image; } if (($logo_footer = get_custom_option('logo_image_footer')) == '' && file_exists(themerex_get_file_dir('/skins/' . $skin . '/images/logo-footer.png'))) { $logo_footer = themerex_get_file_url('/skins/' . $skin . '/images/logo-footer.png'); } if ($logo_footer == '') { $logo_footer = $logo_image; } global $THEMEREX_shop_mode; $THEMEREX_shop_mode = getValueGPC('themerex_shop_mode'); if (empty($THEMEREX_shop_mode)) { $THEMEREX_shop_mode = get_custom_option('shop_mode', ''); } if (empty($THEMEREX_shop_mode) || !is_archive()) { $THEMEREX_shop_mode = 'thumbs'; } }
</div> </div> <?php } ?> <div id="tabsFavorite" class="tabsMenuBody"> <div class="addBookmarkArea"><a href="#" class="addBookmark"><?php _e('add bookmark', 'themerex'); ?> </a></div> <div class="sc_scroll sc_scroll_vertical swiper-slider-container scroll-container scroll-no-swiping" id="bookmarks_scroll"> <div class="sc_scroll_wrapper swiper-wrapper"> <div class="sc_scroll_slide swiper-slide swiper-no-swiping"> <?php $list = getValueGPC('themerex_bookmarks', ''); if (!empty($list)) { $list = json_decode($list, true); } ?> <ol class="listBookmarks"> <?php if (!empty($list)) { foreach ($list as $bm) { echo '<li><a href="' . $bm['url'] . '">' . $bm['title'] . '</a><a href="#" class="delBookmark icon-cancel"></a></li>'; } } ?> </ol> </div> </div>
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(); }
function get_custom_option($name, $defa = null, $post_id = 0, $cat_id = 0) { if (isset($_GET[$name])) { $rez = $_GET[$name]; } else { if ($cat_id > 0) { $rez = get_category_inherited_property($cat_id, $name); if ($rez == '') { $rez = get_theme_option($name, $defa); } } else { if ($post_id > 0) { $rez = get_theme_option($name, $defa); $custom_options = get_post_meta($post_id, 'post_custom_options', true); if (isset($custom_options[$name]) && !is_inherit_option($custom_options[$name])) { $rez = $custom_options[$name]; } else { if (is_category()) { $categories = array(); $categories[] = get_queried_object(); } else { $categories = getCategoriesByPostId($post_id); } $tmp = ''; for ($cc = 0; $cc < count($categories) && (empty($tmp) || is_inherit_option($tmp)); $cc++) { $tmp = get_category_inherited_property(is_object($categories[$cc]) ? $categories[$cc]->term_id : $categories[$cc]['term_id'], $name); } if ($tmp != '') { $rez = $tmp; } } } else { global $THEMEREX_post_options, $THEMEREX_cat_options, $THEMEREX_custom_options, $THEMEREX_shop_options; if (isset($THEMEREX_custom_options[$name])) { $rez = $THEMEREX_custom_options[$name]; } else { $rez = get_theme_option($name, $defa); if (is_woocommerce_page() && isset($THEMEREX_shop_options[$name]) && !is_inherit_option($THEMEREX_shop_options[$name])) { $rez = is_array($THEMEREX_shop_options[$name]) ? $THEMEREX_shop_options[$name][0] : $THEMEREX_shop_options[$name]; } if (!is_single() && isset($THEMEREX_post_options[$name]) && !is_inherit_option($THEMEREX_post_options[$name])) { $rez = is_array($THEMEREX_post_options[$name]) ? $THEMEREX_post_options[$name][0] : $THEMEREX_post_options[$name]; } if (isset($THEMEREX_cat_options[$name]) && !is_inherit_option($THEMEREX_cat_options[$name])) { $rez = $THEMEREX_cat_options[$name]; } if (is_single() && isset($THEMEREX_post_options[$name]) && !is_inherit_option($THEMEREX_post_options[$name])) { $rez = is_array($THEMEREX_post_options[$name]) ? $THEMEREX_post_options[$name][0] : $THEMEREX_post_options[$name]; } if (get_theme_option('show_theme_customizer') == 'yes') { $tmp = getValueGPC($name, $rez); if (!is_inherit_option($tmp)) { $rez = $tmp; } } $THEMEREX_custom_options[$name] = $rez; } } } } return $rez; }
function showThemeSelector($name, $title) { static $themes; if (!isset($themes) || !$themes) { $themes = getThemesList(true); } $val = getValueGPC($name, 'default'); //get_custom_option($name); ?> <div class="co_form_subrow"> <input type="hidden" name="co_<?php echo $name; ?> " value="<?php echo $val; ?> " /> <select id="co_<?php echo $name; ?> " class="co_theme_selector"> <?php foreach ($themes as $k => $v) { echo '<option value="' . $k . '"' . ($k == $val ? ' selected="selected"' : '') . '>' . $v . '</option>'; } ?> </select> <span class="co_label_light"><?php echo $title; ?> </span> </div> <?php }