-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
159 lines (152 loc) · 5.87 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
/**
* Displays the header content
*
* @package Theme Freesia
* @subpackage Pixgraphy
* @since Pixgraphy 1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<?php
$pixgraphy_settings = pixgraphy_get_theme_options(); ?>
<head>
<!--add-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/jquery.xdomainajax.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/ajaxzip2.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/jquery.payment.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/boot.js"></script>
<!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js"></script>-->
<!--<script src="--><?php //bloginfo('template_directory'); ?><!--/js/bootstrap.js"></script>-->
<!--<script src="--><?php //bloginfo('template_directory'); ?><!--/js/jquery.bootgrid.js"></script>-->
<!--add-->
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<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(); ?>>
<div id="page" class="hfeed site">
<!-- Masthead ============================================= -->
<header id="masthead" class="site-header">
<div class="top-header" <?php if( get_header_image() != '' ){ ?>style="background-image:url('<?php echo get_header_image(); ?>');" <?php } ?>>
<div class="container clearfix">
<?php
if( is_active_sidebar( 'pixgraphy_header_info' )) {
dynamic_sidebar( 'pixgraphy_header_info' );
}
if($pixgraphy_settings['pixgraphy_top_social_icons'] == 0):
echo '<div class="header-social-block">';
do_action('social_links');
echo '</div>'.'<!-- end .header-social-block -->';
endif;
do_action('pixgraphy_site_branding'); ?>
</div> <!-- end .container -->
</div> <!-- end .top-header -->
<?php
$enable_slider = $pixgraphy_settings['pixgraphy_enable_slider'];
pixgraphy_slider_value();
if ($enable_slider=='frontpage'|| $enable_slider=='enitresite'){
if(is_front_page() && ($enable_slider=='frontpage') ) {
if($pixgraphy_settings['pixgraphy_slider_type'] == 'default_slider') {
pixgraphy_page_sliders();
}else{
if(class_exists('Pixgraphy_Plus_Features')):
do_action('pixgraphy_image_sliders');
endif;
}
}
if($enable_slider=='enitresite'){
if($pixgraphy_settings['pixgraphy_slider_type'] == 'default_slider') {
pixgraphy_page_sliders();
}else{
if(class_exists('Pixgraphy_Plus_Features')):
do_action('pixgraphy_image_sliders');
endif;
}
}
} ?>
<!-- Main Header============================================= -->
<div id="sticky_header">
<div class="container clearfix">
<!-- Main Nav ============================================= -->
<?php
if (has_nav_menu('primary')) { ?>
<?php $args = array(
'theme_location' => 'primary',
'container' => '',
'items_wrap' => '<ul id="primary-menu" class="menu nav-menu">%3$s</ul>',
); ?>
<nav id="site-navigation" class="main-navigation clearfix">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">
<span class="line-one"></span>
<span class="line-two"></span>
<span class="line-three"></span>
</button>
<?php wp_nav_menu($args);//extract the content from apperance-> nav menu ?>
</nav> <!-- end #site-navigation -->
<?php } else {// extract the content from page menu only ?>
<nav id="site-navigation" class="main-navigation clearfix">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false">
<span class="line-one"></span>
<span class="line-two"></span>
<span class="line-three"></span>
</button>
<?php wp_page_menu(array('menu_class' => 'menu', 'items_wrap' => '<ul id="primary-menu" class="menu nav-menu">%3$s</ul>')); ?>
</nav> <!-- end #site-navigation -->
<?php }
$search_form = $pixgraphy_settings['pixgraphy_search_custom_header'];
if (1 != $search_form) { ?>
<div id="search-toggle" class="header-search"></div>
<div id="search-box" class="clearfix">
<?php get_search_form();?>
</div> <!-- end #search-box -->
<?php }
echo '</div> <!-- end .container -->
</div> <!-- end #sticky_header -->';
?>
</header> <!-- end #masthead -->
<!-- Main Page Start ============================================= -->
<div id="content">
<?php if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout' && !is_page() && !is_single()){
if( is_404() || is_search() || is_archive()):
if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout'){
if(class_exists('WooCommerce') && (is_shop() || is_product_category())){ ?>
<div class="container clearfix">
<?php }else{
if(is_404()){ ?>
<div class="container clearfix">
<?php }
// silence is golden
}
}else{ ?>
<div class="container clearfix">
<?php }
else: ?>
<div id="main">
<?php endif;
}else{ ?>
<div class="container clearfix">
<?php }
if(is_home() ){
// silence is golden;
}else{
if(is_category() || is_tag() || is_author()|| has_post_format() || is_archive()){
if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout'){
//silence is golder?>
<?php }
}else{
$custom_page_title = apply_filters( 'pixgraphy_filter_title', '' );?>
<div class="page-header">
<h1 class="page-title"><?php echo esc_html($custom_page_title); ?></h1>
<!-- .page-title -->
<?php pixgraphy_breadcrumb(); ?>
<!-- .breadcrumb -->
</div>
<!-- .page-header -->
<?php }
}