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>