Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 90 lines (55 sloc) 3.167 kB
789a1c8 @samikeijonen Commit all files.
authored
1 <?php
2 /**
3 * Header Template
4 *
5 * The header template is generally used on every page of your site. Nearly all other templates call it
6 * somewhere near the top of the file. It is used mostly as an opening wrapper, which is closed with the
7 * footer.php file. It also executes key functions needed by the theme, child themes, and plugins.
8 *
9 * @package Path
10 * @subpackage Template
11 * @since 0.1.0
12 */
13 ?>
14 <!DOCTYPE html>
15 <html <?php language_attributes(); ?>>
16
17 <head>
18 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
19 <title><?php hybrid_document_title(); ?></title>
20
21 <!-- Mobile viewport optimized -->
22 <meta name="viewport" content="width=device-width,initial-scale=1" />
23
24 <!-- My styles -->
25 <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="all" />
26
27 <link rel="profile" href="http://gmpg.org/xfn/11" />
28 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
29
30 <?php wp_head(); // wp_head ?>
31
32 </head>
33
34 <body class="<?php hybrid_body_class(); ?>">
35
36 <?php do_atomic( 'open_body' ); // path_open_body ?>
37
38 <div id="container">
39
40 <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
41
42 <?php do_atomic( 'before_header' ); // path_before_header ?>
43
847cbe0 Some markup changes.
Sami Keijonen authored
44 <header id="header">
789a1c8 @samikeijonen Commit all files.
authored
45
46 <?php do_atomic( 'open_header' ); // path_open_header ?>
47
48 <div class="wrap">
49
847cbe0 Some markup changes.
Sami Keijonen authored
50 <hgroup id="branding">
f584a38 Use header image as logo.
Sami Keijonen authored
51
52 <?php if ( get_header_image() ) { /* if header image is set use it as logo. */ ?>
53
54 <h1 id="site-title"><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"><img src="<?php header_image(); ?>" height=<?php echo get_custom_header()->height; ?>" width=<?php echo get_custom_header()->width; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /></a></h1>
55
56 <?php } else { ?>
57
58 <h1 id="site-title"><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
59
60 <?php } ?>
61
62 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
63
847cbe0 Some markup changes.
Sami Keijonen authored
64 </hgroup><!-- #branding -->
789a1c8 @samikeijonen Commit all files.
authored
65
66 <?php do_atomic( 'header' ); // path_header ?>
67
68 </div><!-- .wrap -->
69
70 <?php do_atomic( 'close_header' ); // path_close_header ?>
71
847cbe0 Some markup changes.
Sami Keijonen authored
72 </header><!-- #header -->
789a1c8 @samikeijonen Commit all files.
authored
73
74 <?php do_atomic( 'after_header' ); // path_after_header ?>
75
76 <?php get_template_part( 'menu', 'secondary' ); // Loads the menu-secondary.php template. ?>
77
78 <?php do_atomic( 'before_main' ); // path_before_main ?>
79
80 <div id="main">
81
c09c406 Lot's of small changes in slider page template and in thumbnails sizes.
Sami Keijonen authored
82 <?php if ( ( is_home() || is_page_template( 'page-templates/path-slider.php' ) ) && !is_paged() ) get_template_part( 'sticky-slider' ); // Loads the sticky-slider.php template. ?>
a47e845 @samikeijonen Flexslider added.
authored
83
789a1c8 @samikeijonen Commit all files.
authored
84 <?php get_sidebar( 'before-content' ); // Loads the sidebar-before-content.php template. ?>
85
86 <div class="wrap">
87
88 <?php do_atomic( 'open_main' ); // path_open_main ?>
89
847cbe0 Some markup changes.
Sami Keijonen authored
90 <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'container' => 'nav', 'before' => __( 'You are here:', 'path' ), 'separator' => __( '&#8764;', 'path' ) ) ); ?>
Something went wrong with that request. Please try again.