-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·71 lines (54 loc) · 2.26 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
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<!--[if IE 7]><html class="ie ie7" <?php language_attributes(); ?>><![endif]-->
<!--[if IE 8]><html class="ie ie8" <?php language_attributes(); ?>><![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title><?php wp_title( '|', true, 'right' ); ?> <?php bloginfo( 'sitename' ) ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="Financial Wellness Matters" />
<link rel="manifest" href="/site.webmanifest" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
<link href="<?php bloginfo( "template_url" ) ?>/css/main.css?v=6" rel="stylesheet" type="text/css">
</head>
<body <?php body_class(); ?>>
<div class="container">
<header>
<div class="wrap">
<div class="logo">
<a href="/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<img src="<?php print get_logo(); ?>" alt="<?php bloginfo( 'name' ); ?>">
</a>
</div>
<?php if ( get_default_language() ) { ?>
<div class="languages">
<?php
// colors for the language buttons
$colors = array( 'cyan', 'green', 'sea' );
// increment per language
$count = 0;
// get the current language
$current_language = str_replace( '/', '', get_current_language_abbrev() );
// loop through languages
foreach ( get_languages() as $language ) {
// output buttons
print '<a href="' . str_replace( $current_language, $language['abbreviation'], $_SERVER['REQUEST_URI'] ) . '" class="btn small ' . $colors[$count] . '">' . $language['name'] . '</a>';
// increment increase
$count++;
}
?>
</div>
<?php } ?>
</div>
</header>
<section class="content">
<a name="content"></a>