Exemple #1
0
function sidebar_has_widgets_array(array $sidebar_id)
{
    $bool = false;
    if (has_count($sidebar_id)) {
        foreach ($sidebar_id as $id) {
            $bool = wpiSidebar::hasWidget($id);
        }
        unset($sidebar_id);
    }
    return $bool;
}
Exemple #2
0
<?php 
}
?>
		</div>
			<div id="sidebar" class="fl">
				<dl class="xoxo">					
					<dd id="sidebar-1" class="cf">
					<?php 
wpi_dynamic_sidebar(1);
?>
					</dd>
				</dl>
			</div>	
<?php 
wpi_section_end();
if (wpiSidebar::hasWidget(2)) {
    wpi_section_start('content-mid');
    ?>
	
		<div id="sidebar-mid">
				<dl class="xoxo w cf">					
					<dd id="sidebar-2" class="cf">
					<?php 
    wpi_dynamic_sidebar(2);
    ?>
					</dd>
				</dl>
		</div>
<?php 
    wpi_section_end();
}
Exemple #3
0
    wpi_current_template();
    wpi_pagination();
    ?>
		
<?php 
} else {
    wpi_template_nopost();
    ?>
	
<?php 
}
?>
		</div>		
<?php 
wpi_section_end();
if (wpiSidebar::hasWidget(10)) {
    wpi_section_start('content-mid');
    ?>
		<div id="sidebar-mid">
				<dl class="xoxo w cf">					
					<dd id="sidebar-2" class="cf">
					<?php 
    wpi_dynamic_sidebar(10);
    ?>
					</dd>
				</dl>
		</div>
<?php 
    wpi_section_end();
}
get_footer();