diff --git a/2026-04-19_17-47-13.png b/2026-04-19_17-47-13.png new file mode 100644 index 00000000..d848b16d Binary files /dev/null and b/2026-04-19_17-47-13.png differ diff --git a/wp-content/themes/twentytwentyfour/assets/css/fonts-manrope.css b/wp-content/themes/twentytwentyfour/assets/css/fonts-manrope.css new file mode 100644 index 00000000..33a4d1e9 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/assets/css/fonts-manrope.css @@ -0,0 +1,17 @@ +@font-face { + font-family: "Manrope"; + font-style: normal; + font-weight: 400 800; + font-display: swap; + src: url("../fonts/manrope/Manrope-cyrillic.woff2") format("woff2"); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} + +@font-face { + font-family: "Manrope"; + font-style: normal; + font-weight: 400 800; + font-display: swap; + src: url("../fonts/manrope/Manrope-latin.woff2") format("woff2"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/manrope/Manrope-cyrillic.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/manrope/Manrope-cyrillic.woff2 new file mode 100644 index 00000000..3a062296 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/manrope/Manrope-cyrillic.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/manrope/Manrope-latin.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/manrope/Manrope-latin.woff2 new file mode 100644 index 00000000..71eb731d Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/manrope/Manrope-latin.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/functions.php b/wp-content/themes/twentytwentyfour/functions.php index 0aee26e5..18922841 100644 --- a/wp-content/themes/twentytwentyfour/functions.php +++ b/wp-content/themes/twentytwentyfour/functions.php @@ -460,6 +460,7 @@ function twentytwentyfour_test1_assets() { $landing_css_file = get_theme_file_path( 'assets/css/test1-landing.css' ); $landing_js_file = get_theme_file_path( 'assets/js/test1-landing.js' ); + $landing_fonts_file = get_theme_file_path( 'assets/css/fonts-manrope.css' ); if ( $use_test1_assets ) { wp_dequeue_style( 'global-styles' ); @@ -468,12 +469,14 @@ function twentytwentyfour_test1_assets() { wp_dequeue_style( 'classic-theme-styles' ); } - wp_enqueue_style( - 'twentytwentyfour-test1-fonts', - 'https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap', - array(), - null - ); + if ( file_exists( $landing_fonts_file ) ) { + wp_enqueue_style( + 'twentytwentyfour-test1-fonts', + get_theme_file_uri( 'assets/css/fonts-manrope.css' ), + array(), + (string) filemtime( $landing_fonts_file ) + ); + } if ( file_exists( $landing_css_file ) ) { wp_enqueue_style( @@ -787,13 +790,16 @@ function twentytwentyfour_test1_shared_shell_assets() { } $shared_shell_css = get_theme_file_path( 'assets/css/test1-shared-shell.css' ); + $landing_fonts_file = get_theme_file_path( 'assets/css/fonts-manrope.css' ); - wp_enqueue_style( - 'twentytwentyfour-test1-fonts', - 'https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap', - array(), - null - ); + if ( file_exists( $landing_fonts_file ) ) { + wp_enqueue_style( + 'twentytwentyfour-test1-fonts', + get_theme_file_uri( 'assets/css/fonts-manrope.css' ), + array(), + (string) filemtime( $landing_fonts_file ) + ); + } if ( file_exists( $shared_shell_css ) ) { wp_enqueue_style(