winter/modules/backend/layouts/_custom_styles.php

15 lines
384 B
PHP

<?php
use Backend\Models\BrandSetting;
use Backend\Models\EditorSetting;
?>
<?php if (BrandSetting::isConfigured() || BrandSetting::isBaseConfigured()): ?>
<style>
<?= BrandSetting::renderCss() ?>
</style>
<?php endif ?>
<?php if (EditorSetting::isConfigured()): ?>
<style>
<?= strip_tags(EditorSetting::renderCss()) ?>
</style>
<?php endif ?>