urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ); if ( $fonts ) { $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } endif; // Add class to body. add_filter( 'body_class', 'corponotch_law_add_body_class' ); function corponotch_law_add_body_class( $classes ) { return array_merge( $classes, array( 'header-font-8', 'body-font-4' ) ); } if ( ! function_exists( 'corponotch_law_theme_defaults' ) ) : /** * Customize theme defaults. * * @since 1.0.0 * * @param array $defaults Theme defaults. * @param array Custom theme defaults. */ function corponotch_law_theme_defaults( $defaults ) { $defaults['enable_slider'] = false; $defaults['blog_column_type'] = 'column-1'; return $defaults; } endif; add_filter( 'corponotch_default_theme_options', 'corponotch_law_theme_defaults', 99 ); if ( ! function_exists( 'corponotch_law_header_start' ) ) : /** * Header starts html codes * * @since CorpoNotch 1.0.0 */ function corponotch_law_header_start() { $sticky_header = corponotch_theme_option( 'enable_sticky_header' ) ? 'sticky-header' : ''; ?>