$summary = get_excerpt($summary); $newitem->setDescription($summary); if ($options->content) { $newitem->setElement('content:encoded', $html); } unset($_paras, $_para, $content_block); } else { if ($options->content) { $newitem->setDescription($html); } unset($content_block); } // set date if ((int) $item->get_date('U') > 0) { $newitem->setDate((int) $item->get_date('U')); } elseif ($extractor->getDate()) { $newitem->setDate($extractor->getDate()); } // add authors if ($authors = $item->get_authors()) { foreach ($authors as $author) { // for some feeds, SimplePie stores author's name as email, e.g. http://feeds.feedburner.com/nymag/intel if ($author->get_name() !== null) { $newitem->addElement('dc:creator', $author->get_name()); } elseif ($author->get_email() !== null) { $newitem->addElement('dc:creator', $author->get_email()); } } } elseif ($authors = $extractor->getAuthors()) { //TODO: make sure the list size is reasonable foreach ($authors as $author) {