-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
107 lines (97 loc) · 3.36 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
100
101
102
103
104
105
106
107
<?php
global $zimperfect;
?><!DOCTYPE HTML>
<!--
Future Imperfect WP by Zedium
github.com/zedium
Free for personal and commercial use under the CCA 3.0 license (GPL V3.0)
-->
<html>
<head>
<?php $main_title = get_bloginfo('title'); ?>
<title><?php echo empty($main_title)? 'Future Imperfect WP': $main_title ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<?php
wp_enqueue_style('main-style', get_template_directory_uri(). '/assets/css/main.css');
wp_enqueue_style('main-menu-style', get_template_directory_uri(). '/assets/css/mainmenu.css');
wp_enqueue_style('custom', get_template_directory_uri(). '/assets/css/custom.css');
//wp_enqueue_style('rtl-style', get_template_directory_uri(). '/assets/css/rtl.css');
?>
<?php wp_head(); ?>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<h1><a href="/"><?php echo !empty($zimperfect['zopt-site-title'])?$zimperfect['zopt-site-title'] : get_bloginfo('title'); ?></a></h1>
<?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container'=>'nav', 'container_class'=>'links') ); ?>
<!--<nav class="links">
<ul>
<li><a href="#">Lorem</a></li>
<li><a href="#">Ipsum</a></li>
<li><a href="#">Feugiat</a></li>
<li><a href="#">Tempus</a></li>
<li><a href="#">Adipiscing</a></li>
</ul>
</nav>-->
<nav class="main">
<ul>
<li class="search">
<a id="main-search-icon" class="fa-search" href="#search">Search</a>
<form role="search" id="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" name="s" placeholder="Search" /><br />
</form>
</li>
<li class="menu">
<a class="fa-bars" href="#menu">Menu</a>
</li>
</ul>
</nav>
</header>
<!-- Menu -->
<section id="menu">
<!-- Search -->
<section>
<form role="search" id="search" class="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" name="s" placeholder="Search" />
</form>
</section>
<!-- Links -->
<section>
<?php wp_nav_menu( array( 'theme_location' => 'sliding-menu', 'menu_class'=>'links') ); ?>
<!--<ul class="links">
<li>
<a href="#">
<h3>Lorem ipsum</h3>
<p>Feugiat tempus veroeros dolor</p>
</a>
</li>
<li>
<a href="#">
<h3>Dolor sit amet</h3>
<p>Sed vitae justo condimentum</p>
</a>
</li>
<li>
<a href="#">
<h3>Feugiat veroeros</h3>
<p>Phasellus sed ultricies mi congue</p>
</a>
</li>
<li>
<a href="#">
<h3>Etiam sed consequat</h3>
<p>Porta lectus amet ultricies</p>
</a>
</li>
</ul>-->
</section>
<!-- Actions -->
<section>
<ul class="actions stacked">
<li><a href="<?php echo (is_user_logged_in())? wp_logout_url(home_url( '/' )) : wp_login_url(home_url( '/' )); ?>" class="button large fit"><?php echo (is_user_logged_in())? 'Logout' : 'Login' ?></a></li>
</ul>
</section>
</section>