src/web/app/themes/atahualpa/footer.php
changeset 0 505fe5249d9c
equal deleted inserted replaced
-1:000000000000 0:505fe5249d9c
       
     1 <?php /* if index.php or another page template (copied from index.php) was not used */
       
     2 global $bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2;
       
     3 if (!isset($bfa_ata))  
       
     4 list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
       
     5 ?>
       
     6 </td>
       
     7 <!-- / Main Column -->
       
     8 
       
     9 <!-- Right Inner Sidebar -->
       
    10 <?php if ( $right_col2 == "on" ) { ?>
       
    11 <td id="right-inner">
       
    12 
       
    13 	<?php if ( !dynamic_sidebar('Right Inner Sidebar') ) : ?>
       
    14 
       
    15 		<div class="widget widget_categories"><div class="widget-title">
       
    16 		<h3><?php _e('Categories','atahualpa'); ?></h3>
       
    17 		</div>
       
    18 		<ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>
       
    19 		</div>
       
    20 		
       
    21 		<div class="widget widget_archive"><div class="widget-title">
       
    22 		<h3><?php _e('Archives','atahualpa'); ?></h3>
       
    23 		</div>
       
    24 		<ul><?php wp_get_archives('type=monthly'); ?></ul>
       
    25 		</div>
       
    26 
       
    27 		<div class="widget widget_text"><div class="widget-title">
       
    28 		<h3>A sample text widget</h3></div>
       
    29 		<div class="textwidget">
       
    30 		<p>Etiam pulvinar consectetur dolor sed malesuada. Ut convallis 
       
    31 		<a href="http://wordpress.org/">euismod dolor nec</a> pretium. Nunc ut tristique massa. </p>
       
    32 		<p>Nam sodales mi vitae dolor <em>ullamcorper et vulputate enim accumsan</em>. 
       
    33 		Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. <strong>Nulla nulla lorem</strong>, 
       
    34 		suscipit in posuere in, interdum non magna. </p>
       
    35 		</div>
       
    36 	
       
    37 	<?php endif; ?>
       
    38 
       
    39 </td>
       
    40 <?php } ?>
       
    41 
       
    42 <!-- Right Sidebar -->
       
    43 <?php if ( $right_col == "on" ) { ?>
       
    44 <td id="right">
       
    45 
       
    46 	<?php if ( !dynamic_sidebar('Right Sidebar') ) : ?>
       
    47 	
       
    48 		<!-- Default content here -->
       
    49     	<div class="widget"><div class="widget-title"><h3>Recent Posts</h3></div>
       
    50 			<?php $r = new WP_Query(array(
       
    51 				'showposts' => 20,
       
    52 				'what_to_show' => 'posts',
       
    53 				'nopaging' => 0,
       
    54 				'post_status' => 'publish',
       
    55 				'ignore_sticky_posts' => 1));
       
    56 			if ($r->have_posts()) : ?>
       
    57 		<ul>
       
    58 		<?php  while ($r->have_posts()) : $r->the_post(); ?>
       
    59 			<li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a></li>
       
    60     	<?php endwhile; ?>
       
    61     	</ul>
       
    62     	<?php wp_reset_query();  // Restore global post data stomped by the_post().
       
    63     	endif; ?>
       
    64 		</div>
       
    65 
       
    66     	<div id="linkcat-99" class="widget widget_links"><div class="widget-title">
       
    67     	<?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div>'); ?>
       
    68     	</div>
       
    69 
       
    70     	<div class="widget"><div class="widget-title">
       
    71     	<h3><?php _e('Meta','atahualpa'); ?></h3>
       
    72     	</div>
       
    73     	<ul>
       
    74     		<?php wp_register(); ?>
       
    75     		<li><?php wp_loginout(); ?></li>
       
    76     		<li><a href="http://wordpress.org/" title="
       
    77     		<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>">
       
    78     		<?php _e('WordPress','atahualpa'); ?></a></li>
       
    79     		<?php wp_meta(); ?>
       
    80     	</ul>
       
    81     	</div>
       
    82 
       
    83 	<?php endif; ?>
       
    84 
       
    85 </td>
       
    86 <?php } ?>
       
    87 <!-- / Right Sidebar -->
       
    88 
       
    89 </tr>
       
    90 <!-- / Main Body -->
       
    91 
       
    92 <?php if ($bfa_ata['full_width_footer'] == "No") { ?>
       
    93 <tr>
       
    94 
       
    95 <!-- Footer -->
       
    96 <td id="footer" colspan="<?php echo $cols; ?>">
       
    97     <?php echo bfa_footer(); ?>
       
    98     <?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
       
    99     <p>
       
   100     <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
       
   101     </p>
       
   102     <?php } ?>
       
   103 
       
   104     <?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
       
   105     <!--
       
   106     <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
       
   107     -->
       
   108     <?php } ?>
       
   109 
       
   110     <?php wp_footer(); ?>
       
   111 </td>
       
   112 
       
   113 
       
   114 </tr>
       
   115 <?php } ?>
       
   116 
       
   117 </table><!-- / layout -->
       
   118 </div><!-- / container -->
       
   119 </div><!-- / wrapper -->
       
   120 <?php if ($bfa_ata['full_width_footer'] == "Yes") { ?>
       
   121 		<!-- Full Width Footer -->
       
   122 		<div id="footer" class="full-width">
       
   123     <?php echo bfa_footer(); ?>
       
   124     <?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
       
   125     <p>
       
   126     <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
       
   127     </p>
       
   128     <?php } ?>
       
   129 
       
   130     <?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
       
   131     <!--
       
   132     <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
       
   133     -->
       
   134     <?php } ?>
       
   135 
       
   136     <?php wp_footer(); ?>
       
   137 		</div>
       
   138 		<!-- / Full Width Footer -->
       
   139 <?php } ?>
       
   140 
       
   141 <?php bfa_incl('html_inserts_body_bottom'); ?>
       
   142 </body>
       
   143 </html>