1 template.php seven_admin_page($variables)

Overrides theme_admin_page().

Sorts the admin panels alphabetically and uses the bootstrap grid.

File

core/themes/seven/template.php, line 91
Preprocess functions and theme function overrides for the Seven theme.

Code

function seven_admin_page($variables) {
  $blocks = array_values($variables['blocks']);
  $container = array(
    'left' => '',
    'right' => '',
  );
  foreach ($blocks as $key => $block) {
    if ($block_output = theme('admin_block', array('block' => $block))) {
      if (($key + 1) < count($blocks) / 2) {
        $container['left'] .= $block_output;
      }
      else {
        $container['right'] .= $block_output;
      }
    }
  }

  backdrop_add_library('layout', 'bootstrap4-gs');
  $output = '<div class="row">';
  foreach ($container as $id => $data) {
    $output .= '<div class="col-md-6">';
    $output .= $data;
    $output .= '</div>';
  }
  $output .= '</div>';
  return $output;
}