<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content
 * after.  Calls sidebar-footer.php for bottom widgets.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
 $options = get_option('cOptn');
 wp_footer();
 
?>

<br class="clear" />
<br class="clear" />

<div class="footer">

<div class="fcontact">
<h2>Contact Us</h2>
	<?php $contact = new WP_Query( 'category_name=contact&showposts=2&order=ASC' ); ?>  
    <?php while ($contact->have_posts()) : $contact->the_post(); ?>
		<?php the_content(); ?>
        <a class="enq" href="<?php the_permalink(); ?>">General enquiries</a>
	<?php endwhile; wp_reset_query(); ?>
    
<div class="clear"></div>
</div>

<div class="fServices">
<h2>Services</h2>
<ul>
	  <?php $services = new WP_Query(array( 'post_type' => 'services', 'posts_per_page' => 4 )); ?>
      <?php while ($services->have_posts()) : $services->the_post(); ?>
        <li><a href="<?php the_permalink(); ?>" ><?php the_title(); ?></a></li>	  
      <?php endwhile; wp_reset_query(); ?>
</ul>

</div>

<div class="fPartners">
<h2>Connect With Us</h2>

<div class="social-area">

   <a href="<?php echo $options['facebook_link']; ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.jpg" /></a>
   <a href="<?php echo $options['twitter_link']; ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.jpg" /></a>
   <a href="<?php echo $options['google_link']; ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/google.jpg" /></a>
   <a href="<?php echo $options['linkedin_link']; ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/linked.jpg" /></a>
   <a href="<?php echo $options['youtube_link']; ?>" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/youtube.jpg" /></a>
    
</div>

<br class="clear">

<h2>Newsletter</h2>
<div class="newletter-area"><?php dynamic_sidebar('sidebar-1'); ?></div>

</div><!-- Main Container Wrap -->

<div class="fPartners flogo">
	<a href="/"><img src="<?php bloginfo('template_directory'); ?>/images/footlogo.png" /></a>
</div><!-- Main Container Wrap -->
        
<br class="clear">
<br class="clear">

<div class="copyright"><?php echo $options['copyright']; ?></div>

		</div>
	</div>
</div><!-- Main Container -->

</body>
</html>
