forked from tenman/raindrops
/
header.php
58 lines (47 loc) · 2.25 KB
/
header.php
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
<?php
if ( !defined( 'ABSPATH' ) ) {
exit;
}
global $template, $raindrops_current_theme_slug;
$raindrops_link_unique_text = raindrops_link_unique_text();
do_action( 'raindrops_pre_part_' . basename( __FILE__, '.php' ) );
do_action( 'raindrops_pre_part_' . basename( __FILE__, '.php' ) . '_' . basename( $template ) );
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<?php wp_head(); ?>
</head>
<body id="<?php echo $raindrops_current_theme_slug; ?>" <?php body_class();?>>
<?php if ( raindrops_warehouse( 'raindrops_disable_keyboard_focus' ) == 'enable' ) { ?>
<div class="skip-link"><a href="#container" class="screen-reader-text" title="<?php esc_attr_e( 'Skip to content', 'raindrops' ); ?>"><?php esc_html_e( 'Skip to content', 'raindrops' ); ?></a></div><?php echo raindrops_skip_links(); ?>
<?php } // raindrops_disable_keyboard_focus ?>
<div id="<?php echo esc_attr( raindrops_warehouse( 'raindrops_page_width' ) ); ?>" class="<?php echo esc_attr( 'yui-' . raindrops_warehouse( 'raindrops_col_width' ) ); ?> hfeed">
<?php raindrops_prepend_doc(); ?><header id="top">
<div id="hd" <?php raindrops_doctype_elements( '', 'role="banner"' ); ?>>
<?php
if( raindrops_is_place_of_site_title() == true ) {
echo raindrops_site_title();
}
echo raindrops_site_description();
?>
</div>
<?php
/**
* Custom Header
*/
$raindrops_title_in_the_header_check = raindrops_warehouse_clone( 'raindrops_place_of_site_title' );
if ( true == $raindrops_link_unique_text || $raindrops_title_in_the_header_check == 'header_image' ) { ?>
<?php echo raindrops_header_image( 'elements' );
} else { ?>
<?php echo raindrops_header_image( 'home_url');
}
raindrops_nav_menu_primary();
/**
* horizontal menubar
*/
?>
<?php raindrops_after_nav_menu();?>
</header>
<div id="bd" class="clearfix">
<?php do_action( 'raindrops_after_part_' . basename( __FILE__, '.php' ) . '_' . basename( $template ) ); ?>