-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
127 lines (123 loc) · 7.58 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,500,700,900' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Droid+Serif: 400,700,800,900" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Work+Sans:300,400,500,700,900,400italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Playfair+Display:400,700,900,400italic,700italic' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<script src="https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" title="no title" charset="utf-8"/>
<!--[if IE]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/mobile.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/slicknav.css" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/owl.carousel.css" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/owl.theme.css" />
<link href="<?php bloginfo('stylesheet_directory'); ?>/css/jquery.bxslider.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>-->
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.bxslider.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/imagesloaded.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.infinitescroll.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/behaviors/manual-trigger.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.slicknav.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/retina-1.1.0.min.js"></script>
<!-- flickr slideshow js / css -->
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/modernizr-custom-v2.7.1.min.js" type="text/javascript"></script>
<!-- <script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.film_roll.min.js"></script>-->
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.carouFredSel-6.2.1.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/owl.carousel.min.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/masonry.pkgd.min.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/scripts.js"></script>
<?php $shortname = "slidemag"; ?>
<style type="text/css">
body {
<?php if(get_option($shortname.'_background_image_url','') != "") { ?>
background: url('<?php echo get_option($shortname.'_background_image_url',''); ?>') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;
<?php } ?>
<?php if(get_option($shortname.'_custom_background_color','') != "") { ?>
background-color: <?php echo get_option($shortname.'_custom_background_color',''); ?>;
<?php } ?>
}
</style>
</head>
<body <?php body_class($class); ?>>
<header id="header">
<div class="header_top">
<div class="container">
<div class="header_search">
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
<input type="text" name="s" id="s" placeholder="Search" />
<INPUT TYPE="image" SRC="<?php bloginfo('stylesheet_directory'); ?>/images/search-icon.jpg" class="header_search_icon" BORDER="0" ALT="Submit Form">
</form>
</div> <!--//header_search-->
<div class="header_social">
<?php if(get_option($shortname.'_twitter_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_twitter_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter-icon.png" alt="twitter" /></a>
<?php } ?>
<?php if(get_option($shortname.'_facebook_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_facebook_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook-icon.png" alt="facebook" /></a>
<?php } ?>
<?php if(get_option($shortname.'_google_plus_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_google_plus_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/google-plus-icon.png" alt="google plus" /></a>
<?php } ?>
<?php if(get_option($shortname.'_picasa_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_picasa_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/picasa-icon.png" alt="picasa" /></a>
<?php } ?>
<?php if(get_option($shortname.'_pinterest_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_pinterest_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/pinterest-icon.png" alt="pinterest" /></a>
<?php } ?>
<?php if(get_option($shortname.'_vimeo_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_vimeo_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/vimeo-icon.png" alt="vimeo" /></a>
<?php } ?>
<?php if(get_option($shortname.'_youtube_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_youtube_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/youtube-icon.png" alt="youtube" /></a>
<?php } ?>
<?php if(get_option($shortname.'_flickr_link','') != '') { ?>
<a href="<?php echo get_option($shortname.'_flickr_link',''); ?>"target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/flickr-icon.png" alt="youtube" /></a>
<?php } ?>
<div class="clear"></div>
</div><!--//header_social-->
<div class="clear"></div>
</div><!--//container-->
</div><!--//header_top-->
<div class="header_bottom">
<div class="container">
<div class="full_logo_cont">
<?php if(get_option($shortname.'_custom_logo_url','') != "") { ?>
<a href="<?php bloginfo('url'); ?>"><img src="<?php echo get_option($shortname.'_custom_logo_url',''); ?>" class="logo" alt="logo" /></a>
<?php } else { ?>
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" class="logo" alt="logo" /></a>
<?php } ?>
</div><!--//logo_cont-->
<div class="clear"></div>
</div><!--//container-->
<div class="the_menu">
<div class="container">
<div class="header_menu">
<?php wp_nav_menu('theme_location=header-menu&container=false&menu_id=main_header_menu'); ?>
</div>
</div>
</div><!--//header_menu-->
</div><!--//header_bottom-->
</header><!--//header-->
<div class="header_spacing"></div>
<?php
$feat_title = trim(get_option($shortname.'_featured_text_title',''));
$feat_sub_text = trim(get_option($shortname.'_sub_text_title',''));
if($feat_title != '' || $feat_sub_text != '') {
?>
<div class="feat_text_title">
<div class="container">
<h3><?php echo $feat_title; ?></h3>
<h4 class="section_title"><?php echo $feat_sub_text; ?></h4>
</div>
</div>
<?php } ?>