.pb-content-sidebar > .c-sidebar",{topSpacing:100,bottomSpacing:0,containerSelector:".site-content > .pb-content-sidebar",minWidth:' . esc_attr( $pressbook_sticky_bp ) . '});new StickySidebar(".site-content > .pb-content-sidebar > .c-sidebar-right",{topSpacing:100,bottomSpacing:0,containerSelector:".site-content > .pb-content-sidebar",minWidth:' . esc_attr( $pressbook_sticky_bp ) . '});}catch(e){}' ); } } /** * Get fonts URL. */ public static function fonts_url() { $fonts_url = ''; $font_families = array(); $query_params = array(); /* translators: If there are characters in your language that are not supported by Inter, translate this to 'off'. Do not translate into your own language. */ $inter = _x( 'on', 'Inter font: on or off', 'pressbook' ); if ( 'off' !== $inter ) { array_push( $font_families, 'Inter:wght@400;600' ); } /* translators: If there are characters in your language that are not supported by Lato, translate this to 'off'. Do not translate into your own language. */ $lato = _x( 'on', 'Lato font: on or off', 'pressbook' ); if ( 'off' !== $lato ) { array_push( $font_families, 'Lato:ital,wght@0,400;0,700;1,400;1,700' ); } if ( count( $font_families ) > 0 ) { foreach ( $font_families as $font_family ) { array_push( $query_params, ( 'family=' . $font_family ) ); } array_push( $query_params, 'display=swap' ); $fonts_url = ( 'https://fonts.googleapis.com/css2?' . implode( '&', $query_params ) ); } $fonts_url = apply_filters( 'pressbook_fonts_url', $fonts_url ); $fonts_url = esc_url_raw( $fonts_url ); if ( function_exists( 'wptt_get_webfont_url' ) ) { return wptt_get_webfont_url( $fonts_url ); } return $fonts_url; } }