<?php 
/* 
This file is part of HeatMap Theme Pro v5
Copyright: Stuart Wider
Website: HeatMapTheme.com
*/
?>
<?php
global  $this_header_style, $using_ie6;;      
?>

    </div> <!-- id="main" -->
<!--
footer.php
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->
<div class="clearFloat"></div>

	<?php $this_footer_lock = hmt4_get_option('hmt_footer_lock'); ?>

	<?php if ( $this_footer_lock == 'All Footer Bars') print '<div id="footer-lock-wrapper">';?>

<!--
[Footer] Lock Bar
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->

	<?php 
    if (hmt4_get_option('hmt_display_footer_lock_bar')) {
    ?>
    
        <div id="footer-lock">
        
            <?php
            if (hmt_is_sidebar_active('footer_lock')) {
				if ($this_header_style == "Classic") { ?>
			  		<div class="clearFloat-spacer-10">&nbsp;</div>
                <?php
				}
            ?>	
            		
            	
                    <span class="footer-lock-widget-block">
                        <?php dynamic_sidebar('footer_lock'); ?>
                    </span>
            <?php
            }
            ?>
    
        </div> <!-- id="footer-lock" -->
        
	<?php
	}
	?>



<!-- 
Footers Left and Right
~~~ -->
	<?php if (!hmt4_get_option('hmt_show_footer_bar'))  /* hide the footer bar from the options */
	{
	?>
    
    	<?php 
        $this_class = '';
         
        if (($this_header_style == "Above Header") || ($this_header_style == "Below Header")) {
            $this_class = 'class="rounded-top"'; 
         }
        ?>
    
    	<div id="footer-wipe" <?php print $this_class; ?>>
            <div id="footer">
                <div id="footer-content">
                    
                    <?php 
                    if (hmt_is_sidebar_active('topfooter')) { ?>
                    
                        <div id="footer-content-left">	   
                             <?php dynamic_sidebar('topfooter'); ?>      
                        </div> <!-- id="footer-content-left" -->  
                        
                        <div id="footer-content-right">	
                            <?php hmt_footer_right(); ?>
                        </div> <!-- id="footer-content-right" -->
                    <?php
                    }
                    else
                    {
                    ?>
                        <div id="footer-content-left">	   
                             <?php hmt_footer_left(); ?>        
                        </div> <!-- id="footer-content-left" -->  
                        
                        <div id="footer-content-right">	
                            <?php hmt_footer_right(); ?>
                        </div> <!-- id="footer-content-right" -->
                        
                    <?php    
                    }
                    ?>
                     
                </div> <!-- "footer-content" -->
            </div> <!-- id="footer" -->
        </div> <!-- id="foote-wipe" -->
		
		<div class="clearFloat"></div>
	
	<?php
	}
	?>
      
<!-- 
Sub Footers Left and Right
~~~ -->  

	<?php if (!hmt4_get_option('hmt_show_subfooter_bar'))  /* hide the subfooter bar from the options as of modification here */
	{
	?>
    
        <?php 
        $this_class = '';
         
        if ((($this_header_style == "Above Header") || ($this_header_style == "Below Header")) && hmt4_get_option('hmt_show_footer_bar')) {
            $this_class = 'class="rounded-top"'; 
         }
        ?>
    
    	<div id="sub-footer-wipe"  <?php print $this_class; ?>>
            <div id="sub-footer">
                <div id="sub-footer-content">
                
                    <?php 
                    if (hmt_is_sidebar_active('subfooter')) { ?>
        
                        <div id="sub-footer-content-left">	
                            <?php dynamic_sidebar('subfooter'); ?>
                        </div> <!-- id="sub-footer-content-left" -->
     
                        <div id="sub-footer-content-right">	
                            <?php hmt_subfooter_right(); ?>
                        </div> <!-- id="sub-footer-content-right" -->
                    <?php
                    }
                    else
                    {
                    ?>
                        <div id="sub-footer-content-left">	
                            <?php hmt_subfooter_left(); ?>
                        </div> <!-- id="sub-footer-content-left" -->
     
                        <div id="sub-footer-content-right">	
                            <?php hmt_subfooter_right(); ?>
                        </div> <!-- id="sub-footer-content-right" -->
     
                    <?php    
                    }
                    ?>            
    
                </div> <!-- id="sub-footer-content" -->  
            </div> <!-- id="sub-footer" -->
        </div> <!-- id="sub-footer-wipe" -->
		
		<div class="clearFloat"></div>

	<?php
	}
	?>
    
<!--
[Footer] Lock Bar
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->

	<?php 
	
	$display_sub_footer_lock_bar = hmt4_get_option('hmt_display_sub_footer_lock_bar');
	
	if ($display_sub_footer_lock_bar) {
		if ($this_footer_lock == '[Sub Footer] Lock Only') print '<div id="footer-lock-wrapper">';
		?>

        <div id="sub-footer-lock">
        
            <?php
            if (hmt_is_sidebar_active('sub_footer_lock')) {
            ?>	
                    <span class="sub-footer-lock-widget-block">
                        <?php dynamic_sidebar('sub_footer_lock'); ?>
                    </span>
            <?php
            }
            ?>
    
        </div> <!-- id="sub-footer-lock" --> 
        
        <div class="clearFloat"></div>  
    
    <?php
	} 
	?>
    
   	<?php 
    if ($this_footer_lock == 'All Footer Bars' ||
        ($this_footer_lock == '[Sub Footer] Lock Only' && $display_sub_footer_lock_bar)) {
    ?>  
            </div> <!--footer lock wrapper--> 
    <?php
    } 
    ?>
    
    
	<?php 
	if (hmt4_get_option('hmt_footer_lock_offset')) {
		if ($this_footer_lock == 'All Footer Bars' ||
			($this_footer_lock == '[Sub Footer] Lock Only' && $display_sub_footer_lock_bar)) {
			if (!$using_ie6) {?>  
				<div id="footer-lock-spacer" style="height:<?php hmt4_echo_option('hmt_footer_lock_offset'); ?>px;">&nbsp;</div> 
		<?php
			}
		} 
	}
	?>
     
		
<!-- 
Google Analytics
~~~ -->	
	<?php hmt4_echo_option('hmt_google_analytics'); ?>

	<?php wp_footer(); ?>
	<?php echo '<!-- Number of Queries:'; echo (get_num_queries()); echo '   Seconds: '; timer_stop(1); echo '-->'; echo "\n"; ?>
    
	<?php get_template_part('like-button-scripts'); ?>
</body>

</html>

<!--
End of footer.php
~~~ -->
