HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/public_html/khaodeedee/blog/wp-content/themes/covernews/inc/custom-style.php
<?php

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}


/**
 * Customizer
 *
 * @class   covernews
 */

if (!function_exists('covernews_custom_style')) {

    function covernews_custom_style()
    {


        $covernews_primary_font = 'system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';
        $covernews_secondary_font = 'system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';


        ob_start();
?>


        <?php if (!empty($covernews_primary_font)) : ?>
            body,
            body button,
            body input,
            body select,
            body optgroup,
            body textarea {
            font-family: <?php echo $covernews_primary_font; ?>;
            }
        <?php endif; ?>

        <?php if (!empty($covernews_secondary_font)) : ?>
            body h1,body h2,body h3,body h4,body h5,body h6,
            .bs-exclusive-now,
            .blockspare-posts-block-post-category a,
            .blockspare-posts-block-post-grid-byline,
            body .wp-block-search__label,
            body .main-navigation a,
            body .font-family-1,
            body .site-description,
            body .trending-posts-line,
            body .exclusive-posts,
            body .widget-title,
            body .em-widget-subtitle,
            body .entry-meta .item-metadata,
            body .grid-item-metadata .item-metadata,
            body .grid-item-metadata span.item-metadata.posts-author,
            body .grid-item-metadata span.aft-comment-count,
            body .grid-item-metadata span.aft-view-count,
            body .af-navcontrols .slide-count,
            body .figure-categories .cat-links,
            body .nav-links a,
            body span.trending-no {
            font-family: <?php echo $covernews_secondary_font; ?>;
            }
        <?php endif; ?>

        .align-content-left .elementor-section-stretched,
        .align-content-right .elementor-section-stretched {
        max-width: 100%;
        left: 0 !important;
        }


<?php
        $css = ob_get_clean();

        // Minify CSS: remove comments, newlines, extra spaces
        $css = preg_replace('!/\*.*?\*/!s', '', $css);        // Remove comments
        $css = preg_replace('/\s+/', ' ', $css);             // Collapse whitespace
        $css = str_replace([' {', '{ ', '; ', ': ', ', '], ['{', '{', ';', ':', ','], $css);
        $css = trim($css);

        return $css;

        // return ob_get_clean();
    }
}