HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpkoopkj/wp-content/themes/ohio/inc/dynamic_css/parts/logo.php
<?php
/*
	Logo custom styles

	Table of contents: (use search)
	# 1. Variables
	# 2. Regular logo height
	# 3. Sticky logo height
	# 4. Logo typography
*/

# 1. Variables
$logo_height = OhioOptions::get_global( 'page_header_logo_height' );
$sticky_logo_height = OhioOptions::get_global( 'page_sticky_header_logo_height' );
$logo_style = OhioOptions::get( 'page_header_logo_style' );
$logo_typo = OhioOptions::get_global( 'page_header_sitename_typo' );

# 2. Regular logo height
if ( $logo_height ) {
	$_selector = [
        '.header .branding .logo img',
        '.header .branding .logo-mobile img',
        '.header .branding .logo-sticky-mobile img',
        '.header .branding .logo-dynamic img'
    ];
    $_css = 'min-height:${height}px; height:${height}px;';
	$_css = OhioHelper::parse_responsive_height_to_css( $logo_height, $_css );
	if ( $_css['desktop'] ) {
		$_style_block = implode( ',', $_selector ) . '{' . $_css['desktop'] . '}';
		OhioBuffer::append_to_dynamic_css_buffer( $_style_block, 'desktop' );
	}
	if ( $_css['tablet'] ) {
		$_style_block = implode( ',', $_selector ) . '{' . $_css['tablet'] . '}';
		OhioBuffer::append_to_dynamic_css_buffer( $_style_block, 'tablet' );
	}
	if ( $_css['mobile'] ) {
		$_style_block = implode( ',', $_selector ) . '{' . $_css['mobile'] . '}';
		OhioBuffer::append_to_dynamic_css_buffer( $_style_block, 'mobile' );
	}
}

# 3. Sticky logo height
if ( $sticky_logo_height ) {
	$_selector = [
        '.header.-sticky .branding .logo img',
        '.header.-sticky .branding .logo-mobile img',
        '.header.-sticky .branding .logo-sticky img',
        '.header.-sticky .branding .logo-sticky-mobile img',
        '.header.-sticky .branding .logo-dynamic img'
    ];
    $_css = 'min-height:${height}px; height:${height}px;';
	$_css = OhioHelper::parse_responsive_height_to_css( $sticky_logo_height, $_css );
	if ( $_css['desktop'] ) {
		$_style_block = implode( ',', $_selector ) . '{' . $_css['desktop'] . '}';
		OhioBuffer::append_to_dynamic_css_buffer( $_style_block, 'desktop' );
	}
	if ( $_css['tablet'] ) {
		$_style_block = implode( ',', $_selector ) . '{' . $_css['tablet'] . '}';
		OhioBuffer::append_to_dynamic_css_buffer( $_style_block, 'tablet' );
	}
	if ( $_css['mobile'] ) {
		$_style_block = implode( ',', $_selector ) . '{' . $_css['mobile'] . '}';
		OhioBuffer::append_to_dynamic_css_buffer( $_style_block, 'mobile' );
	}
}

# 4. Logo typography
if ( $logo_style == 'sitename' ) {
	if ( $logo_typo ) {
	    $logo_typo_css = OhioHelper::parse_acf_typo_to_css( $logo_typo );

	    if ( $logo_typo_css ) {
	        $_selector = [
	            '.header .branding .branding-title'
	        ];
	        $_css = $logo_typo_css;
	        OhioBuffer::pack_dynamic_css_to_buffer( $_selector, $_css );
	    }
	}
}