findEveryItemByStatus($status);
}
else {
if($showAll){
$items = $itemMapper->findAll($feedId);
} else {
$items = $itemMapper->findAllStatus($feedId, OCA\News\StatusFlag::UNREAD);
}
}
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 '' . $item->getDate() . '';
echo '
' . '
';
echo '';
echo '';
if ($specialfeed) {
$from = $l->t('from') . ' ' . parse_url($item->getUrl(), PHP_URL_HOST);
echo '' . $from .'
';
}
if(($item->getAuthor() !== null) && (trim($item->getAuthor()) != '')){
echo ''. $l->t('by') . ' ' . $item->getAuthor() . '
';
}
echo '' . $item->getBody() . '
';
echo '';
echo ' ';
}
echo '
';