function inner($posts, $td_column_number = '')
 {
     $buffy = '';
     $buffy .= '<div class="td-related-row">';
     if (!empty($posts)) {
         foreach ($posts as $post) {
             $td_module_related_posts = new td_module_related_posts($post);
             $buffy .= '<div class="td-related-span4">';
             $buffy .= $td_module_related_posts->render();
             $buffy .= '</div>';
         }
     }
     $buffy .= '</div>';
     return $buffy;
 }
 function inner($posts, $td_column_number = '')
 {
     $td_block_layout = new td_block_layout();
     $td_block_layout->row_class = 'td-related-row';
     $td_block_layout->span4_class = 'td-related-span4';
     $buffy = '';
     $td_current_column = 1;
     //the current column
     if (!empty($posts)) {
         foreach ($posts as $td_post_count => $post) {
             $td_module_related_posts = new td_module_related_posts($post);
             switch ($td_column_number) {
                 case '3':
                     //the layout when we are on content + sidebar
                     $buffy .= $td_block_layout->open_row();
                     $buffy .= $td_block_layout->open4();
                     $buffy .= $td_module_related_posts->render();
                     $buffy .= $td_block_layout->close4();
                     if ($td_current_column == 3) {
                         $buffy .= $td_block_layout->close_row();
                     }
                     break;
                 case '5':
                     //the layout when we are on
                     $buffy .= $td_block_layout->open_row();
                     $buffy .= $td_block_layout->open4();
                     $buffy .= $td_module_related_posts->render();
                     $buffy .= $td_block_layout->close4();
                     if ($td_current_column == 5) {
                         $buffy .= $td_block_layout->close_row();
                     }
                     break;
             }
             //current column
             if ($td_current_column == $td_column_number) {
                 $td_current_column = 1;
             } else {
                 $td_current_column++;
             }
         }
         //end for each
     }
     $buffy .= $td_block_layout->close_all_tags();
     return $buffy;
 }