h3:after, .widget_rss ul li a, .widget_calendar a, .alx-tabs-nav li.active a, .alx-tab .tab-item-category a, .alx-posts .post-item-category a, .alx-tab li:hover .tab-item-title a, .alx-tab li:hover .tab-item-comment a, .alx-posts li:hover .post-item-title a, .comment-tabs li.active a, .comment-awaiting-moderation, .child-menu a:hover, .child-menu .current_page_item > a, .wp-pagenavi a { color: '.esc_attr( get_theme_mod('color-1') ).'; } .themeform input[type="button"], .themeform input[type="reset"], .themeform input[type="submit"], .themeform button[type="button"], .themeform button[type="reset"], .themeform button[type="submit"], #header-inner, #flexslider-featured .flex-control-nav li a.flex-active, .post-tags a:hover, .author-bio .bio-avatar:after, .widget_calendar caption, .commentlist li.bypostauthor > .comment-body:after, .commentlist li.comment-author-admin > .comment-body:after { background-color: '.esc_attr( get_theme_mod('color-1') ).'; } .alx-tabs-nav li.active a, .comment-tabs li.active a, .wp-pagenavi a:hover, .wp-pagenavi a:active, .wp-pagenavi span.current { border-bottom-color: '.esc_attr( get_theme_mod('color-1') ).'; } '."\n"; } // header color if ( get_theme_mod('color-header','#000000') != '#000000' ) { $styles .= ' #header-inner-inner-inner { background-color: '.esc_attr( get_theme_mod('color-header') ).'; } #header .nav-menu:not(.mobile) > div > ul > li.current_page_item > span:before, #header .nav-menu:not(.mobile) > div > ul > li.current-menu-item > span:before, #header .nav-menu:not(.mobile) > div > ul > li.current-menu-ancestor > span:before, #header .nav-menu:not(.mobile) > div > ul > li.current-post-parent > span:before { border-top: 8px solid '.esc_attr( get_theme_mod('color-header') ).'!important; } .site-title { border-bottom-color: rgba(255,255,255,0.1)!important; } '."\n"; } // gradient left if ( get_theme_mod('gradient-left','#da1b60') != '#da1b60' ) { $styles .= ' #header-inner { background-image: -webkit-gradient(linear,right bottom,left top,from('.esc_attr( get_theme_mod('gradient-right') ).'),to('.esc_attr( get_theme_mod('gradient-left') ).')); background-image: linear-gradient(to top left,'.esc_attr( get_theme_mod('gradient-right') ).','.esc_attr( get_theme_mod('gradient-left') ).'); } '."\n"; } // gradient right if ( get_theme_mod('gradient-right','#ff8a00') != '#ff8a00' ) { $styles .= ' #header-inner { background-image: -webkit-gradient(linear,right bottom,left top,from('.esc_attr( get_theme_mod('gradient-right') ).'),to('.esc_attr( get_theme_mod('gradient-left') ).')); background-image: linear-gradient(to top left,'.esc_attr( get_theme_mod('gradient-right') ).','.esc_attr( get_theme_mod('gradient-left') ).'); } '."\n"; } // header logo max-height if ( get_theme_mod('logo-max-height','60') != '60' ) { $styles .= '.site-title a img { max-height: '.esc_attr( get_theme_mod('logo-max-height') ).'px; }'."\n"; } // background color if ( get_theme_mod('color-background','#eeeeee') != '#eeeeee' ) { $styles .= 'body { background-color: '.esc_attr( get_theme_mod('color-background') ).'; }'."\n"; } // header text color if ( get_theme_mod( 'header_textcolor' ) != '' ) { $styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n"; } wp_add_inline_style( 'curver-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'curver_dynamic_css' );