</head> <body <?php body_class(); ?> > <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'great'); ?> </a> <header id="masthead" class="site-header" role="banner"> <div class="site-branding"> <div class="header-search"> <?php great_site_contact("header"); ?> <div class="ss"> <?php get_search_form(); ?> <?php great_social_media("header"); ?> </div> </div> <?php if (get_theme_mod('logo', get_template_directory_uri() . '/images/logo.png')) { ?>
function great_wp_footer() { ?> </div><!-- #content --> <?php // Footer Widgets $s = array('footer-left', 'footer-center', 'footer-right'); // Is Active? $active = array(); foreach ($s as $i) { if (is_active_sidebar($i)) { $active[] = $i; } } ?> <?php if (is_active_sidebar('left-sidebar')) { ?> <ul id="sidebar"><?php dynamic_sidebar('left-sidebar'); ?> </ul> <?php } ?> <footer id="colophon" class="site-footer" role="contentinfo"> <!-- Footer Quotation --> <?php great_footer_quote(); ?> <div class="clear"></div> <!-- Footer Widgets --> <?php // Count Actives if (count($active)) { $width = round(100 / count($active), 2) - 2; // -2 : for margins foreach ($active as $activ) { ?> <div style="width:<?php echo $width; ?> %;" class="footer-widget"><?php dynamic_sidebar($activ); ?> </div> <?php } } ?> <div class="clear"></div> <!-- Site Contact --> <?php great_site_contact("footer"); ?> <div class="clear"></div> <!-- Footer SM --> <?php great_social_media("footer"); ?> <div class="clear"></div> <div class="site-info"><?php printf(__('Copyright © %1$d %2$s.', 'great'), date('Y'), '<a href="' . esc_url(home_url('/')) . '" title="' . esc_attr(get_bloginfo('name', 'display')) . '" ><span>' . get_bloginfo('name', 'display') . '</span></a>'); ?> <?php _e('Powered by WordPress', 'great'); ?> <span class="sep"> & </span><?php printf(__('Author: %s', 'great'), 'Ben Alvele, <strong><a target="_self" href="http://alvele.com/">alvele.com</a></strong>'); ?> <span class="sep"> & </span><?php printf(__('<span>Active theme</span> %s', 'great'), 'Great'); ?> </div><!-- .site-info --> </footer><!-- #colophon --> <div id="back_top"><i class="fa fa-angle-up"></i></div> </div><!-- #page --> <?php }