-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
99 lines (68 loc) · 2.87 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
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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Padang_Padang
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
<?php get_template_part( 'inc/customizer-styles' ); ?>
<?php require_once 'wp-content/plugins/flaunt-sites-core/public/partials/icons.svg'; ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'padang-padang' ); ?></a>
<header id="masthead" class="site-header" role="banner">
<div class="meta-header">
<?php
if ( true == get_theme_mod( 'header_social', true ) ) {
require 'wp-content/plugins/flaunt-sites-core/public/partials/flaunt-sites-core-public-social-header.php';
}
?>
<?php if ( true == get_theme_mod( 'header_search', true ) || get_theme_mod( 'header_client_area', true ) ) : ?>
<div class="client-search">
<?php if ( true == get_theme_mod( 'header_search', true ) ) : ?>
<form role="search" id="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
<label>
<input type="search" class="search-field" placeholder="Search …" value="" name="s" title="Search for:" />
</label>
</form>
<?php endif; ?>
<?php if ( true == get_theme_mod( 'header_client_area', true ) ) : ?>
<div id="client">
<a class="btn" href="<?php echo get_theme_mod( 'client_area_link' ); ?>">Client Area</a>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div><!-- end Meta Header -->
<div class="site-branding">
<a href="<?php echo home_url(); ?>" rel="nofollow">
<?php
$image = get_option( 'fsc_options', '' );
$image = $image['fsc_logo'];
$id = $image;
$logo_alt = get_bloginfo( 'name' );
if ( isset( $image ) ) {
echo wp_get_attachment_image( $id, 'medium', false, array( 'class' => 'logo', 'alt' => $logo_alt ) );
} else {
?>
<span class="site-name"><?php bloginfo( 'name' ); ?></span>
<?php } ?>
</a>
</div><!-- .site-branding -->
<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><i class="fa fa-bars"></i><?php esc_html_e( 'Menu', 'padang-padang' ); ?></button>
<?php wp_nav_menu( array( 'theme_location' => 'menu-1', 'menu_id' => 'primary-menu' ) ); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
<div id="content" class="site-content">