From 82421de5ad110fc96e68b436b6cfed2af481a674 Mon Sep 17 00:00:00 2001
From: William Hearn <sylus1984@gmail.com>
Date: Tue, 10 May 2016 09:35:21 -0400
Subject: [PATCH] Convert Deploy Interface to leverage wb tabs.

---
 deploy_plus.theme.inc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/deploy_plus.theme.inc b/deploy_plus.theme.inc
index c1784b2..b8dc9cc 100644
--- a/deploy_plus.theme.inc
+++ b/deploy_plus.theme.inc
@@ -119,14 +119,14 @@ function theme_deploy_plus_overview($variables) {
     $container[$position][] = $block;
   }
 
-  $output = '<div class="admin clearfix">';
+  $output = '<div class="wb-tabs admin clearfix">';
+  $output .= '<div class="tabpanels">';
   foreach ($container as $position => $blocks) {
     foreach ($blocks as $block) {
       $status_info = deploy_status_info($block['status']);
 
-      $output .= '<div class="' . $position . ' clearfix">';
-      $output .= '<div class="admin-panel deploy-panel">';
-      $output .= '<h3>' . $block['plan_title'] . '</h3>';
+      $output .= '<details class=" ' . $position . ' clearfix">';
+      $output .= '<summary>' . $block['plan_title'] . '</summary>';
       if (!$block['fetch_only'] && $status_info) {
         $output .= '<div class="messages ' . $status_info['class'] . '">';
         $output .= '<h4 class="element-invisible">Status message</h4>';
@@ -166,11 +166,11 @@ function theme_deploy_plus_overview($variables) {
       $output .= '<div class="body">';
       $output .= $block['content'];
       $output .= '</div>';
-      $output .= '</div>';
-      $output .= '</div>';
+      $output .= '</details>';
     }
   }
   $output .= '</div>';
+  $output .= '</div>';
   return $output;
 }
 
-- 
2.5.4 (Apple Git-61)

