Guest User

Untitled

a guest
Nov 16th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. function inner($posts, $td_column_number = '') {
  2.  
  3. $buffy = '';
  4. $td_block_layout = new td_block_layout();
  5. $countModules = 0;
  6.  
  7. if (!empty($posts)) {
  8. foreach ($posts as $post) {
  9. $td_module_11 = new td_module_11($post);
  10.  
  11. $buffy .= $td_block_layout->open12(); //added in 010 theme - span 12 doesn't use rows
  12. $buffy .= $td_module_11->render($post);
  13. $buffy .= $td_block_layout->close12();
  14. $countModules++;
  15. if ($countModules == 2) {
  16. $buffy .= $td_block_layout->open12();
  17. $buffy .= td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_4'));
  18. $buffy .= $td_block_layout->close12();
  19. }
  20. }
  21. }
  22. $buffy .= $td_block_layout->close_all_tags();
  23. return $buffy;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment