$columns) { if (!empty($columns)) { $row_prop = flatten_array($columns); $row_htmlId = ($row_prop['page_grid_html_id'] ? $row_prop['page_grid_html_id'] : "row-".$row_id); $row_htmlClass = ($row_prop['page_grid_class'] ? " ".$row_prop['page_grid_class'] : ""); if ($row_prop['page_content'] or $row_prop['page_options']) { $html .= "
\n"; $html .= ($row_prop['page_grid_container'] ? "
\n" : ""); foreach ($columns as $column_id => $colData) { if ($colData['page_content_id']) { $span = self::calculateSpan($colData['page_grid_column_count'], count($columns)); $html .= "
\n"; $html .= self::display_Widget($colData); $html .= "
\n"; } } $html .= ($row_prop['page_grid_container'] ? "
\n" : ""); $html .= "
\n"; } } } return (string)$html; } }