Files
grzanieplus.pl/apps/frontend/templates/theme/climb/_fonts.html
2025-03-12 17:06:23 +01:00

47 lines
1.8 KiB
HTML

{assign var='font_style' value=$theme_config->getConfigParameter('layout_config.font_style')}
{if $font_style == 'poppins'}
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,400;1,600&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,400;1,600&display=swap" rel="stylesheet" type="text/css">
{literal}
<style>
body
{
font-family: 'Poppins', sans-serif;
}
</style>
{/literal}
{elseif $font_style == 'pt_serif'}
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" type="text/css">
{literal}
<style>
body
{
font-family: 'PT Serif', serif;
}
</style>
{/literal}
{else}
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet" type="text/css">
{/if}
<link href="https://fonts.googleapis.com/css2?family=Asap+Condensed&family=Oswald:wght@500&display=swap" rel="preload" as="style">
<link href="https://fonts.googleapis.com/css2?family=Asap+Condensed&family=Oswald:wght@500&display=swap" rel="stylesheet" type="text/css">
{include_file id="_script_theme"}
{literal}
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
$(window).load(function() {
const topHeight = $('#header-navbar').height();
$('#two-column-layout, #one-column-layout').css('padding-top', topHeight);
});
});
//]]>
</script>
{/literal}