} // row container head $editor->row_header($editor->rom['styles'], $editor->rom['options'], $remove_gutter, $is_fluid); foreach ($editor->rom['columns'] as $mc_column_id => $mc_columns) { // column width $column_width = $mc_columns['options']['column-width']; // column div open echo '<div class="' . $pre . $column_width . ' masonry-item remove-gutter-' . $remove_gutter . '">'; foreach ($mc_columns as $mc_content_id => $mc_content) { // content type index $mc_content['content_type'] = isset($mc_content['content_type']) ? $mc_content['content_type'] : ''; // content index $mc_content['content'] = isset($mc_content['content']) ? $mc_content['content'] : ''; // custom module $mc_content['custom_module'] = isset($mc_content['custom_module']) ? $mc_content['custom_module'] : ''; // single edit values $view_se_values = array('has_container' => false, 'id' => $mc_content_id, 'options' => isset($mc_content['options']) ? $mc_content['options'] : '', 'styles' => isset($mc_content['styles']) ? $mc_content['styles'] : '', 'in_column' => true, 'single_edit_content_id' => $mc_content_id, 'single_edit_column_id' => $mc_column_id, 'single_edit_content_type' => $mc_content['content_type'], 'module_id' => $mc_content['custom_module']); #---------------------------------- # multi column view #---------------------------------- if ($mc_content['content_type']) { $editor->load_module(stripslashes($mc_content['content']), $view_se_values, $mc_content['content_type']); } } // column div close echo '</div>'; } // row container footer $editor->row_footer($remove_gutter, $is_fluid); } }