|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 <?php |
|
3 $templateURI = get_template_directory_uri(); |
|
4 $homeURL = get_home_url(); ?> |
|
5 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
|
6 <head> |
|
7 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> |
|
8 <?php // if index.php or another page template (copied from index.php) was not used |
|
9 if (!isset($bfa_ata)) |
|
10 list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options(); ?> |
|
11 <?php global $post_id; ?> |
|
12 <title><?php wp_title( '' ); ?></title> |
|
13 <?php if ( isset($bfa_ata['IEDocType']) ) { |
|
14 switch ( $bfa_ata['IEDocType'] ) { |
|
15 case "None": |
|
16 break; |
|
17 case "EmulateIE7": |
|
18 ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> |
|
19 <?php |
|
20 break; |
|
21 case "EmulateIE8": |
|
22 ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/> |
|
23 <?php |
|
24 break; |
|
25 case "IE8": |
|
26 ?><meta http-equiv="X-UA-Compatible" content="IE=8"/> |
|
27 <?php |
|
28 break; |
|
29 case "IE9": |
|
30 ?><meta http-equiv="X-UA-Compatible" content="IE=9"/> |
|
31 <?php |
|
32 break; |
|
33 case "Edge": |
|
34 ?><meta http-equiv="X-UA-Compatible" content="IE=Edge"/> |
|
35 <?php |
|
36 break; |
|
37 default: |
|
38 break; |
|
39 }} ?><?php echo bfa_meta_tags(); ?> |
|
40 <?php |
|
41 |
|
42 if ($bfa_ata['favicon_file'] != "") { |
|
43 if($bfa_ata['images_root'] == "atahualpa") { |
|
44 $imgdir = get_template_directory_uri() . '/images/favicon/'; |
|
45 } else { |
|
46 // at this point the images_root is 'wp-content' |
|
47 if(!isset($bfa_ata['ata_images_dir']) |
|
48 OR ($bfa_ata['ata_images_dir'] == '') ) { |
|
49 $imgdir = content_url() . '/ata-images/'; |
|
50 } else { |
|
51 $imgdir = content_url() . '/' . $bfa_ata['ata_images_dir'] . '/'; |
|
52 } |
|
53 } |
|
54 ?><link rel="shortcut icon" href="<?php echo $imgdir. $bfa_ata['favicon_file']; ?>" /> |
|
55 <?php } ?> |
|
56 <link rel="profile" href="http://gmpg.org/xfn/11" /> |
|
57 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> |
|
58 <?php if ( $bfa_ata['css_external'] == "External" ) { ?><link rel="stylesheet" href="<?php echo $homeURL; ?>/?bfa_ata_file=css" type="text/css" media="all" /><?php } ?> |
|
59 <?php if ( function_exists('wp_list_comments') AND is_singular() AND (comments_open( $post_id ))) { wp_enqueue_script( 'comment-reply' ); } ?> |
|
60 <?php wp_head(); ?> |
|
61 </head> |
|
62 <body <?php body_class(); ?> <?php bfa_incl('html_inserts_body_tag'); ?>> |
|
63 <?php bfa_incl('html_inserts_body_top'); ?> |
|
64 |
|
65 <?php if ($bfa_ata['full_width_header'] == "Yes") { ?> |
|
66 <!-- Full Width Header --> |
|
67 <div id="header" class="full-width"> |
|
68 <?php echo bfa_header_config(); ?> |
|
69 </div> |
|
70 <!-- / Full Width Header --> |
|
71 <?php } ?> |
|
72 <div id="wrapper"> |
|
73 <div id="container"> |
|
74 <table id="layout" border="0" cellspacing="0" cellpadding="0"> |
|
75 <colgroup> |
|
76 <?php if ( $left_col == "on" ) { ?><col class="colone" /><?php } ?> |
|
77 <?php if ( $left_col2 == "on" ) { ?><col class="colone-inner" /><?php } ?> |
|
78 <col class="coltwo" /> |
|
79 <?php if ( $right_col2 == "on" ) { ?><col class="colthree-inner" /><?php } ?> |
|
80 <?php if ( $right_col == "on" ) { ?><col class="colthree" /><?php } ?> |
|
81 </colgroup> |
|
82 |
|
83 <?php if ($bfa_ata['full_width_header'] == "No") { ?> |
|
84 |
|
85 <tr> |
|
86 |
|
87 <!-- Header --> |
|
88 <td id="header" colspan="<?php echo $cols; ?>"> |
|
89 |
|
90 <?php echo bfa_header_config(); ?> |
|
91 |
|
92 </td> |
|
93 <!-- / Header --> |
|
94 |
|
95 </tr> |
|
96 <?php } ?> |
|
97 <!-- Main Body --> |
|
98 <tr id="bodyrow"> |
|
99 |
|
100 <?php if ( $left_col == "on" ) { ?> |
|
101 <!-- Left Sidebar --> |
|
102 <td id="left"> |
|
103 |
|
104 <?php // Widgetize the Left Sidebar |
|
105 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?> |
|
106 |
|
107 <div class="widget widget_categories"> |
|
108 <div class="widget-title"> |
|
109 <h3><?php _e('Categories','atahualpa'); ?></h3> |
|
110 </div> |
|
111 <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul> |
|
112 </div> |
|
113 |
|
114 <div class="widget widget_archive"> |
|
115 <div class="widget-title"> |
|
116 <h3><?php _e('Archives','atahualpa'); ?></h3> |
|
117 </div> |
|
118 <ul><?php wp_get_archives('type=monthly'); ?></ul> |
|
119 </div> |
|
120 |
|
121 <div class="widget widget_text"> |
|
122 <div class="widget-title"> |
|
123 <h3>A sample text widget</h3> |
|
124 </div> |
|
125 <div class="textwidget"> |
|
126 <p>Etiam pulvinar consectetur dolor sed malesuada. Ut convallis |
|
127 <a href="http://wordpress.org/">euismod dolor nec</a> pretium. Nunc ut tristique massa. </p> |
|
128 <p>Nam sodales mi vitae dolor <em>ullamcorper et vulputate enim accumsan</em>. |
|
129 Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. <strong>Nulla nulla lorem</strong>, |
|
130 suscipit in posuere in, interdum non magna. </p> |
|
131 </div> |
|
132 </div> |
|
133 |
|
134 <?php endif; ?> |
|
135 |
|
136 </td> |
|
137 <!-- / Left Sidebar --> |
|
138 <?php } ?> |
|
139 |
|
140 <?php if ( $left_col2 == "on" ) { ?> |
|
141 <!-- Left INNER Sidebar --> |
|
142 <td id="left-inner"> |
|
143 |
|
144 <?php // Widgetize the Left Inner Sidebar |
|
145 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Inner Sidebar') ) : ?> |
|
146 |
|
147 <!-- no default content for the LEFT INNER sidebar --> |
|
148 |
|
149 <?php endif; ?> |
|
150 |
|
151 </td> |
|
152 <!-- / Left INNER Sidebar --> |
|
153 <?php } ?> |
|
154 |
|
155 |
|
156 <!-- Main Column --> |
|
157 <td id="middle"> |