functions.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * Twenty Twenty-Two (Mint) functions and definitions
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/theme-functions/
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twenty_Two_Mint
  9. * @since 1.0.0
  10. */
  11. /**
  12. * Get font face styles.
  13. * Called by functions twentytwentytwo_styles() and twentytwentytwo_editor_styles().
  14. *
  15. * @return string
  16. */
  17. function twentytwentytwo_get_font_face_styles() {
  18. return "
  19. /* latin-ext */
  20. @font-face {
  21. font-family: 'Bodoni Moda';
  22. font-style: italic;
  23. font-weight: 400;
  24. font-display: swap;
  25. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTB7PxzY382XsXX63LUYJSPUqb0pL6OQqxrZLnVbtxcXgOXEFZ8mYc.woff2) format('woff2');
  26. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  27. }
  28. /* latin */
  29. @font-face {
  30. font-family: 'Bodoni Moda';
  31. font-style: italic;
  32. font-weight: 400;
  33. font-display: swap;
  34. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTB7PxzY382XsXX63LUYJSPUqb0pL6OQqxrZLnVbtxSXgOXEFZ8.woff2) format('woff2');
  35. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  36. }
  37. /* latin-ext */
  38. @font-face {
  39. font-family: 'Bodoni Moda';
  40. font-style: italic;
  41. font-weight: 700;
  42. font-display: swap;
  43. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTB7PxzY382XsXX63LUYJSPUqb0pL6OQqxrZLnVbtxcXgOXEFZ8mYc.woff2) format('woff2');
  44. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  45. }
  46. /* latin */
  47. @font-face {
  48. font-family: 'Bodoni Moda';
  49. font-style: italic;
  50. font-weight: 700;
  51. font-display: swap;
  52. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTB7PxzY382XsXX63LUYJSPUqb0pL6OQqxrZLnVbtxSXgOXEFZ8.woff2) format('woff2');
  53. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  54. }
  55. /* latin-ext */
  56. @font-face {
  57. font-family: 'Bodoni Moda';
  58. font-style: normal;
  59. font-weight: 400;
  60. font-display: swap;
  61. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTH7PxzY382XsXX63LUYL6GYFcan6NJrKp-VPj1JuxQVAS1EmZ9.woff2) format('woff2');
  62. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  63. }
  64. /* latin */
  65. @font-face {
  66. font-family: 'Bodoni Moda';
  67. font-style: normal;
  68. font-weight: 400;
  69. font-display: swap;
  70. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTH7PxzY382XsXX63LUYL6GYFcan6NJrKp-VPj1KOxQVAS1Eg.woff2) format('woff2');
  71. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  72. }
  73. /* latin-ext */
  74. @font-face {
  75. font-family: 'Bodoni Moda';
  76. font-style: normal;
  77. font-weight: 700;
  78. font-display: swap;
  79. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTH7PxzY382XsXX63LUYL6GYFcan6NJrKp-VPj1JuxQVAS1EmZ9.woff2) format('woff2');
  80. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  81. }
  82. /* latin */
  83. @font-face {
  84. font-family: 'Bodoni Moda';
  85. font-style: normal;
  86. font-weight: 700;
  87. font-display: swap;
  88. src: url(https://fonts.gstatic.com/s/bodonimoda/v7/aFTH7PxzY382XsXX63LUYL6GYFcan6NJrKp-VPj1KOxQVAS1Eg.woff2) format('woff2');
  89. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  90. }
  91. ";
  92. }