';
$output .= __('RSS Error: ', 'easel'). $rss->get_error_message();
$output .= '
';
}
if ( !$rss->get_item_quantity() ) {
$output .= '' . __('There were no backlinks found.','easel') . "
\r\n";
} else {
$output .= "\r\n";
if ( !isset($items) )
$items = 1000;
foreach ( $rss->get_items(0, $items) as $item ) {
$publisher = '';
$site_link = '';
$link = '';
$content = '';
$date = '';
$link = esc_url( strip_tags( $item->get_link() ) );
$author = $item->get_author();
if ( $author ) {
$site_link = esc_url( strip_tags( $author->get_link() ) );
if ( !$publisher = esc_html( strip_tags( $author->get_name() ) ) )
$publisher = __('Somebody','easel');
} else {
$publisher = __('Somebody','easel');
}
if ( $site_link )
$publisher = "$publisher";
else
$publisher = "$publisher";
$content = $item->get_content();
$content = wp_html_excerpt($content, 200) . ' ...';
if ( $link )
/* translators: incoming links feed, %1$s is other person, %3$s is content */
$text = __( '%1$s linked here saying, "%3$s"' ,'easel');
else
/* translators: incoming links feed, %1$s is other person, %3$s is content */
$text = __( '%1$s linked here saying,
"%3$s"','easel');
if ( !empty($show_date) ) {
if ( !empty($show_author) || !empty($show_summary) )
/* translators: incoming links feed, %4$s is the date */
$text .= ' ' . __( 'on %4$s', 'easel');
$date = esc_html( strip_tags( $item->get_date() ) );
$date = strtotime( $date );
$date = gmdate( get_option( 'date_format' ), $date );
}
$output .= "\t- " . sprintf( $text, $publisher, $link, $content, $date ) . "
\n";
}
$output .= "
\r\n";
}
$rss->__destruct();
unset($rss);
if (have_posts()) {
while (have_posts()) : the_post(); ?>
comment_status == 'open') {
comments_template('', true);
}
}
get_footer();
?>