示例#1
0
        $footer_widgets_class = 'footer-widgets-' . waxom_option("footer_widgets_skin");
    } elseif ($footer_color == 'dark') {
        $footer_widgets_class = 'footer-widgets-dark';
    } else {
        $footer_widgets_class = 'footer-widgets-light';
    }
    ?>
	<div id="footer-widgets" class="<?php 
    echo 'footer-' . esc_attr($footer_color) . ' ' . esc_attr($footer_widgets_class);
    ?>
">
		<div class="container">
			<div class="inner">
				<?php 
    for ($i = 1; $i <= waxom_get_footer_cols(); $i++) {
        if ($i == waxom_get_footer_cols()) {
            $last_class = ' vntd-span-last';
        }
        echo '<div class="' . esc_attr(waxom_get_footer_cols_class()) . '">';
        if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer' . $i)) {
        }
        echo '</div>';
    }
    ?>
			</div>
		</div>
		
	</div>
	<?php 
}
?>
示例#2
0
function waxom_get_footer_cols_class()
{
    $widget_col_class = 'col-xs-3';
    if (waxom_get_footer_cols() == 1) {
        $widget_col_class = 'col-xs-12';
    } elseif (waxom_get_footer_cols() == 2) {
        $widget_col_class = 'col-xs-6';
    } elseif (waxom_get_footer_cols() == 3) {
        $widget_col_class = 'col-xs-4';
    }
    return $widget_col_class;
}