Footer code:
<?php
/**
* The template for displaying the footer.
*
* @package Striking
*/
if(theme_get_option('footer','footer') || theme_get_option('footer','sub_footer')):
wp_reset_query();
if(is_front_page()){
global $home_page_id;
$footer_color = get_post_meta($home_page_id, '_footer_background_color', true);
}else{
$footer_color = get_post_meta(get_queried_object_id(), '_footer_background_color', true);
}
if(!empty($footer_color) && $footer_color != "transparent"){
$footer_color = ' style="background-color:'.$footer_color.'"';
}else{
$footer_color = '';
}
if(theme_get_option('footer','stricky_footer')){
echo '<div><div>';
}
?>
<footer id="footer"<?php echo $footer_color;?>>
<?php if(theme_get_option('footer','footer')):?>
<div id="footer_shadow"></div>
<div class="inner">
<div class="clearboth"></div>
</div>
<?php endif;?>
<?php if(theme_get_option('footer','sub_footer')):?>
<div id="footer_bottom">
<div class="inner">
<div id="copyright"><?php echo wpml_t(THEME_NAME, 'Copyright Footer Text',stripslashes(theme_get_option('footer','copyright')))?></div>
<?php
$footer_right_area_type = theme_get_option('footer','footer_right_area_type');
switch($footer_right_area_type){
case 'html':
echo '<div id="footer_right_area">';
echo do_shortcode(wpml_t(THEME_NAME, 'Footer Right Area Html Code',stripslashes( theme_get_option('footer','footer_right_area_html') )));
echo '</div>';
break;
case 'menu':
wp_nav_menu(array(
'theme_location' => 'footer-menu',
'container' => 'nav',
'container_id' => 'footer_menu',
'fallback_cb' => ''
));
break;
case 'widget':
echo '<div id="footer_right_area">';
dynamic_sidebar(__('Sub Footer Widget Area','striking_admin'));
echo '</div>';
break;
}
?>
<div class="clearboth"></div>
</div>
</div>
<?php endif;?>
</footer>
<?php
if(theme_get_option('footer','stricky_footer')){
echo '</div></div>';
}
endif;?>
<?php
wp_footer();
theme_add_cufon_code_footer();
if(theme_get_option('general','analytics') && theme_get_option('general','analytics_position')=='bottom'){
echo stripslashes(theme_get_option('general','analytics'));
}
if(theme_get_option('general','custom_js')){
echo stripslashes(theme_get_option('general','custom_js'));
}
?>
</body>
</html>