-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
143 lines (118 loc) · 4.57 KB
/
footer.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
<?php /* if index.php or another page template (copied from index.php) was not used */
global $bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2;
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();
?>
</td>
<!-- / Main Column -->
<!-- Right Inner Sidebar -->
<?php if ( $right_col2 == "on" ) { ?>
<td id="right-inner">
<?php if ( !dynamic_sidebar('Right Inner 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>
<?php endif; ?>
</td>
<?php } ?>
<!-- Right Sidebar -->
<?php if ( $right_col == "on" ) { ?>
<td id="right">
<?php if ( !dynamic_sidebar('Right Sidebar') ) : ?>
<!-- Default content here -->
<div class="widget"><div class="widget-title"><h3>Recent Posts</h3></div>
<?php $r = new WP_Query(array(
'showposts' => 20,
'what_to_show' => 'posts',
'nopaging' => 0,
'post_status' => 'publish',
'ignore_sticky_posts' => 1));
if ($r->have_posts()) : ?>
<ul>
<?php while ($r->have_posts()) : $r->the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a></li>
<?php endwhile; ?>
</ul>
<?php wp_reset_query(); // Restore global post data stomped by the_post().
endif; ?>
</div>
<div id="linkcat-99" class="widget widget_links"><div class="widget-title">
<?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div>'); ?>
</div>
<div class="widget"><div class="widget-title">
<h3><?php _e('Meta','atahualpa'); ?></h3>
</div>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://wordpress.org/" title="
<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>">
<?php _e('WordPress','atahualpa'); ?></a></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php endif; ?>
</td>
<?php } ?>
<!-- / Right Sidebar -->
</tr>
<!-- / Main Body -->
<?php if ($bfa_ata['full_width_footer'] == "No") { ?>
<tr>
<!-- Footer -->
<td id="footer" colspan="<?php echo $cols; ?>">
<?php echo bfa_footer(); ?>
<?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
<p>
<?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
</p>
<?php } ?>
<?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
<!--
<?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
-->
<?php } ?>
<?php wp_footer(); ?>
</td>
</tr>
<?php } ?>
</table><!-- / layout -->
</div><!-- / container -->
</div><!-- / wrapper -->
<?php if ($bfa_ata['full_width_footer'] == "Yes") { ?>
<!-- Full Width Footer -->
<div id="footer" class="full-width">
<?php echo bfa_footer(); ?>
<?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
<p>
<?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
</p>
<?php } ?>
<?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
<!--
<?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
-->
<?php } ?>
<?php wp_footer(); ?>
</div>
<!-- / Full Width Footer -->
<?php } ?>
<?php bfa_incl('html_inserts_body_bottom'); ?>
</body>
</html>