EstudioJuridicoAlmagro_Web/www/sidebar-header.php
2013-03-01 18:06:10 +00:00

37 lines
931 B
PHP

<?php
/**
* The header widget areas.
*
* @package WordPress
* @subpackage Progressio
*/
?>
<?php
$is_active = false;
$sidebar_count = (int)wpv_get_option('header-sidebars');
for($i=1; $i<=$sidebar_count; $i++) {
$is_active = $is_active || is_active_sidebar("header-sidebars-$i");
}
if($is_active):
?>
<div id="header-sidebars" class="centralblock">
<div class="clearfix">
<?php for($i=1; $i<=$sidebar_count; $i++): ?>
<?php if ( is_active_sidebar("header-sidebars-$i") ) : ?>
<?php $is_last = wpv_get_option("header-sidebars-$i-last") ?>
<aside class="<?php wpvge("header-sidebars-$i-width")?><?php if($is_last) echo ' last' ?>">
<?php dynamic_sidebar("header-sidebars-$i"); ?>
</aside>
<?php if($is_last): ?>
<div class="clearboth push"></div>
<?php endif ?>
<?php endif; ?>
<?php endfor ?>
</div>
</div>
<?php endif; //$is_active ?>