Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (27 sloc) 1.54 KB
<?php if (get_theme_mod('devdmbootstrap4_show_header_setting', 1)) : ?>
<div class="container dmbs-header">
<div class="row">
<?php
$dmbsCustomLogoUrl = devdmbootstrap4_custom_logo();
$dmbsHeaderText = get_theme_mod('header_text', 1)
?>
<?php if (!empty($dmbsCustomLogoUrl)) : ?>
<div class="col-sm-<?php echo ($dmbsHeaderText == 0 ? '12' : '4'); ?> my-auto dmbs-header-left">
<a class="dmbs-logo-link" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<img class="dmbs-logo-image" src="<?php echo esc_url($dmbsCustomLogoUrl); ?>" alt="<?php bloginfo('name'); ?>" />
</a>
</div>
<?php endif; ?>
<?php if ($dmbsHeaderText == 1) : ?>
<div class="col-sm-<?php echo (!empty($dmbsCustomLogoUrl) ? "8" : "12"); ?> my-auto dmbs-header-right">
<?php if (is_front_page() || is_home()) : ?>
<h1 class="dmbs-header-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<?php else: ?>
<h2 class="dmbs-header-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h2>
<?php endif; ?>
<h4 class="dmbs-header-description"><?php bloginfo( 'description' ); ?></h4>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
You can’t perform that action at this time.