Server : Apache
System : Linux webm011.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : alfamiffjq ( 77889)
PHP Version : 8.2.31
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/alfamiffjq/www/alfamifwp/wp-content/plugins/burger-companion/inc/storebiz/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: dynamic-style.php

Path: /home/alfamiffjq/www/alfamifwp/wp-content/plugins/burger-companion/inc/storebiz/dynamic-style.php

Size: 2.19 KB

Permissions: 0644

<?php
if( ! function_exists( 'burger_com_storebiz_dynamic_style' ) ):
    function burger_com_storebiz_dynamic_style() {

		$output_css = '';
		
		/**
		 * Logo Width 
		 */
		 $logo_width			= get_theme_mod('logo_width','140');		 
		if($logo_width !== '') { 
				$output_css .=".logo img, .mobile-logo img {
					max-width: " .esc_attr($logo_width). "px;
				}\n";
			}
			
		
		/**
		 *  Slider Style
		 */
		 $slider_opacity			= get_theme_mod('slider_opacity','0.35');		
		 $output_css .=".main-slider {
					    background: rgba(0, 0, 0, " .esc_attr($slider_opacity). ");
				}\n";
					
		
		/**
		 *  Typography Body
		 */
		 $storebiz_body_text_transform	 	 = get_theme_mod('storebiz_body_text_transform','inherit');
		 $storebiz_body_font_style	 		 = get_theme_mod('storebiz_body_font_style','inherit');
		 $storebiz_body_font_size	 		 = get_theme_mod('storebiz_body_font_size','16');
		 $storebiz_body_line_height		 = get_theme_mod('storebiz_body_line_height','1.5');
		
		 $output_css .=" body{ 
			font-size: " .esc_attr($storebiz_body_font_size). "px;
			line-height: " .esc_attr($storebiz_body_line_height). ";
			text-transform: " .esc_attr($storebiz_body_text_transform). ";
			font-style: " .esc_attr($storebiz_body_font_style). ";
		}\n";		 
		
		/**
		 *  Typography Heading
		 */
		 for ( $i = 1; $i <= 6; $i++ ) {	
			 $storebiz_heading_text_transform 	= get_theme_mod('storebiz_h' . $i . '_text_transform','inherit');
			 $storebiz_heading_font_style	 	= get_theme_mod('storebiz_h' . $i . '_font_style','inherit');
			 $storebiz_heading_font_size	 		 = get_theme_mod('storebiz_h' . $i . '_font_size');
			 $storebiz_heading_line_height		 	 = get_theme_mod('storebiz_h' . $i . '_line_height');
			 
			 $output_css .=" h" . $i . "{ 
				font-size: " .esc_attr($storebiz_heading_font_size). "px;
				line-height: " .esc_attr($storebiz_heading_line_height). ";
				text-transform: " .esc_attr($storebiz_heading_text_transform). ";
				font-style: " .esc_attr($storebiz_heading_font_style). ";
			}\n";
		 }
		 
		 
		
        wp_add_inline_style( 'storebiz-style', $output_css );
    }
endif;
add_action( 'wp_enqueue_scripts', 'burger_com_storebiz_dynamic_style' );

← Back to Directory Edit File 🔒 Chmod

WP File Manager