# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- C:\Users\Danny\Documents\NetBeansProjects\Smithsonian\fusion\fusion_core\template.php
+++ C:\Users\Danny\Documents\NetBeansProjects\Smithsonian\fusion\fusion_core\template_1.php
@@ -397,7 +397,7 @@
       'arguments' => array('element' => NULL, 'name' => NULL, 'class' => NULL, 'width' => NULL),
     ),
     'grid_block' => array(
-      'arguments' => array('element' => NULL, 'name' => NULL),
+      'arguments' => array('element' => NULL, 'name' => NULL, 'grid' => NULL),
     ),
   );
 }
@@ -428,10 +428,15 @@
 }
 
 
-function fusion_core_grid_block($element, $name) {
+function fusion_core_grid_block($element, $name, $grid = '') {
   $output = '';
+  $grid_name = substr(theme_get_setting('theme_grid'), 0, 7);
+  $grid_width = (int)substr($grid_name, 4, 2);
+  if ($grid != '') {
+      $grid = 'grid' . $grid_width . '-' . $grid;
+  }
   if ($element) {
-    $output .= '<div id="' . $name . '" class="' . $name . ' block">' . "\n";
+    $output .= '<div id="' . $name . '" class="' . $name . ' ' . $grid . ' block">' . "\n";
     $output .= '<div id="' . $name . '-inner" class="' . $name . '-inner inner clearfix">' . "\n";
     $output .= $element;
     $output .= '</div><!-- /' . $name . '-inner -->' . "\n";
