This repository was archived by the owner on Nov 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathheader.php
More file actions
84 lines (73 loc) · 2.55 KB
/
header.php
File metadata and controls
84 lines (73 loc) · 2.55 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
<?php
/**
* The Header for our theme
*
* @package CWP
*/
?>
<!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' ); ?>">
<title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" type="image/png" href="<?php echo get_template_directory_uri(); ?>/images/cwpfavicon.png">
<meta property="fb:pages" content="355212467929786" />
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://www.codeinwp.com/blog/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.codeinwp.com/blog/?s={search_term}",
"query-input": "required name=search_term"
}
}
</script>
<!-- Load the Content Experiment JavaScript API client for the experiment -->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope="itemscope" itemtype="http://schema.org/WebPage">
<header class="container cf">
<?php
if ( wp_is_mobile() ) {
// echo 'Se afiseaza pe mobil';
//is just a test
}
?>
<div id="logo">
<?php
if (get_theme_mod('cwp_header_logo') == false) { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('title'); ?>"/>
</a><!--/a-->
<?php } else { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<img src="<?php echo get_theme_mod('cwp_header_logo'); ?>" alt="<?php bloginfo('title'); ?>"/>
</a>
<?php } ?>
</div><!--/logo-->
<nav id="headernav">
<?php wp_nav_menu( array( 'theme_location' => 'primary') ); ?>
</nav>
<div class="socialmedia">
<a href="<?php echo get_theme_mod('cwp_header_facebook'); ?>" target="_blank" class="icon-facebook">
</a><!--/.icon-->
<a href="<?php echo get_theme_mod('cwp_header_twitter'); ?>" target="_blank" class="icon-twitter">
</a><!--/.icon-->
</div><!--/socialmedia-->
</header><!--/container-->
<section id="subheader">
</section><!--/subheader-->
<div id="page" class="container cf">