Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > src > Launch > lib
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__tests__ | Directory | - | - | |
blocks.js | File | 417 bytes | September 12 2024 19:49:54. | |
fonts-helpers.js | File | 1876 bytes | April 22 2025 21:31:24. | |
linkPages.js | File | 6552 bytes | May 12 2025 16:42:28. | |
logo.js | File | 1331 bytes | May 12 2025 16:42:28. | |
pages.js | File | 2281 bytes | July 16 2025 19:39:24. | |
preview-helpers.js | File | 1636 bytes | February 04 2025 00:18:34. | |
util.js | File | 1848 bytes | May 12 2025 16:42:28. | |
wp.js | File | 10283 bytes | July 16 2025 19:39:24. |
const FONT_VAR_PREFIX = '--wp--preset--font-family'; const HEADING_FONT_VAR_KEY = '--wp--preset--font-family--heading'; const BODY_FONT_VAR_KEY = '--wp--preset--font-family--body'; // Generates font links and styles from custom variations to override fonts in `theme-processed.json` export const getFontOverrides = (variation) => { let customFontLinks = ''; let fontOverrides = ''; if (!variation?.title) { return { customFontLinks, fontOverrides }; } // These values look like `var(--wp--preset--font-family--${fontFamilySlug})` const headingFontVarValue = variation.styles?.elements?.heading?.typography?.fontFamily; const bodyFontVarValue = variation.styles?.typography?.fontFamily; const customFonts = variation.settings?.typography?.fontFamilies?.custom ?? []; if (headingFontVarValue) { fontOverrides += `:root { ${HEADING_FONT_VAR_KEY}: ${headingFontVarValue}; }`; fontOverrides += `h1, h2, h3, h4, h5, h6 { font-family: ${headingFontVarValue} !important; }`; } if (bodyFontVarValue) { fontOverrides += `:root { ${BODY_FONT_VAR_KEY}: ${bodyFontVarValue}; }`; fontOverrides += `body { font-family: ${bodyFontVarValue} !important; }`; } for (const font of customFonts) { const customFontLink = `<link id="ext-custom-font-${font.slug}" rel="stylesheet" href="${font.css}">`; if (!customFontLinks.includes(customFontLink)) { customFontLinks += customFontLink; } const fontOverride = `:root { ${FONT_VAR_PREFIX}--${font.slug}: "${font.fontFamily}"; }`; if (!fontOverrides.includes(fontOverride)) { fontOverrides += fontOverride; } } return { customFontLinks, fontOverrides }; };
SILENT KILLER Tool