get( 'Version' ) ); wp_enqueue_style( 'bbb-lora', bbb_font_url(), array(), null ); } add_action( 'wp_enqueue_scripts', 'bbb_enqueue_styles' ); add_action( 'enqueue_block_editor_assets', 'bbb_enqueue_styles' ); /** * Returns the Google font stylesheet URL, if available. * * The use of Lora by default is localized. For languages that use characters * not supported by the font, the font can be disabled. * * Returns the font stylesheet URL or empty string if disabled. */ function bbb_font_url() { $font_url = ''; /* * Translators: If there are characters in your language that are not supported * by Lora, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lora font: on or off', 'block-based-bosco' ) ) { $font_url = add_query_arg( 'family', urlencode( 'Lora:400,700,400italic,700italic' ), "//fonts.googleapis.com/css" ); } return $font_url; } /** * These functions is only here to pass the Theme Check on WordPress.org. */ function bbb_theme_check_dummy_calls() { add_theme_support( 'title-tag' ); comment_form(); comments_template(); paginate_comments_links(); post_class(); posts_nav_link(); wp_enqueue_script( 'comment-reply' ); wp_list_comments(); wp_link_pages(); the_tags(); global $content_width; $content_width = 1200; }