sewmyheadon /
bitsy
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * The header for our theme. |
||
| 4 | * |
||
| 5 | * This is the template that displays all of the <head> section and everything up until <div id="content"> |
||
| 6 | * |
||
| 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials |
||
| 8 | * |
||
| 9 | * @package bitsy |
||
| 10 | */ |
||
| 11 | |||
| 12 | ?><!DOCTYPE html> |
||
| 13 | <html <?php language_attributes(); ?>> |
||
| 14 | <head> |
||
| 15 | <meta charset="<?php bloginfo( 'charset' ); ?>"> |
||
| 16 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
||
| 17 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
||
| 18 | |||
| 19 | <?php wp_head(); ?> |
||
| 20 | </head> |
||
| 21 | |||
| 22 | <body id="top" <?php body_class(); ?>> |
||
| 23 | |||
| 24 | <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'bitsy' ); ?></a> |
||
| 25 | <header id="header" class="<?php bitsy_header_class(); ?>"> |
||
| 26 | |||
| 27 | <?php |
||
| 28 | if ( is_front_page() || is_home() ) : ?> |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 29 | <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
||
| 30 | <?php else : ?> |
||
|
0 ignored issues
–
show
|
|||
| 31 | <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
||
| 32 | <?php |
||
| 33 | endif; ?> |
||
| 34 | <?php $description = get_bloginfo( 'description', 'display' ); |
||
| 35 | if ( $description || is_customize_preview() ) : ?> |
||
|
0 ignored issues
–
show
|
|||
| 36 | <span class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></span> |
||
| 37 | <?php |
||
| 38 | endif; ?> |
||
| 39 | <?php wp_loginout(); ?> |
||
| 40 | <a href="#nav">Menu</a> |
||
| 41 | </header><!-- #header --> |
||
| 42 | |||
| 43 | <?php get_template_part( 'components/navigation/navigation', 'primary' ); ?> |
||
| 44 | |||
| 45 | <?php if ( is_front_page() ) { get_template_part( 'components/header/banner', 'hero' ); } ?> |
||
| 46 | |||
| 47 | <div id="main" class="site-content container <?php bitsy_content_class(); ?>" role="main"> |
||
| 48 |