From f99e9475a6e9537acbc7be716ca5d8a2b3278f41 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 16 Aug 2012 00:33:52 +0200 Subject: show author if the item has one --- templates/part.items.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates/part.items.php') diff --git a/templates/part.items.php b/templates/part.items.php index 399274e30..da4855dc4 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -42,7 +42,12 @@ foreach($items as $item) { echo '

' . $item->getTitle() . '

'; - echo '

' . $l->t('from') . ' ' . parse_url($item->getUrl(), PHP_URL_HOST) . '

'; + if(trim($item->getAuthor()) == ''){ + $from = $l->t('from') . ' ' . parse_url($item->getUrl(), PHP_URL_HOST); + } else { + $from = $l->t('from') . ' ' . $item->getAuthor(); + } + echo '

' . $from . '

'; echo '
' . $item->getBody() . '
'; -- cgit v1.2.3