-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
157 lines (135 loc) · 5.04 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
<!DOCTYPE html>
<?php
$templateURI = get_template_directory_uri();
$homeURL = get_home_url(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php // if index.php or another page template (copied from index.php) was not used
if (!isset($bfa_ata))
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options(); ?>
<?php global $post_id; ?>
<title><?php wp_title( '' ); ?></title>
<?php if ( isset($bfa_ata['IEDocType']) ) {
switch ( $bfa_ata['IEDocType'] ) {
case "None":
break;
case "EmulateIE7":
?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<?php
break;
case "EmulateIE8":
?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
<?php
break;
case "IE8":
?><meta http-equiv="X-UA-Compatible" content="IE=8"/>
<?php
break;
case "IE9":
?><meta http-equiv="X-UA-Compatible" content="IE=9"/>
<?php
break;
case "Edge":
?><meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<?php
break;
default:
break;
}} ?><?php echo bfa_meta_tags(); ?>
<?php
if ($bfa_ata['favicon_file'] != "") {
if($bfa_ata['images_root'] == "atahualpa") {
$imgdir = get_template_directory_uri() . '/images/favicon/';
} else {
// at this point the images_root is 'wp-content'
if(!isset($bfa_ata['ata_images_dir'])
OR ($bfa_ata['ata_images_dir'] == '') ) {
$imgdir = content_url() . '/ata-images/';
} else {
$imgdir = content_url() . '/' . $bfa_ata['ata_images_dir'] . '/';
}
}
?><link rel="shortcut icon" href="<?php echo $imgdir. $bfa_ata['favicon_file']; ?>" />
<?php } ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( $bfa_ata['css_external'] == "External" ) { ?><link rel="stylesheet" href="<?php echo $homeURL; ?>/?bfa_ata_file=css" type="text/css" media="all" /><?php } ?>
<?php if ( function_exists('wp_list_comments') AND is_singular() AND (comments_open( $post_id ))) { wp_enqueue_script( 'comment-reply' ); } ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> <?php bfa_incl('html_inserts_body_tag'); ?>>
<?php bfa_incl('html_inserts_body_top'); ?>
<?php if ($bfa_ata['full_width_header'] == "Yes") { ?>
<!-- Full Width Header -->
<div id="header" class="full-width">
<?php echo bfa_header_config(); ?>
</div>
<!-- / Full Width Header -->
<?php } ?>
<div id="wrapper">
<div id="container">
<table id="layout">
<colgroup>
<?php if ( $left_col == "on" ) { ?><col class="colone" /><?php } ?>
<?php if ( $left_col2 == "on" ) { ?><col class="colone-inner" /><?php } ?>
<col class="coltwo" />
<?php if ( $right_col2 == "on" ) { ?><col class="colthree-inner" /><?php } ?>
<?php if ( $right_col == "on" ) { ?><col class="colthree" /><?php } ?>
</colgroup>
<?php if ($bfa_ata['full_width_header'] == "No") { ?>
<tr>
<!-- Header -->
<td id="header" colspan="<?php echo $cols; ?>">
<?php echo bfa_header_config(); ?>
</td>
<!-- / Header -->
</tr>
<?php } ?>
<!-- Main Body -->
<tr id="bodyrow">
<?php if ( $left_col == "on" ) { ?>
<!-- Left Sidebar -->
<td id="left">
<?php // Widgetize the Left Sidebar
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
<div class="widget widget_categories">
<div class="widget-title">
<h3><?php _e('Categories','atahualpa'); ?></h3>
</div>
<ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>
</div>
<div class="widget widget_archive">
<div class="widget-title">
<h3><?php _e('Archives','atahualpa'); ?></h3>
</div>
<ul><?php wp_get_archives('type=monthly'); ?></ul>
</div>
<div class="widget widget_text">
<div class="widget-title">
<h3>A sample text widget</h3>
</div>
<div class="textwidget">
<p>Etiam pulvinar consectetur dolor sed malesuada. Ut convallis
<a href="http://wordpress.org/">euismod dolor nec</a> pretium. Nunc ut tristique massa. </p>
<p>Nam sodales mi vitae dolor <em>ullamcorper et vulputate enim accumsan</em>.
Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. <strong>Nulla nulla lorem</strong>,
suscipit in posuere in, interdum non magna. </p>
</div>
</div>
<?php endif; ?>
</td>
<!-- / Left Sidebar -->
<?php } ?>
<?php if ( $left_col2 == "on" ) { ?>
<!-- Left INNER Sidebar -->
<td id="left-inner">
<?php // Widgetize the Left Inner Sidebar
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Inner Sidebar') ) : ?>
<!-- no default content for the LEFT INNER sidebar -->
<?php endif; ?>
</td>
<!-- / Left INNER Sidebar -->
<?php } ?>
<!-- Main Column -->
<td id="middle">