function inner($posts, $tt_column_number = '')
 {
     global $post;
     $buffy = '';
     $tt_block_layout = new tt_block_layout();
     if (empty($tt_column_number)) {
         $tt_column_number = $tt_block_layout->get_column_number();
         // get the column width of the block
     }
     $tt_post_count = 0;
     // the number of posts rendered
     $tt_current_column = 1;
     //the current column
     if (!empty($posts)) {
         foreach ($posts as $post) {
             $T20_slider_22 = new T20_slider_22($post);
             switch ($tt_column_number) {
                 case '1':
                     $buffy .= $T20_slider_22->render($post);
                     break;
             }
             //current column
             if ($tt_current_column == $tt_column_number) {
                 $tt_current_column = 1;
             } else {
                 $tt_current_column++;
             }
             $tt_post_count++;
         }
     }
     $buffy .= $tt_block_layout->close_all_tags();
     return $buffy;
 }
Example #2
0
 function inner($posts, $tt_column_number = '')
 {
     global $post;
     $buffy = '';
     $tt_block_layout = new tt_block_layout();
     if (empty($tt_column_number)) {
         $tt_column_number = $tt_block_layout->get_column_number();
         // get the column width of the block
     }
     $tt_post_count = 0;
     // the number of posts rendered
     if (!empty($posts)) {
         foreach ($posts as $post) {
             $T20_first_c = new T20_first_c($post);
             $T20_more_c = new T20_more_c($post);
             switch ($tt_column_number) {
                 case '1':
                     if ($tt_post_count == 0) {
                         $buffy .= '<div class="grid_6 alpha first_post">';
                         $buffy .= $T20_first_c->render();
                         $buffy .= '</div><div class="grid_6 omega introfxo more_posts">';
                     } else {
                         $buffy .= $T20_more_c->render();
                     }
                     break;
             }
             $tt_post_count++;
         }
         $buffy .= '</div>';
     }
     $buffy .= $tt_block_layout->close_all_tags();
     return $buffy;
 }
Example #3
0
 function inner($posts, $tt_column_number = '')
 {
     global $post;
     $buffy = '';
     $tt_block_layout = new tt_block_layout();
     if (empty($tt_column_number)) {
         $tt_column_number = $tt_block_layout->get_column_number();
         // get the column width of the block
     }
     $tt_post_count = 0;
     // the number of posts rendered
     if (!empty($posts)) {
         foreach ($posts as $post) {
             $T20_first = new T20_first($post);
             $T20_more = new T20_more($post);
             switch ($tt_column_number) {
                 case '1':
                     if ($tt_post_count == 0) {
                         if (is_rtl()) {
                             $first_rtl = 'grid_6 omega righter';
                             $sec_rtl = 'grid_6 alpha lefter';
                         } else {
                             $first_rtl = 'grid_6 alpha';
                             $sec_rtl = 'grid_6 omega';
                         }
                         $buffy .= '<div class="first_post ' . $first_rtl . '">';
                         $buffy .= $T20_first->render();
                         $buffy .= '</div><div class="more_posts introfxo ' . $sec_rtl . '">';
                     } else {
                         $buffy .= $T20_more->render();
                     }
                     break;
             }
             $tt_post_count++;
         }
         $buffy .= '</div>';
     }
     $buffy .= $tt_block_layout->close_all_tags();
     return $buffy;
 }