summaryrefslogtreecommitdiff
path: root/header.php
blob: 935a93f591b361ea64936393e0b7759166aa4938 (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
/**
 * The header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content">
 *
 * @package understrap
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$container = get_theme_mod( 'understrap_container_type' );
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-title" content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<link rel="shortcut icon" href="<?php echo get_bloginfo("template_directory") . '/img/favicon.png';?>">
	<style>
/*
	@font-face {
	    font-family: 'charterregular';  
	    src: url('<?php echo get_bloginfo("template_directory");?>/css/fonts/charter_regular-webfont.eot');
	    src: url('<?php echo get_bloginfo("template_directory");?>/css/fonts/charter_regular-webfont.eot?#iefix') format('embedded-opentype'),
		 url('<?php echo get_bloginfo("template_directory");?>/css/fonts/charter_regular-webfont.woff') format('woff');
	    font-weight: normal;
	    font-style: normal;

	}
	@font-face {                                                                                                                                                                                                         
	    font-family: 'charterbold';
	    src: url('<?php echo get_bloginfo("template_directory");?>/css/fonts/charter_bold-webfont.eot');
	    src: url('<?php echo get_bloginfo("template_directory");?>/css/fonts/charter_bold-webfont.eot?#iefix') format('embedded-opentype'),
		 url('<?php echo get_bloginfo("template_directory");?>/css/fonts/charter_bold-webfont.woff') format('woff');
	    font-weight: normal;
	    font-style: normal;

	}
*/
	.main-header {
		background-image: url("<?php echo get_bloginfo('template_directory') . "/img/background_mini_farbig.jpg"; ?>");");
	}
	</style>
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>

<div class="hfeed site" id="page">

	<!-- ******************* The Navbar Area ******************* -->
	<div class="container" style="padding: 0; margin-top: 0.5rem; margin-bottom: 0.5rem"> <!-- navbar-container -->
	<div id="wrapper-navbar" itemscope itemtype="http://schema.org/WebSite">

		<a class="skip-link sr-only sr-only-focusable" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>

		<nav class="navbar navbar-expand-lg">

		<?php if ( false && 'container' == $container ) : ?>
			<div class="container" >
		<?php endif; ?>

					<!-- Your site title as branding in the menu -->
					<?php if ( ! has_custom_logo() ) { ?>

						<?php /*if ( is_front_page() && is_home() ) : ?>

							<h1 class="navbar-brand mb-0"><a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><img src="<?php echo esc_url( get_bloginfo('template_directory') ); ?>/img/paw.png" width=60 height=60 alt="logo"> <?php bloginfo( 'name' ); ?></a></h1>

						<?php else :*/ ?>

							<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><img src="<?php echo get_bloginfo('template_directory') . "/img/paw_with_glencairn.png"; ?>" width=60 height=60 alt="logo"> <?php bloginfo( 'name' ); ?></a>

						<?php #endif; ?>


					<?php } else {
						the_custom_logo();
					} ?><!-- end custom logo -->

				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="<?php esc_attr_e( 'Toggle navigation', 'understrap' ); ?>">
					<span class="navbar-toggler-icon"></span>
				</button>

				<!-- The WordPress Menu goes here -->
				<?php wp_nav_menu(
					array(
						'theme_location'  => 'primary',
						'container_class' => 'collapse navbar-collapse',
						'container_id'    => 'navbarNavDropdown',
						'menu_class'      => 'navbar-nav ml-auto flex-column-sm',
						'fallback_cb'     => '',
						'menu_id'         => 'main-menu',
						'depth'           => 2,
						'walker'          => new Understrap_WP_Bootstrap_Navwalker(),
					)
				); ?>
			<?php if ( false && 'container' == $container ) : ?>
			</div><!-- .container -->
			<?php endif; ?>

		</nav><!-- .site-navigation -->

	</div><!-- #wrapper-navbar end -->
	</div><!-- navbar-container end -->
	<div class="main-header">
		<div class="container">
			<div class="row">
				<div class="col-sm col-xl-8 align-self-center">
					<h1 class="d-none d-lg-inline"><a class="brand-url" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php echo get_bloginfo('name'); ?></a></h1>
					<p class="slogan"><?php echo get_bloginfo( 'description' ); ?></p>
				</div>
				<div class="col-sm col-xl-4 align-self-center">
					<?php get_search_form(); ?>
				</div>
			</div>
		</div>
	</div>

<?php 
	/**
	 * Adds breadcrumbs navigation via plugin Breadcrumbs NavXT.
	 */
	if ( function_exists('bcn_display_list') && ! is_front_page() ): ?>
	<div class="container">
		<nav class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" aria-label="breadcrumb">
		    <ol class="breadcrumb">
			<?php bcn_display_list();?>
		    </ol>
		</nav>
	</div>
	<?php endif; ?>