<?php
/**
* The template for displaying the footer.
*
* @package WordPress
* @subpackage Amplifier
*/
?>
<div class="clear"></div>
<footer>
<div class="dotted-hr"></div>
<?php $footer_choice = of_get_option('footer_choice');
if($footer_choice == 'true') { ?>
<div id="home-widgets-wrap" >
<div id="home-widgets" class="container_12 clearfix">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('footer-widgets')) : // check for 'footer-widgets' and display if exists ?>
<?php else : // if no 'cta-widgets' then display placeholder text ?>
<?php include (TEMPLATEPATH.'/includes/placeholder/sidebar-footer.php'); ?>
<?php endif; // end 'footer-widgets' check ?>
</div> <!-- end #home-widgets .container_12 -->
</div> <!-- end #home-widgets-wrap -->
<?php } elseif ($footer_choice == 'false') {} //nada ?>
<div class="clear"></div>
<!-- Begin Social Media Bar -->
<?php $social_bar_position = of_get_option('social_bar_position'); //check if user wants to display the social bar in footer
if ( $social_bar_position == 'bottom' || $social_bar_position == 'both' ) { ?>
<div id="social-wrap">
<div id="social-icons" class="container_12">
<ul class="grid_10 omega">
<!-- TWITTER -->
<?php $twitter_name = of_get_option('twitter_username');
if(!$twitter_name) { /* nada */ } else { ?>
<li id="twitter">
<a href="http://twitter.com/<?php echo $twitter_name ?>" title="<?php echo of_get_option('twitter_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Twitter -->
<!-- FACEBOOK -->
<?php $facebook_link = of_get_option('facebook_link');
if(!$facebook_link) { /* nada */ } else { ?>
<li id="facebook">
<a href="<?php echo $facebook_link ?>" title="<?php echo of_get_option('facebook_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Facebook -->
<!-- LINKEDIN -->
<?php $linkedin_link = of_get_option('linkedin_link');
if(!$linkedin_link) { /* nada */ } else { ?>
<li id="linkedin">
<a href="<?php echo $linkedin_link ?>" title="<?php echo of_get_option('linkedin_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Linkedin -->
<!-- DRIBBBLE -->
<?php $dribbble_link = of_get_option('dribbble_link');
if(!$dribbble_link) { /* nada */ } else { ?>
<li id="dribbble">
<a href="<?php echo $dribbble_link ?>" title="<?php echo of_get_option('dribbble_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Dribbble -->
<!-- FORRST -->
<?php $forrst_link = of_get_option('forrst_link');
if(!$forrst_link) { /* nada */ } else { ?>
<li id="forrst">
<a href="<?php echo $forrst_link ?>" title="<?php echo of_get_option('forrst_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Forrst -->
<!-- GOOGLE -->
<?php $google_link = of_get_option('google_link');
if(!$google_link) { /* nada */ } else { ?>
<li id="google">
<a href="<?php echo $google_link ?>" title="<?php echo of_get_option('google_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Google -->
<!-- RSS -->
<?php $rss_link = of_get_option('rss_link');
if(!$rss_link) { /* nada */ } else { ?>
<li id="rss">
<a href="<?php echo $rss_link ?>" title="<?php echo of_get_option('rss_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end RSS -->
<!-- CONTACT -->
<?php $contact_link = of_get_option('contact_link');
if(!$contact_link) { /* nada */ } else { ?>
<li id="contact">
<a href="<?php echo $contact_link ?>" title="<?php echo of_get_option('contact_title'); ?>">
<div class="fadeThis">
<span class="hover"></span>
</div>
</a>
</li>
<?php } ?>
<!-- end Contact -->
</ul>
<!-- Send a Message -->
<div id="share" class="grid_2">
<?php $contact_form = of_get_option('contact_form'); // Get the contact form shortcode
if(!$contact_form) { /* nada */ } else { ?>
<div class="fadeThis">
<span class="hover"></span>
<a id="footer-contact" href="#inline1" title="<?php echo of_get_option('contact_message'); ?>" ><span><?php _e('Send a Message','amplifier'); ?></span></a>
</div>
<div class="hidden">
<div id="inline1">
<h3 class="fancybox-contact-title"><?php echo of_get_option('contact_title'); ?></h3>
<?php echo do_shortcode( $contact_form ); // placed the contact form shortcode from theme options panel ?>
</div> <!-- end #inline1 -->
</div> <!-- end .hidden -->
<?php } ?>
</div> <!-- end #share .grid_2 -->
</div><!-- end .container_12 -->
</div> <!-- end #social-wrap -->
<?php } else { } // end check for social bar position ?>
<div id="copyright-wrap" class="clearfix">
<div class="container_12">
<div id="copyright" class="grid_12 omega">
<p><?php echo stripslashes(of_get_option('copyright_text')); ?></p>
<img src="http://socialemediatraining.nl/wp-content/uploads/2012/01/logo-breed_nl_350-92.png" height="40">
<!-- FOOTER NAVIGATION -->
<?php if ( has_nav_menu( 'footer-menu' ) ) : /* if menu 'footer-menu' exists then use custom menu */ ?>
<?php wp_nav_menu( array( 'theme_location' => 'footer-menu', 'items_wrap' => '<ul class="footer-nav">%3$s</ul>', 'container' => '' ) ); ?>
<?php endif; // End footer menu check ?>
</div> <!-- end #copyright -->
</div><!-- end .container_12 -->
</div> <!-- end #footer-widget-wrap -->
</footer>
<!-- Nivo Slider Options -->
<?php $slider_choice = of_get_option('slider_choice'); //Get the slider choice
if ( is_front_page() && $slider_choice == 'nivo') { require_once(TEMPLATEPATH . '/includes/nivo.php'); } ?>
<!-- Content Slider Options -->
<?php $slider_choice = of_get_option('slider_choice'); //Get the slider choice
if ( is_front_page() && $slider_choice == 'content') { require_once(TEMPLATEPATH . '/includes/slides.php'); } ?>
<?php
/* Check Google Maps API Key
* Won't load js scripts if no API key
* is present
*/
$map_api = of_get_option('map_api');
if(!empty($map_api)) { ?>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=<?php echo $map_api; ?>&hl=en"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.gmap-1.1.0-min.js"></script>
<?php } ?>
<?php include (TEMPLATEPATH.'/includes/link-hover.php'); // link hover effect ?>
<?php
/* Display Theme version in footer sourcecode
* Used for debugging and support
*/
$themeversion = get_theme_data(STYLESHEETPATH . '/style.css');
$themeversion = $themeversion['Version']; ?>
<!-- This is version <?php echo $themeversion ?> -->
<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>
</body>
</html>