Example #1
0
 */
if (!is_active_sidebar('first-footer-widget-area') && !is_active_sidebar('second-footer-widget-area') && !is_active_sidebar('third-footer-widget-area') && !is_active_sidebar('fourth-footer-widget-area')) {
    return;
}
// check for stacked modes
if (weaverii_use_mobile('mobile') && weaverii_getopt('_wii_mode_mobile') != 'weaver-mobile-smart-stacked' && !weaverii_getopt_checked('wii_mobile_show_footerwidgets')) {
    return;
}
// If we get this far, we have widgets. Let do this.
?>
	<div id="sidebar_wrap_footer" <?php 
weaverii_footer_sidebar_class();
?>
>
<?php 
weaverii_trace_sidebar(__FILE__);
if (is_rtl()) {
    ?>
	<?php 
    if (is_active_sidebar('fourth-footer-widget-area')) {
        ?>
	<div class='widget-in-footer'><div id="fourth" class="widget-area" role="complementary">
		<?php 
        dynamic_sidebar('fourth-footer-widget-area');
        ?>
	</div></div><!-- #fourth .widget-area -->
	<?php 
    }
    ?>

	<?php 
Example #2
0
 function weaverii_get_sidebar_top($who)
 {
     weaverii_trace_sidebar(__FILE__ . ':sidebar_top:' . $who);
     if (!weaverii_is_checked_page_opt('sitewide-top-widget-area')) {
         weaverii_put_widgetarea('sitewide-top-widget-area', 'sidebar_top');
     }
     // sitewide top
     if (!weaverii_is_checked_page_opt('top-widget-area')) {
         switch ($who) {
             case 'index':
             case 'pwp':
             case 'single':
                 weaverii_put_widgetarea('blog-top-widget-area', 'sidebar_top');
                 break;
             case 'page':
                 weaverii_put_widgetarea('top-widget-area', 'sidebar_top');
                 break;
             case '404':
             case 'archive':
             case 'author':
             case 'category':
             case 'search':
             case 'tag':
                 weaverii_put_widgetarea('postpages-widget-area', 'sidebar_top');
                 break;
             case 'image':
             default:
                 break;
         }
     }
     // end not per page hide
     weaverii_put_perpage_widgetarea();
     // and any per page widget area
 }
Example #3
0
function weaverii_put_perpage_widgetarea()
{
    if (is_search() || is_archive()) {
        return;
    }
    weaverii_trace_sidebar(__FILE__ . ':put_perpage_widgetarea');
    return weaverii_replace_area('ttw_show_extra_areas', 'per-page-widget', 'sidebar_top');
}