Пример #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();
         }
     }
 }
Пример #2
0
function enlightenment_wrap_footer_sidebar_after_widgets()
{
    if ('footer' == enlightenment_current_sidebar_name()) {
        enlightenment_close_container();
        enlightenment_close_container();
    }
}
Пример #3
0
 function enlightenment_unlimited_sidebars_close_widgets_container()
 {
     $locations = enlightenment_sidebar_locations();
     $template = enlightenment_current_sidebars_template();
     $location = enlightenment_current_sidebar_name();
     if (true === $locations[$template][$location]['contained']) {
         return;
     }
     enlightenment_close_container();
 }