refactor
This commit is contained in:
BIN
2026-04-19_17-47-13.png
Normal file
BIN
2026-04-19_17-47-13.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
@@ -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;
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -460,6 +460,7 @@ function twentytwentyfour_test1_assets() {
|
|||||||
|
|
||||||
$landing_css_file = get_theme_file_path( 'assets/css/test1-landing.css' );
|
$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_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 ) {
|
if ( $use_test1_assets ) {
|
||||||
wp_dequeue_style( 'global-styles' );
|
wp_dequeue_style( 'global-styles' );
|
||||||
@@ -468,12 +469,14 @@ function twentytwentyfour_test1_assets() {
|
|||||||
wp_dequeue_style( 'classic-theme-styles' );
|
wp_dequeue_style( 'classic-theme-styles' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( file_exists( $landing_fonts_file ) ) {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'twentytwentyfour-test1-fonts',
|
'twentytwentyfour-test1-fonts',
|
||||||
'https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap',
|
get_theme_file_uri( 'assets/css/fonts-manrope.css' ),
|
||||||
array(),
|
array(),
|
||||||
null
|
(string) filemtime( $landing_fonts_file )
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if ( file_exists( $landing_css_file ) ) {
|
if ( file_exists( $landing_css_file ) ) {
|
||||||
wp_enqueue_style(
|
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' );
|
$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' );
|
||||||
|
|
||||||
|
if ( file_exists( $landing_fonts_file ) ) {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
'twentytwentyfour-test1-fonts',
|
'twentytwentyfour-test1-fonts',
|
||||||
'https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&display=swap',
|
get_theme_file_uri( 'assets/css/fonts-manrope.css' ),
|
||||||
array(),
|
array(),
|
||||||
null
|
(string) filemtime( $landing_fonts_file )
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if ( file_exists( $shared_shell_css ) ) {
|
if ( file_exists( $shared_shell_css ) ) {
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
|
|||||||
Reference in New Issue
Block a user