File: /home/rockyroadprintin/www/wp-content/themes/consulting/hb_templates/mobile/mobile.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php
$logo = intval(stm_hb_get_option('logo', false, $hb));
$wrapper_classes = array('stm_mobile__header');
if (!empty($logo)) {
$logo = stm_hb_get_image_url($logo);
}
if(empty($logo)) {
$post_id = get_the_ID();
$consulting_config = consulting_config();
$logo_tmp_src = $consulting_config['layout'] . '/';
if ( ! get_post_meta( $post_id, 'enable_header_transparent', true ) ) {
$logo = get_template_directory_uri() . '/assets/images/tmp/'. $logo_tmp_src .'logo_dark.svg';
}
else {
$logo = get_template_directory_uri() . '/assets/images/tmp/'. $logo_tmp_src .'logo_default.svg';
}
}
?>
<div class="stm-header__overlay"></div>
<div class="<?php echo esc_attr(implode(' ', $wrapper_classes)) ?>">
<div class="container">
<div class="stm_flex stm_flex_center stm_flex_last stm_flex_nowrap">
<?php if (!empty($logo)): ?>
<div class="stm_mobile__logo">
<a href="<?php echo esc_url(home_url('/')); ?>"
title="<?php esc_html_e('Home', 'consulting'); ?>">
<img src="<?php echo esc_url($logo); ?>"
alt="<?php esc_html_e('Site Logo', 'consulting'); ?>"/>
</a>
</div>
<?php endif; ?>
<div class="stm_mobile__switcher stm_flex_last js_trigger__click"
data-element=".stm-header, .stm-header__overlay"
data-toggle="false">
<span class="stm_hb_mbc"></span>
<span class="stm_hb_mbc"></span>
<span class="stm_hb_mbc"></span>
</div>
</div>
</div>
</div>