while (have_posts()) { the_post(); ?> <?php /* Permalink nav has to be inside loop */ if (is_single()) { include TEMPLATEPATH . '/navigation.php'; } ?> <div id="post-<?php the_ID(); ?> " class="<?php k2_post_class($post_index++, in_category($k2asidescategory)); ?> "> <div class="entry-head"> <h3 class="entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark" title='<?php printf(__('Permanent Link to "%s"', 'k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)), 1)); ?> '><?php the_title(); ?> </a></h3> <div class="entry-meta">
get_header(); ?> <div class="content"> <div id="primary"> <div id="current-content" class="hfeed"> <?php while (have_posts()) { the_post(); ?> <div id="post-<?php the_ID(); ?> " class="<?php k2_post_class(); ?> "> <div class="page-head"> <h2><a href="<?php the_permalink(); ?> " rel="bookmark" title='<?php printf(__('Permanent Link to "%s"', 'k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)), 1)); ?> '><?php the_title(); ?> </a></h2> <?php
function asides_sidebar_module($args) { global $post; extract($args); $k2asidescategory = get_option('k2asidescategory'); if ($k2asidescategory != '0') { echo $before_module . $before_title . $title . $after_title; ?> <span class="metalink"><a href="<?php bloginfo('url'); ?> /?feed=rss&cat=<?php echo $k2asidescategory; ?> " title="<?php _e('RSS Feed for Asides', 'k2_domain'); ?> " class="feedlink"><img src="<?php bloginfo('template_directory'); ?> /images/feed.png" alt="RSS" /></a></span> <div> <?php $asides_count = 1; $asides = new WP_Query('cat=' . $k2asidescategory . '&showposts=' . sbm_get_option('num_posts')); foreach ($asides->posts as $post) { setup_postdata($post); ?> <div id="post-<?php the_ID(); ?> " class="<?php k2_post_class($asides_count++, true); ?> "> <span>» </span><?php the_content(__('(more)', 'k2_domain')); ?> <span class="metalink"><a href="<?php the_permalink(); ?> " rel="bookmark" title='<?php printf(__('Permanent Link to "%s"', 'k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)), 1)); ?> '><?php comments_number('(0)', '(1)', '(%)'); ?> </a></span><?php /* Edit Link */ edit_post_link(__('Edit', 'k2_domain'), '<span class="entry-edit">', '</span>'); ?> </div> <?php } /* end asides loop */ ?> </div> <?php echo $after_module; } /* end asides check */ }