-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
108 lines (90 loc) · 5.14 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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
<meta name="disable_cufon" content="<?php echo get_option('adelante_disable_cufon'); ?>">
<?php echo get_adelante_stylesheets(); ?>
<?php
if ( is_single() ) {
$css = get_post_meta( $post->ID, 'css', true );
if ( ! empty( $css ) ) { ?>
<style>
<?php echo $css; ?>
</style>
<?php }
}
?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Feed" href="<?php site_url(); ?>/feed/">
<!--[if IE 6]>
<script src="<?php echo ADELANTE_JS_URI; ?>/DD_belatedPNG_0.0.8a-min.js"></script>
<script>
DD_belatedPNG.fix('#logo');
</script>
<![endif]-->
<script src="<?php echo ADELANTE_JS_URI; ?>libs/modernizr-2.0.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src='<?php echo ADELANTE_JS_URI; ?>libs/jquery-1.5.2.min.js'>\x3C/script>")</script>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<?php if (get_option('adelante_css_framework') === '1140') { ?>
<script src="<?php echo ADELANTE_JS_URI; ?>css3-mediaqueries.js"></script>
<?php } ?>
<?php set_javascript_globals(); ?>
<?php if (get_option('adelante_google_analytics') !== "") { ?>
<script>
var _gaq=[["_setAccount","<?php echo get_option('adelante_google_analytics'); ?>"],["_trackPageview"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));
</script>
<?php } ?>
</head>
<body>
<?php if ( get_option( 'adelante_css_framework' ) === '1140' ) : ?>
<div class="row">
<?php endif; ?>
<div id="top" class="<?php echo adelante_container_class; ?>">
<a id="logo" href="<?php site_url(); ?>/">
<img src="<?php echo ADELANTE_BASE_URI; ?>/img/logo.png" alt="<?php bloginfo( 'name' ); ?>">
</a>
<nav id="nav-main" role="navigation" class="slidemenu">
<?php wp_nav_menu( array( 'theme_location' => 'primary_navigation' ) ); ?>
</nav>
</div>
<div id="wrap" role="document">
<?php if ( get_option( 'adelante_css_framework') === '1140' ) : ?>
<div class="row">
<?php endif; ?>
<?php if ( is_front_page() ) : ?>
<div id="page-heading">
<div id="page-heading-gradient">
<div id="page-heading-pattern">
<div class="inner <?php echo adelante_container_class; ?>">
<div id="slider-wrapper"><!-- BEGIN slider -->
<div class="slider-frame">
<div class="slider-nav slider-prev"></div>
<?php
$subject = get_option('adelante_slider_subject');
switch( $subject ) {
case 'posts':
echo adelante_posts_slider( get_framework_size() );
break;
default:
echo adelante_image_slider( get_framework_size() );
break;
}
?>
<div class="slider-nav slider-next"></div>
<div class="slider-title"><p></p></div>
</div>
<div class="slider-shadow"></div>
</div><!-- END slider -->
</div>
</div>
</div>
</div>
<?php endif; ?>