koblog/bl-themes/defaultTheme/php/head.php
2025-07-15 16:56:15 +02:00

45 lines
1.5 KiB
PHP

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Koblog">
<!-- Dynamic title tag -->
<?php echo Theme::metaTags('title'); ?>
<!-- Dynamic description tag -->
<?php echo Theme::metaTags('description'); ?>
<!-- Include Favicon -->
<?php echo Theme::favicon(); ?>
<!-- Include CSS Styles from this theme -->
<?php echo Theme::css('css/style.css'); ?>
<?php if ($themePlugin->getValue('accentColor') != "default") : ?>
<?php echo Theme::css('css/'.$themePlugin->getValue('accentColor').'.css'); ?>
<?php endif ?>
<style>
<?php if ($themePlugin->haveBanner()): ?>
#main-header {
background-image: url("<?php echo $themePlugin->bannerURI(); ?>");
text-shadow: 0px 1px 1px rgba(0,0,0,0.8);
<?php if ($themePlugin->getValue('bannerTiled') == false) : ?>
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
<?php endif ?>
}
<?php endif ?>
<?php if ($themePlugin->haveBackground()): ?>
html {
background-image: url("<?php echo $themePlugin->backgroundURI(); ?>");
<?php if ($themePlugin->getValue('backgroundTiled') == false) : ?>
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
<?php endif ?>
}
<?php endif ?>
</style>
<!-- Load Koblog Plugins: Site head -->
<?php Theme::plugins('siteHead'); ?>