示例#1
0
 function enlightenment_close_sidebar_row()
 {
     $sidebars = enlightenment_theme_option('sidebars');
     $sidebar = enlightenment_dynamic_sidebar();
     if (isset($sidebars[$sidebar]) && isset($sidebars[$sidebar]['grid'])) {
         $grid = enlightenment_get_grid($sidebars[$sidebar]['grid']);
         if (1 < $grid['content_columns']) {
             enlightenment_close_container();
         }
     }
 }
<?php

enlightenment_before_sidebar();
if (is_active_sidebar(enlightenment_dynamic_sidebar())) {
    ?>
	<div id="sidebar-footer-secondary" <?php 
    enlightenment_sidebar_class();
    ?>
 <?php 
    enlightenment_sidebar_extra_atts();
    ?>
>
		<div class="container">
			<?php 
    enlightenment_before_widgets();
    ?>
			<?php 
    dynamic_sidebar(enlightenment_dynamic_sidebar());
    ?>
			<?php 
    enlightenment_after_widgets();
    ?>
		</div>
	</div>
<?php 
}
enlightenment_after_sidebar();
 function enlightenment_unlimited_sidebars_open_widgets_container()
 {
     $locations = enlightenment_sidebar_locations();
     $template = enlightenment_current_sidebars_template();
     $location = enlightenment_current_sidebar_name();
     if (true === $locations[$template][$location]['contained']) {
         return;
     }
     $sidebars = enlightenment_registered_sidebars();
     $sidebar = enlightenment_dynamic_sidebar();
     if ($sidebars[$sidebar]['contain_widgets']) {
         enlightenment_open_container();
     } else {
         enlightenment_open_container_fluid();
     }
 }