-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·64 lines (54 loc) · 3.65 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
<?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 k7themes
* @since k7themes' 1.0.0
*/
?><!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">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?>
</head>
<?php $body_class=""; $body_class .=' woocommerce'; ?>
<body <?php body_class($body_class); ?>>
<div id="base">
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'k7themes'); ?></a>
<form role="search" method="get" class="sform-inline" action="<?php echo esc_url(home_url('/')); ?>">
<label>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search …', 'placeholder', 'k7themes'); ?>" value="<?php echo esc_attr(get_search_query()); ?>" name="s" title="<?php _ex('Search for:', 'label', 'k7themes'); ?>">
</label>
<input type="submit" class="search-submit" value="<?php echo esc_attr_x('Search', 'submit button', 'k7themes'); ?>">
</form>
<header id="masthead" class="site-header" role="banner">
<?php
/**
if (get_theme_mod('contact_add')) { ?>
<div class="add-icon"></div><!-- add-icon --><div class="add-content"><?php echo get_theme_mod('contact_add', __('Dummy Donec Rutrum, 1234 N Duis lacinia vel.', 'k7themes')); ?></div><!-- add-content --><div class="clear"></div>
<?php } ?>
<?php if (get_theme_mod('contact_no')) { ?>
<div class="phone-icon"></div><!-- phone-icon --><div class="phone-content"><?php echo get_theme_mod('contact_no', __('+123 456 7890', 'k7themes')); ?></div><!-- phone-content --><div class="clear"></div>
<?php } ?>
<?php if (get_theme_mod('contact_mail')) { ?>
<div class="mail-icon"></div><!-- mail-icon --><div class="mail-content"><a href="mailto:<?php echo get_theme_mod('contact_mail', 'contact@company.com'); ?>"><?php echo get_theme_mod('contact_mail', 'contact@company.com'); ?></a></div><!-- mail-content --><div class="clear"></div>
<?php } **/?>
<div class="site-branding">
<h1 id="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<div class="site-description"><?php bloginfo('description'); ?></div>
</div><!-- .site-branding -->
<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><p class="glyphicon glyphicon-th-list" ></p></button>
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_id' => 'primary-menu')); ?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
<?php do_action('slide'); ?>
<div id="content" class="site-content">