-
Notifications
You must be signed in to change notification settings - Fork 0
/
hdr-sitetitle.php
executable file
·18 lines (18 loc) · 1.03 KB
/
hdr-sitetitle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/* ======== SITE TITLE ======== */
if (!weaver_is_checked_page_opt('ttw-hide-site-title')) { ?>
<div id="ttw-site-logo"></div>
<div id="ttw-site-logo-link" onclick="location.href='<?php echo home_url( '/' ); ?>';" style="cursor:pointer;"></div>
<?php
}
$heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title" <?php echo weaver_hide_site_title();?>>
<span>
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</span>
</<?php echo $heading_tag; ?>>
<div id="site-description" <?php echo weaver_hide_site_title();?>><?php bloginfo( 'description' ); ?></div>
<?php
/* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */
?>
<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', WEAVER_TRANS ); ?>"><?php _e( 'Skip to content', WEAVER_TRANS ); ?></a></div>