-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·61 lines (48 loc) · 1.89 KB
/
Copy pathheader.php
File metadata and controls
executable file
·61 lines (48 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!doctype html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="utf-8">
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
?></title>
<!-- mobile meta (hooray!) -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- icons & favicons (for more: http://themble.com/support/adding-icons-favicons/) -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!-- wordpress head functions -->
<?php wp_head(); ?>
<!--[if lt IE 9]>
<?php wp_print_scripts(array('kodsmuts-html5shiv')); ?>
<![endif]-->
<!-- end of wordpress head -->
<!-- drop Google Analytics Here -->
<!-- end analytics -->
</head>
<body <?php body_class(); ?>>
<header class="header" role="banner">
<?php if ( $site_description && ( is_home() || is_front_page() ) ){ ?>
<h1><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></h1>
<?php }else{ ?>
<a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a>
<?php } ?>
<p><?php bloginfo('description'); ?></p>
<nav role="navigation">
<?php kodsmuts_main_nav(); ?>
</nav>
</header> <!-- end header -->