:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('content-width') ).'px; } '."\n"; } // border radius design if ( get_theme_mod('border-radius-design','0') != '0' ) { $styles .= ' .slick-featured, .blog-card, .blog-card-right-inner, .blog-card-bottom, .blog-card-bottom-list li.blog-card-more a, .blog-card-date, .alx-tabs-nav, .alx-posts img, .author-bio, .sharrre-footer .sharrre .box, .sharrre-footer .sharrre .count, .themeform input[type="submit"], .themeform input:not([type="submit"]):not([type="checkbox"]), .themeform textarea { border-radius: '.esc_attr( get_theme_mod('border-radius-design') ).'px; } .blog-card:after, .blog-card-single-content, .blog-card-single-content:after { border-radius: 0 0 '.esc_attr( get_theme_mod('border-radius-design') ).'px '.esc_attr( get_theme_mod('border-radius-design') ).'px; } @media only screen and (max-width: 719px) { .blog-card-single-content { border-radius: '.esc_attr( get_theme_mod('border-radius-design') ).'px; } } '."\n"; } // gradient left if ( get_theme_mod('gradient-left','#be1e1e') != '#be1e1e' ) { $styles .= ' #theme-toggle-btn:before, .author-bio .bio-avatar:after, .commentlist li.bypostauthor > .comment-body:after, .commentlist li.comment-author-admin > .comment-body:after, .themeform input[type="submit"], .blog-card-bottom-list li.blog-card-more a { background-image: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%)!important; } '."\n"; } // gradient right if ( get_theme_mod('gradient-right','#ff0000') != '#ff0000' ) { $styles .= ' #theme-toggle-btn:before, .author-bio .bio-avatar:after, .commentlist li.bypostauthor > .comment-body:after, .commentlist li.comment-author-admin > .comment-body:after, .themeform input[type="submit"], .blog-card-bottom-list li.blog-card-more a { background-image: linear-gradient(90deg, '.esc_attr( get_theme_mod('gradient-left') ).' 0%, '.esc_attr( get_theme_mod('gradient-right') ).' 100%)!important; } '."\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"; } // header text color if ( get_theme_mod( 'header_textcolor' ) != '' ) { $styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n"; } if ( get_theme_mod('dark','off') == 'on' ) { wp_add_inline_style( 'blogcards-dark', $styles ); } else { wp_add_inline_style( 'blogcards-style', $styles ); } } } } add_action( 'wp_enqueue_scripts', 'blogcards_dynamic_css' );