findAllStatus($feedId, OCA\News\StatusFlag::UNREAD);
} else {
$items = $itemMapper->findAll($feedId);
}
echo '
';
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 '
';
echo '
';
echo '
';
echo '
';
echo '';
echo '' . $l->t('from') . ' ' . parse_url($item->getUrl(), PHP_URL_HOST) . '
';
echo '' . $item->getBody() . '
';
echo ' ';
}
echo '
';