-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
124 lines (107 loc) · 4.68 KB
/
Copy pathheader.php
File metadata and controls
124 lines (107 loc) · 4.68 KB
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
<?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 anspress
*/
$fevicon_url = esc_url( get_template_directory_uri() . '/images/favicon/' );
?><!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="apple-touch-icon" sizes="57x57" href="<?php echo $fevicon_url; ?>apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo $fevicon_url; ?>apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo $fevicon_url; ?>apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo $fevicon_url; ?>apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo $fevicon_url; ?>apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo $fevicon_url; ?>apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo $fevicon_url; ?>apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo $fevicon_url; ?>apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $fevicon_url; ?>apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="<?php echo $fevicon_url; ?>android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo $fevicon_url; ?>favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="<?php echo $fevicon_url; ?>favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo $fevicon_url; ?>favicon-16x16.png">
<link rel="manifest" href="<?php echo $fevicon_url; ?>manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="<?php echo $fevicon_url; ?>ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<?php if ( ! current_user_can( 'manage_options' ) ) : ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-15928389-18"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-15928389-18');
</script>
<?php endif ?>
<?php wp_head(); ?>
</head>
<body <?php body_class( 'stretched' ); ?>>
<div id="wrapper" class="clearfix">
<!-- Header -->
<header id="header" class="full-header ">
<div id="header-wrap">
<div id="top-nav" class="container clearfix">
<!-- <ul class="nav pull-left hide320">
<li>
<a href="<?php echo home_url( '/hire/' ); ?>">Hire Us</a>
</li>
</ul> -->
<ul class="nav pull-right">
<li>
<a href="<?php echo ap_get_link_to( 'ask' ); ?>">Ask Question</a>
</li>
<?php if ( is_user_logged_in() ) : ?>
<li>
<a href="<?php echo ap_user_link( get_current_user_id() ); ?>">My Account</a>
</li>
<li>
<a href="<?php echo home_url( '/orders/' ); ?>">My Orders</a>
</li>
<li>
<a href="<?php echo wp_logout_url(); ?>">Logout</a>
</li>
<?php else : ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true">Login</a>
<div class="dropdown-menu" id="ap-login">
<?php do_action( 'wordpress_social_login' ); ?>
</div>
</li>
<?php endif; ?>
</ul>
</div>
<div class="container clearfix">
<div class="header-fl">
<div id="logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><i class="icon-logo-only"></i><span>AnsPress</span></a>
</div><!-- #logo end -->
<?php get_search_form(); ?>
<nav id="primary-menu">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'mainmenu',
'container' => null,
) );
?>
<a id="primary-menu-trigger" class="btn" toggle-ref-class="#mainmenu" data-class="show-menu" href="#"><i class="icon-menu"></i></a>
</nav>
<?php if ( io_pro_enabled() ) : ?>
<a class="btn default" href="<?php echo home_url( '/pro/' ); ?>"><i class="icon-pro"></i>Go Pro</a>
<?php endif; ?>
<a id="header-downlaod-l" class="btn btn-sm dark" href="https://downloads.wordpress.org/plugin/anspress-question-answer.zip" target="_blank"><i class="icon-download"></i>Download</a>
</div>
</div>
</div>
</header>
<!-- #header end -->
<section id="content">