-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·211 lines (191 loc) · 6.46 KB
/
Copy pathheader.php
File metadata and controls
executable file
·211 lines (191 loc) · 6.46 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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description";
if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'imbalance2' ), max( $paged, $page ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
wp_head();
?>
<style type="text/css">
/* color from theme options */
<?php $color = getColor() ?>
body, input, textarea { font-family: <?php echo getFonts() ?>; }
a, .menu a:hover, #nav-above a:hover, #footer a:hover, .entry-meta a:hover { color: <?php echo $color ?>; }
.fetch:hover { background: <?php echo $color ?>; }
blockquote { border-color: <?php echo $color ?>; }
.menu ul .current-menu-item a { color: <?php echo $color ?>; }
#respond .form-submit input { background: <?php echo $color ?>; }
/* fluid grid */
<?php if (!fluidGrid()): ?>
.wrapper { width: 960px; margin: 0 auto; }
<?php else: ?>
.wrapper { margin: 0 40px; }
<?php endif ?>
.box .texts { border: 20px solid <?php echo $color ?>; background: <?php echo $color ?>; }
<?php if (!imagesOnly()): ?>
.box .categories { padding-top: 15px; }
<?php endif ?>
</style>
<script type="text/javascript">
$(document).ready(function() {
// shortcodes
$('.wide').detach().appendTo('#wides');
$('.aside').detach().appendTo('.entry-aside');
// fluid grid
<?php if (fluidGrid()): ?>
function wrapperWidth() {
var wrapper_width = $('body').width() - 20;
wrapper_width = Math.floor(wrapper_width / 250) * 250 - 40;
if (wrapper_width < 1000) wrapper_width = 1000;
$('.wrapper').css('width', wrapper_width);
}
wrapperWidth();
$(window).resize(function() {
wrapperWidth();
});
<?php endif ?>
// search
$(document).ready(function() {
$('#s').val('Search');
});
$('#s').bind('focus', function() {
$(this).css('border-color', '<?php echo $color ?>');
if ($(this).val() == 'Search') $(this).val('');
});
$('#s').bind('blur', function() {
$(this).css('border-color', '#DEDFE0');
if ($(this).val() == '') $(this).val('Search');
});
// grid
$('#boxes').masonry({
itemSelector: '.box',
columnWidth: 210,
gutterWidth: 40
});
$('#related').masonry({
itemSelector: '.box',
columnWidth: 210,
gutterWidth: 40
});
$('.texts').live({
'mouseenter': function() {
if ($(this).height() < $(this).find('.abs').height()) {
$(this).height($(this).find('.abs').height());
}
$(this).stop(true, true).animate({
'opacity': '1',
'filter': 'alpha(opacity=100)'
}, 0);
},
'mouseleave': function() {
$(this).stop(true, true).animate({
'opacity': '0',
'filter': 'alpha(opacity=0)'
}, 0);
}
});
// comments
$('.comment-form-author label').hide();
$('.comment-form-author span').hide();
$('.comment-form-email label').hide();
$('.comment-form-email span').hide();
$('.comment-form-url label').hide();
$('.comment-form-comment label').hide();
if ($('.comment-form-author input').val() == '')
{
$('.comment-form-author input').val('Name (required)');
}
if ($('.comment-form-email input').val() == '')
{
$('.comment-form-email input').val('Email (required)');
}
if ($('.comment-form-url input').val() == '')
{
$('.comment-form-url input').val('URL');
}
if ($('.comment-form-comment textarea').html() == '')
{
$('.comment-form-comment textarea').html('Your message');
}
$('.comment-form-author input').bind('focus', function() {
$(this).css('border-color', '<?php echo $color ?>').css('color', '#333');
if ($(this).val() == 'Name (required)') $(this).val('');
});
$('.comment-form-author input').bind('blur', function() {
$(this).css('border-color', '<?php echo '#ccc' ?>').css('color', '#6b6b6b');
if ($(this).val().trim() == '') $(this).val('Name (required)');
});
$('.comment-form-email input').bind('focus', function() {
$(this).css('border-color', '<?php echo $color ?>').css('color', '#333');
if ($(this).val() == 'Email (required)') $(this).val('');
});
$('.comment-form-email input').bind('blur', function() {
$(this).css('border-color', '<?php echo '#ccc' ?>').css('color', '#6b6b6b');
if ($(this).val().trim() == '') $(this).val('Email (required)');
});
$('.comment-form-url input').bind('focus', function() {
$(this).css('border-color', '<?php echo $color ?>').css('color', '#333');
if ($(this).val() == 'URL') $(this).val('');
});
$('.comment-form-url input').bind('blur', function() {
$(this).css('border-color', '<?php echo '#ccc' ?>').css('color', '#6b6b6b');
if ($(this).val().trim() == '') $(this).val('URL');
});
$('.comment-form-comment textarea').bind('focus', function() {
$(this).css('border-color', '<?php echo $color ?>').css('color', '#333');
if ($(this).val() == 'Your message') $(this).val('');
});
$('.comment-form-comment textarea').bind('blur', function() {
$(this).css('border-color', '<?php echo '#ccc' ?>').css('color', '#6b6b6b');
if ($(this).val().trim() == '') $(this).val('Your message');
});
$('#commentform').bind('submit', function(e) {
if ($('.comment-form-author input').val() == 'Name (required)')
{
$('.comment-form-author input').val('');
}
if ($('.comment-form-email input').val() == 'Email (required)')
{
$('.comment-form-email input').val('');
}
if ($('.comment-form-url input').val() == 'URL')
{
$('.comment-form-url input').val('');
}
if ($('.comment-form-comment textarea').val() == 'Your message')
{
$('.comment-form-comment textarea').val('');
}
})
$('.commentlist li div').bind('mouseover', function() {
var reply = $(this).find('.reply')[0];
$(reply).find('.comment-reply-link').show();
});
$('.commentlist li div').bind('mouseout', function() {
var reply = $(this).find('.reply')[0];
$(reply).find('.comment-reply-link').hide();
});
});
</script>
<?php echo getFavicon() ?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<div id="header">
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<img src="/wp-content/themes/imbalance2/images/shopbot-2.jpg">
</a>
<div class="clear"></div>
</div>
<div id="main">