This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

75 lines
2.5 KiB
PHP

<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package Decode
*/
?>
<?php tha_content_bottom(); ?>
</div><!-- #content -->
<?php tha_content_after(); ?>
<?php tha_footer_before(); ?>
<footer id="colophon" class="site-footer" role="contentinfo">
<?php tha_footer_top(); ?>
<?php
if ( get_theme_mod( 'show_footer_social_icons', false ) == true ) {
get_template_part( 'social-links' );
}
if ( has_nav_menu( 'footer-menu' ) ) {
wp_nav_menu( array(
'theme_location' => 'footer-menu',
'container' => false,
'menu_class' => 'menu horizontal-menu footer-menu',
'menu_id' => 'footer-menu',
'fallback_cb' => false,
'items_wrap' => '<nav id="%1$s" class="%2$s" role="navigation"><ul>%3$s</ul></nav><!-- #footer-menu -->'
) );
}
?>
<?php if ( get_theme_mod( 'site_colophon', '' ) !== '' ) : ?>
<div class="site-colophon">
<p><?php echo get_theme_mod( 'site_colophon' ); ?></p>
</div><!-- .site-colophon -->
<?php endif; ?>
<?php if ( get_theme_mod( 'show_theme_info', true ) == true ) : ?>
<div class="theme-info">
<p><?php printf(__( '%1$s by %2$s', 'decode' ), '<a href="' . esc_url( 'http://ScottHSmith.com/projects/decode/' ) . '">Decode</a>', 'Scott Smith') ?></p>
</div><!-- .theme-info -->
<?php endif; ?>
<?php tha_footer_bottom(); ?>
</footer><!-- #colophon -->
<?php tha_footer_after(); ?>
<?php if ( get_theme_mod( 'constant_sidebar', 'closing' ) == 'constant' && get_theme_mod( 'show_sidebar', true ) == true ) { echo '</div><!-- .site-scroll -->'; } ?>
</div><!-- #page -->
<?php if ( get_theme_mod( 'show_sidebar', true ) == true ) : ?>
<div id="sidebar" class="sidebar <?php echo get_theme_mod( 'sidebar_position', 'left' );?> <?php echo get_theme_mod( 'constant_sidebar', 'closing' );?>">
<div id="sidebar_top" class="SidebarTop">
<div id="sidebar_close" class="SidebarClose">
<svg width="100%" height="100%" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path class="SocialIconFill" d="M0,172.881356 L72.8813559,100 L1.0658141e-14,27.1186441 L27.1186441,-2.84217094e-14 L100,72.8813559 L172.881356,0 L200,27.1186441 L127.118644,100 L200,172.881356 L172.881356,200 L100,127.118644 L27.1186441,200 Z M0,172.881356" fill="#444444"></path>
</svg>
</div>
</div>
<div class="SidebarContent">
<?php get_sidebar(); ?>
</div>
</div>
<?php endif; ?>
<!-- #sidebar -->
<?php tha_body_bottom(); ?>
<?php wp_footer(); ?>
</body>
</html>