';
foreach($items as $item) {
if($item->isRead()) {
$newsItemClass = "read";
} else {
$newsItemClass = "";
}
if($item->isImportant()) {
$starClass = 'important';
$startTitle = $l->t('Mark as unimportant');
} else {
$starClass = '';
$startTitle = $l->t('Mark as important');
}
echo '
';
echo '' . $item->getDate() . '';
echo '' . '
';
echo '';
echo '';
if ((int)$lastViewedFeedType !== OCA\News\FeedType::FEED) {
$feedTitle = $l->t('from') . ' ' . ' ' . $item->getFeedTitle() . ' ';
} else {
$feedTitle = '';
}
if(($item->getAuthor() !== null) && (trim($item->getAuthor()) !== '')) {
$author = $l->t('by') . ' ' . htmlspecialchars($item->getAuthor(), ENT_QUOTES, 'UTF-8');
} else {
$author = '';
}
if(!($feedTitle === '' && $author === '')){
echo ''. $feedTitle . $author . '
';
}
echo '' . $item->getBody() . '
';
echo '';
echo '';
}
echo '';