<article class="excerpt"> <a class="focus" href="<?php the_permalink(); ?> "><img src="<?php echo MBT_thumbnail(160, 109); ?> " class="thumb" alt="<?php the_title(); ?> "/></a> <h2><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title(); ?> </a></h2> <p class="note"><?php echo mb_strimwidth(MBT_strip_tags($post->post_content), 0, "150", "..."); ?> </p> <p class="meta"> <time><?php echo get_the_time('Y-m-d'); ?> </time> <?php
function mbtheme_posts_list($orderby, $limit, $cat, $img) { $args = array('order' => DESC, 'cat' => $cat, 'orderby' => $orderby, 'showposts' => $limit, 'caller_get_posts' => 1); query_posts($args); while (have_posts()) { the_post(); ?> <li><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php if ($img) { echo '<span class="thumbnail"><img src="' . MBT_thumbnail(75, 58) . '" class="thumb" alt="' . get_the_title() . '" /></span>'; } else { $img = ''; } ?> <h4><?php the_title(); ?> </h4></a></li> <?php } wp_reset_query(); }