HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/mobilech/alliancelaptoptraining.com.np/wp-content/themes/ftech/inc/dynamic-style.php
<?php

// File Security Check
if (!defined('ABSPATH')) {
    exit;
}

function ftech_theme_options_style()
{

    //
    // Enqueueing StyleSheet file
    //
    wp_enqueue_style('ftech-theme-custom-style', get_template_directory_uri() . '/assets/css/custom-style.css');
    $css_output = '';
    $primery_color = cs_get_option('theme-color-1');
    $heading_color = cs_get_option('theme-color-2');
    

    /**
     * Theme Primery Global Color
     */
    if (!empty($primery_color)) {
        $css_output .= '       
        :root {
            --ftc-pr-1: ' . esc_attr($primery_color) . '
        }            
        ';
    }


    /**
     * Theme Heading Global Color
     */
    if (!empty($heading_color)) {
        $css_output .= '       
        :root {
            --ftc-heading-1: ' . esc_attr($heading_color) . '
        }            
        ';
    }


    wp_add_inline_style('ftech-theme-custom-style', $css_output);

}
add_action('wp_enqueue_scripts', 'ftech_theme_options_style');