function inner($posts, $td_column_number = '') { $buffy = ''; $td_block_layout = new td_block_layout(); if (!empty($posts)) { foreach ($posts as $post) { switch ($td_column_number) { case '1': $td_module_mx3 = new td_module_mx3($post); $buffy .= $td_module_mx3->render($post); break; case '2': $td_module_14 = new td_module_14($post); $buffy .= $td_module_14->render($post); break; case '3': //we use module 14 - maybe use a full screen one? $td_module_14 = new td_module_14($post); $buffy .= $td_module_14->render($post); break; } } } $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) { switch ($td_column_number) { case '1': $td_module_mx3 = new td_module_mx3($post); $buffy .= $td_module_mx3->render($post); break; case '2': $td_module_14 = new td_module_14($post); $buffy .= $td_module_14->render($post); break; case '3': //we use module 14 - maybe use a full screen one? $td_module_14 = new td_module_14($post); $buffy .= $td_module_14->render($post); break; } } } $buffy .= $td_block_layout->close_all_tags(); return $buffy; }