if (is_active_sidebar('inhaltsinfo-area')) { dynamic_sidebar('inhaltsinfo-area'); } $i = 0; $col = 0; $numentries = $options['num-article-startpage-fullwidth'] + $options['num-article-startpage-halfwidth']; $col_count = 3; $cols = array(); while (have_posts() && $i < $numentries) { the_post(); $i++; ob_start(); if (isset($options['num-article-startpage-fullwidth']) && $options['num-article-startpage-fullwidth'] >= $i) { tf2013_post_teaser($options['teaser-titleup'], $options['teaser-datebox'], $options['teaser-dateline'], $options['teaser_maxlength'], $options['teaser-thumbnail_fallback'], $options['teaser-floating']); } else { tf2013_post_teaser($options['teaser-titleup-halfwidth'], $options['teaser-datebox-halfwidth'], $options['teaser-dateline-halfwidth'], $options['teaser-maxlength-halfwidth'], $options['teaser-thumbnail_fallback'], $options['teaser-floating-halfwidth']); } $output = ob_get_contents(); ob_end_clean(); if (isset($output)) { $cols[$col++] = $output; } } ?> <div class="columns"> <?php $z = 1; foreach ($cols as $key => $col) { if (isset($options['num-article-startpage-fullwidth']) && $options['num-article-startpage-fullwidth'] > $key) { echo $col; } else {
"><?php _e('Mehr Bildergalerien', 'tf2013'); ?> </a> | <?php comments_popup_link(__('Hinterlasse einen Kommentar', 'tf2013'), __('1 Kommentar', 'tf2013'), __('% Kommentare', 'tf2013')); ?> <?php edit_post_link(__('Bearbeiten', 'tf2013'), '|', ''); ?> <?php } else { tf2013_post_teaser($options['category-teaser-titleup'], $options['category-teaser-datebox'], $options['category-teaser-dateline'], $options['category-teaser-maxlength'], $options['teaser-thumbnail_fallback'], $options['category-teaser-floating']); } // This was the if statement that broke the loop into three parts based on categories. ?> <?php } // End the loop. Whew. ?> <?php /* Display navigation to next/previous pages when applicable */ if ($wp_query->max_num_pages > 1) { ?> <div class="post-nav"><ul> <li class="back"><?php