function inner($posts, $td_column_number = '') { $buffy = ''; $td_block_layout = new td_block_layout(); if (!empty($posts)) { foreach ($posts as $post) { $td_module_11 = new td_module_11($post); $buffy .= $td_block_layout->open12(); //added in 010 theme - span 12 doesn't use rows $buffy .= $td_module_11->render($post); $buffy .= $td_block_layout->close12(); } } $buffy .= $td_block_layout->close_all_tags(); return $buffy; }
function inner($posts, $td_column_number = '') { $buffy = ''; $td_block_layout = new td_block_layout(); if (empty($td_column_number)) { $td_column_number = td_util::vc_get_column_number(); // get the column width of the block from the page builder API } if (!empty($posts)) { foreach ($posts as $post) { $td_module_11 = new td_module_11($post); $buffy .= $td_block_layout->open12(); //added in 010 theme - span 12 doesn't use rows $buffy .= $td_module_11->render($post); $buffy .= $td_block_layout->close12(); } } $buffy .= $td_block_layout->close_all_tags(); return $buffy; }