*:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('single-content-width') ).'px; } '."\n"; } // page box max-width if ( get_theme_mod('page-box-width','940') != '940' ) { $styles .= ' .page .post-wrapper { max-width: '.esc_attr( get_theme_mod('page-box-width') ).'px; } '."\n"; } // page content max-width if ( get_theme_mod('page-content-width','740') != '740' ) { $styles .= ' .page .entry-header, .page .entry-footer, .page .entry > *:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('page-content-width') ).'px; } '."\n"; } // link color if ( get_theme_mod('color-link','#000000') != '#000000' ) { $styles .= ' .entry a { color: '.esc_attr( get_theme_mod('color-link') ).'; } '."\n"; } // border radius if ( get_theme_mod('border-radius','10') != '10' ) { $styles .= ' .toggle-search, #profile-image img, .masonry-item .masonry-inner, .masonry-item .entry-category a, .pagination ul li a, .post-wrapper, .author-bio, .sharrre-container, .post-nav, .comment-tabs li a, #commentform, .alx-tab img, .alx-posts img { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px; } .masonry-item img { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('border-radius') ).'px 0 0; } .toggle-search.active, .col-2cl .sidebar .widget { border-radius: '.esc_attr( get_theme_mod('border-radius') ).'px 0 0 '.esc_attr( get_theme_mod('border-radius') ).'px; } .search-expand, .col-2cr .sidebar .widget { border-radius: 0 '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('border-radius') ).'px 0; } #footer-bottom #back-to-top { border-radius: 0 0 '.esc_attr( get_theme_mod('border-radius') ).'px '.esc_attr( get_theme_mod('border-radius') ).'px; } '."\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"; } wp_add_inline_style( 'gridzone-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'gridzone_dynamic_css' );