?> " title="<?php printf(__('View all posts by %s', 'fastfood'), esc_attr(get_the_author())); ?> "><?php echo get_the_author(); ?> </a><?php edit_post_link(__('Edit', 'fastfood'), ' - '); ?> </strong></small></div> <?php the_content(); ?> <div class="fixfloat status-date"><small><?php echo fastfood_friendly_date(); ?> </small> <a href="<?php the_permalink(); ?> " rel="bookmark">→</a></div> </div> </div> <br class="fixfloat" /> <?php fastfood_hook_entry_bottom(); ?>
function widget($args, $instance) { $cache = wp_cache_get('tb_besides', 'widget'); if (!is_array($cache)) { $cache = array(); } if (!isset($args['widget_id'])) { $args['widget_id'] = null; } if (isset($cache[$args['widget_id']])) { echo $cache[$args['widget_id']]; return; } ob_start(); $instance = $this->validate_and_sanitize($instance); extract($args, EXTR_SKIP); extract($instance); $besides_args = array('order' => 'DESC', 'posts_per_page' => $number, 'no_found_rows' => true, 'nopaging' => 0, 'post_status' => 'publish', 'post__not_in' => get_option('sticky_posts'), 'tax_query' => array(array('taxonomy' => 'post_format', 'terms' => array('post-format-' . $type), 'field' => 'slug', 'operator' => 'IN'))); $besides = new WP_Query(); $besides->query($besides_args); if ($besides->have_posts()) { echo $before_widget; if ($title) { echo $before_title . apply_filters('widget_title', $title, $instance, $this->id_base) . $after_title; } ?> <?php while ($besides->have_posts()) { $besides->the_post(); ?> <?php if ($type == 'aside') { ?> <div class="wentry-aside"> <?php the_content(); ?> <div class="fixfloat details"><?php the_author(); ?> - <a href="<?php the_permalink(); ?> " rel="bookmark"><?php the_time(get_option('date_format')); ?> </a> - <?php comments_popup_link('(0)', '(1)', '(%)'); ?> </div> </div> <?php } elseif ($type == 'status') { ?> <div class="wentry-status"> <?php echo get_avatar(get_the_author_meta('user_email'), 24, $default = get_option('avatar_default'), get_the_author()); ?> <a style="font-weight: bold;" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?> " title="<?php printf('View all posts by %s', esc_attr(get_the_author())); ?> "><?php echo get_the_author(); ?> </a> <?php the_content(); ?> <div class="fixfloat details"><?php echo fastfood_friendly_date(); ?> </div> </div> <?php } ?> <?php } ?> <?php echo $after_widget; wp_reset_postdata(); } $cache[$args['widget_id']] = ob_get_flush(); wp_cache_set('tb_besides', $cache, 'widget'); }