Passed
Push — master ( fc82b5...704b83 )
by SILENT
02:25
created

header-lite.php (1 issue)

Upgrade to new PHP Analysis Engine

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 comics
4
 *
5
 * Displays all of the <head> section and everything up till <main id="main">
6
 *
7
 * @package WordPress
8
 * @subpackage Strip
9
 */
10
11
?><!DOCTYPE html>
12
<html <?php language_attributes(); ?> class="no-js">
13
<head>
14
<meta charset="<?php bloginfo( 'charset' ); ?>">
15
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
16
<meta name="viewport" content="width=device-width, initial-scale=1">
17 View Code Duplication
<meta name="description" content="<?php if ( is_single() ) {
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
18
	single_post_title( '', true );
19
} else {
20
	bloginfo( 'name' );
21
	echo ' - ';
22
	bloginfo( 'description' );
23
}
24
	?>" />
25
<link rel="profile" href="http://gmpg.org/xfn/11">
26
<link type="text/plain" rel="author" href="http://silent-comics.com/humans.txt" />
27
28
<?php wp_head(); ?>
29
</head>
30
31
<body <?php body_class(); ?>>
32
<div id="page" class="hfeed site">
33
	<header id="masthead" class="site-header" role="banner">
34
35 View Code Duplication
		<?php if ( has_nav_menu( 'primary' ) ) : ?>
36
		<nav id="site-navigation" class="main-navigation clear" role="navigation">
37
			<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e( 'discover', 'strip' ); ?></button>
38
			<div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e( 'Skip to content', 'strip' ); ?></a></div>
39
40
			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'wrap' ) ); ?>
41
		</nav><!-- #site-navigation -->
42
		<?php endif; ?>
43
44
	</header><!-- #masthead -->
45