<?php
/* ------------------------------------------------------------------------- *
 *  Dynamic styles
/* ------------------------------------------------------------------------- */

if (!function_exists('nextzenmag_get_inline_css')) :
    /**
     * Outputs theme custom CSS.
     *
     * @since 1.0.0
     */
    function nextzenmag_get_inline_css()
    {
        $defaults = nextzenmag_get_all_customizer_default_values();
        $background_color = get_theme_mod('background_color');

        $nextzenmag_site_logo_height = nextzenmag_get_option('nextzenmag_site_logo_height');

        ob_start();
        ?>
        <?php if (!empty($background_color) && $background_color != 'f5f5f5') :
        ?>
        :root {
        --wpi--base-bg-color: #<?php echo esc_attr($background_color); ?>;
        }
    <?php endif; ?>

        <?php if ($nextzenmag_site_logo_height !== $defaults['nextzenmag_site_logo_height']) : ?>
        .site-logo img {
        height:<?php echo absint($nextzenmag_site_logo_height); ?>px;
        }
    <?php endif; ?>
        <?php
        return ob_get_clean();
    }
endif;
