</div> <div class="content-body"> <h2><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> <div class="shareboxoffset"><div class="sharebox"> <?php echo linkSharesGen(get_permalink(), get_the_title()); ?> </div> </div> <div class="entry"> <?php the_content('Continue Reading'); ?> </div> </div> <div class="commentliner"> <?php comments_popup_link('— no comments yet, say something —', '— 1 comment, guess who —', '— % comments, join the party —'); ?> </div> </div> <!-- content-item -->
function widget_sf_posts($args) { extract($args); ?> <div class="content-item"> <?php $cat = get_option(THEME_PREFIX . "featured_content"); $num = get_option(THEME_PREFIX . "featured_num"); query_posts("cat={$cat}&showposts={$num}"); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="content-dets"> <h3>Posted on <?php the_time('M j, Y'); ?> </h3> <ul class="dets"> <li class="comments-link"><a href="<?php the_permalink(); ?> #comments" title=""><?php comments_number('0 Comments', '1 Comment', '% Comments'); ?> </a></li> </ul> </div> <div class="content-body"> <h2><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> <div class="shareboxoffset"><div class="sharebox"> <?php echo linkSharesGen(get_permalink(), get_the_title()); ?> </div> </div> <div class="entry"> <?php the_content('Continue Reading'); ?> </div> <div class="commentliner"> <?php comments_popup_link('— no comments yet, say something —', '— 1 comment, guess who —', '— % comments, join the party —'); ?> </div> </div> <?php } } else { ?> <?php } ?> </div> <!-- content-item --> <?php }