} // start the wordpress loop! $postNumInCategory = 0; if (have_posts()) { while (have_posts()) { the_post(); $postNumInCategory = $postNumInCategory + 1; $postIDsUsed[] = $post->ID; if ($postNumInCategory == 1) { ?> <article id="post-<?php the_ID(); ?> " <?php independent_publisher_post_classes(''); ?> > <header class="entry-header"> <?php /* Show entry title meta only when * Show Full Content First Post enabled AND * this is the very first standard post AND * we're on the home page AND this is not a sticky post */ echo "<!-- category modified " . get_the_date('F j, Y g:i a') . "-->"; ?> <?php /* ODDI: Show large image on first instance in loop */ $useFullThumbnail = $currentCategoryNum == 1;
} /* SAFETY CHECK IN CASE THEY FORGET THUMBNAIL */ if (!has_post_thumbnail()) { $useFullThumbnail = false; $useSmallThumbnail = false; } $customClass = ""; if ($pageBodyID == 'inFocus' && $featuredInFocusPostID == $post->ID) { $customClass = "inFocusSticky"; } ?> <article id="post-<?php the_ID(); ?> " <?php independent_publisher_post_classes($customClass); ?> > <header class="entry-header"> <?php if ($useFullThumbnail) { ?> <a href="<?php the_permalink(); ?> " title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'independent-publisher'), the_title_attribute('echo=0'))); ?> " rel="bookmark"> <?php