<div id="header-text" class="<?php echo $screen_reader; ?>">
<?php if($_SERVER['REQUEST_URI']=='/') { ?>
<h1 class="main-logo"><?php bloginfo('name') ?></h1>
<?php } else { ?>
<span><?php bloginfo('name') ?></span>
<?php } ?>
if ( is_front_page() && is_home() ) {
$html = '<div class="site-branding">';
$html .= '<h1 class="site-branding__title">' . get_bloginfo( 'name' ) . '</h1>';
$html .= '<p class="site-branding__description">' . get_bloginfo( 'description') . '</p>';
$html .= '</div>';
} else {
$html = '<a class="site-branding" href="' . esc_url( home_url( '/' ) ) . '" rel="home">';
$html .= '<h1 class="site-branding__title">' . get_bloginfo( 'name' ) . '</h1>';
$html .= '<p class="site-branding__description">' . get_bloginfo( 'description') . '</p>';
$html .= '</a>';
}
echo apply_filters( 'get_site_branding', $html );