File: /var/www/html/shootinschool/wp-content/themes/splash-child/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>
<?php
$logo_main = get_theme_mod('logo', '');
?>
<div class="top-middle">
<div class="container">
<a class="bloglogo" href="<?php echo esc_url(home_url('/')); ?>">
<img
src="<?php echo esc_url( $logo_main ); ?>"
style="width: <?php echo get_theme_mod( 'logo_width', '170' ); ?>px;"
title="<?php esc_html_e('Home', 'splash'); ?>"
alt="<?php esc_html_e('Logo', 'splash'); ?>"
/>
</a>
<div class="top-right">
<span>Text us</span> <a href="tel:646-450-7572"> 646-450-7572</a>
</div>
</div>
</div>