HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/partials/header/top-bar.php
<?php
	$top_bar_bg_color = get_theme_mod('top_bar_bg_color');
	$top_bar_text_color = get_theme_mod('top_bar_text_color');

	$style_opt = array();

	if(!empty($top_bar_bg_color)) {
		$style_opt['background-color'] = $top_bar_bg_color;
	}

	if(!empty($top_bar_text_color)) {
		$style_opt['color'] = $top_bar_text_color;
	}

	$style = splash_generate_inline_style($style_opt);

$layoutName = getThemeSettings();
?>

<div id="stm-top-bar" <?php echo sanitize_text_field($style); ?>>
    <?php if(is_layout('bb')): ?>
        <?php get_template_part('partials/header/top-bar-basketball'); ?>
    <?php elseif(is_layout("af")): ?>
        <?php get_template_part('partials/header/top-bar-americanfootball'); ?>
    <?php elseif(is_layout('sccr')) : ?>
        <?php get_template_part('partials/header/top-bar-soccer'); ?>
    <?php elseif(is_layout("baseball")): ?>
        <?php get_template_part('partials/header/top-bar-baseball'); ?>
    <?php elseif(is_layout("magazine_one")): ?>
        <?php get_template_part('partials/header/top-bar-magazine-one'); ?>
	<?php endif;?>
</div>