function weaverii_get_sidebar_bottom($who) { if (!weaverii_is_checked_page_opt('bottom-widget-area')) { switch ($who) { case 'index': case 'pwp': case 'single': weaverii_put_widgetarea('blog-bottom-widget-area', 'sidebar_bottom'); break; case 'page': weaverii_put_widgetarea('bottom-widget-area', 'sidebar_bottom'); break; case 'archive': case 'author': case 'category': case 'tag': case 'search': case '404': break; case 'image': default: break; } } // end not hide bottom per page if (!weaverii_is_checked_page_opt('sitewide-bottom-widget-area')) { weaverii_put_widgetarea('sitewide-bottom-widget-area', 'sidebar_bottom'); } // sitewide bottom }
/** * The template for displaying the footer. * * Contains all content after the closing of the id=main div * * @package WordPress * @subpackage Weaver II * @since Weaver II 1.0 */ weaverii_trace_template(__FILE__); if (weaverii_getopt_checked('wii_footer_last')) { // move footer outside of page, allows wide footer echo "</div><!-- #wrapper -->\n"; } if (weaverii_use_mobile('mobile') && weaverii_getopt('_wii_mode_mobile') != 'weaver-mobile-smart-stacked' || weaverii_getopt('_wii_mode_mobile') == 'weaver-mobile-resp-nostack') { weaverii_put_widgetarea('mobile-widget-area', 'mobile_widget_area'); } weaverii_inject_area('prefooter'); // put the prefooter optional area if (!weaverii_getopt('wii_hide_footer') && !weaverii_is_checked_page_opt('ttw-hide-footer')) { ?> <footer id="colophon" role="contentinfo"> <div> <?php if (weaverii_getopt_checked('wii_footer_inject_move')) { weaverii_inject_area('footer'); // here is where the footer options get inserted get_sidebar('footer'); // get the sidebar-footer temeplate } else { get_sidebar('footer');