-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
86 lines (74 loc) · 3.09 KB
/
Copy pathheader.php
File metadata and controls
86 lines (74 loc) · 3.09 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
<?php
/**
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Times
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-102188090-1', 'auto');
ga('send', 'pageview');
</script>
<?php global $option_setting; ?>
<div id="page" class="hfeed site">
<div id="top-bar">
<div class="container">
<div class="site-branding">
<?php if (isset($option_setting['logo']['url'])) : ?>
<?php if( $option_setting['logo']['url'] != "" ) : ?>
<div id="site-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url($option_setting['logo']['url']) ?>"></a>
</div>
<?php else : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" data-hover="<?php bloginfo( 'name' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php endif; ?>
<?php else : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" data-hover="<?php bloginfo( 'name' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php endif; ?>
</div>
<div class="top-navigation">
<?php if (has_nav_menu('top'))
wp_nav_menu( array( 'theme_location' => 'top' ) ); ?>
</div>
<div class="top-right-search">
<div id="search-bar"><?php get_template_part('searchform', 'top'); ?></div>
<img src="<?php echo get_template_directory_uri()."/assets/images/search.png"?>">
</div>
</div><!--.container-->
</div><!--#top-bar-->
<?php
if (isset($option_setting['carousel-enable-on-home'])) :
get_template_part('carousel');
else :
get_template_part('carousel','default');
endif; ?>
<div id="top-nav" class="container">
<div id="top-nav-wrapper">
<div class="container">
<nav id="site-navigation" class="main-navigation" role="navigation">
<h1 class="menu-toggle"><?php _e( 'Menu', 'times' ); ?></h1>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Читать далее', 'times' ); ?></a>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->
</div>
</div>
</div>
<div id="content" class="site-content">
<div class="container content-inner">