parse_args($args, $options));
if (have_posts()) {
$output .= $before_related."\n";
while (have_posts()) {
the_post();
$link = get_permalink();
$tooltip = esc_attr((get_the_title()) ? get_the_title() : get_the_ID());
$title = get_the_title();
$round = round(get_the_score(),1);
$score = (current_user_can('manage_options') && $domain !== 'rss' && !is_admin())
? '('.$round.')'
: null;
$output .=
$before_title.
''.
$title.' '.$score.
'';
if ($show_excerpt) {
$excerpt = strip_tags((string) get_the_excerpt());
preg_replace('/([,;.-]+)\s*/','\1 ', $excerpt);
$excerpt = implode(' ', array_slice(preg_split('/\s+/',$excerpt), 0, $excerpt_length)).'...';
$output .= $before_post.$excerpt.$after_post;
}
$output .= $after_title."\n";
}
$output .= $after_related."\n";
} else {
$output .= $no_results;
}