$post_classes = thb_get_post_classes($i, array('item list'), 2); $post_classes[] = 'classic'; ?> <div id="post-<?php echo $post_id; ?> " <?php post_class($post_classes); ?> > <?php thb_post_start(); ?> <?php get_template_part('loop/formats/classic-' . thb_get_post_format()); ?> <?php thb_post_end(); ?> </div> <?php thb_post_after(); $i++; } ?> <?php } else { ?>
function thb_get_post_format_icon($post_id, $return = false) { global $post; $format = thb_get_post_format($post_id); switch ($format) { case 'gallery': $code = 'b'; break; case 'quote': $code = 'c'; break; case 'video': $code = 'd'; break; case 'image': $code = 'e'; break; case 'aside': $code = 'f'; break; case 'audio': $code = 'g'; break; case 'link': $code = 'h'; break; case 'standard': default: $code = 'a'; break; } if ($return) { return $code; } else { echo $code; } }
?> <?php if (thb_get_post_format() == 'audio') { thb_post_format_audio(); } ?> <?php if (thb_get_post_format() == 'gallery') { thb_post_format_gallery(array('size' => 'large-cropped')); } ?> <?php if (thb_get_post_format() == 'quote') { $quote = thb_get_post_format_quote_text(); $quote_url = thb_get_post_format_quote_url(); $quote_author = thb_get_post_format_quote_author(); ?> <div class="single-post-quote"> <?php if (!empty($quote)) { ?> <blockquote> <p><?php echo $quote; ?> </p> </blockquote> <?php
$post_classes = thb_get_post_classes($i, array('item list'), 2); $post_classes[] = 'stream'; ?> <div id="post-<?php echo $post_id; ?> " <?php post_class($post_classes); ?> > <?php thb_post_start(); ?> <?php get_template_part('loop/formats/stream-' . thb_get_post_format()); ?> <?php thb_post_end(); ?> </div> <?php thb_post_after(); ?> <?php $i++; } ?> <?php