Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inner($posts, $td_column_number = '') {
- $buffy = '';
- $td_block_layout = new td_block_layout();
- $countModules = 0;
- 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();
- $countModules++;
- if ($countModules == 2) {
- $buffy .= $td_block_layout->open12();
- $buffy .= td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_4'));
- $buffy .= $td_block_layout->close12();
- }
- }
- }
- $buffy .= $td_block_layout->close_all_tags();
- return $buffy;
- }
Advertisement
Add Comment
Please, Sign In to add comment