From 30c37a2ccbd4d358abbe2eaaf3d2fe9f9f987d01 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sun, 11 Nov 2012 19:43:44 +0100 Subject: Use CRUDS consts as defined in https://github.com/owncloud/core/pull/356 --- templates/part.items.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/part.items.php') diff --git a/templates/part.items.php b/templates/part.items.php index 062cb557e..fcb2b12d8 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -38,7 +38,7 @@ foreach($items as $item) { } else { $feedTitle = ''; } - + if(($item->getAuthor() !== null) && (trim($item->getAuthor()) !== '')) { $author = $l->t('by') . ' ' . htmlspecialchars($item->getAuthor(), ENT_QUOTES, 'UTF-8'); } else { @@ -53,12 +53,12 @@ foreach($items as $item) { echo '
'; echo ''; echo '
'; - + echo ''; -- cgit v1.2.3 From 7c5d3649a3f137cc4c4bdd36dbb3639f2638d52c Mon Sep 17 00:00:00 2001 From: Alessandro Cosentino Date: Tue, 13 Nov 2012 15:38:54 -0500 Subject: use the core functions for relative dates --- templates/part.items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/part.items.php') diff --git a/templates/part.items.php b/templates/part.items.php index fcb2b12d8..efad98830 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -22,8 +22,9 @@ foreach($items as $item) { echo '
  • '; echo '' . $item->getDate() . ''; + $relative_modified_date = OCP\relative_modified_date($item->getDate()); echo '

    ' . '

    '; + date('c', $item->getDate()) . '">' . $relative_modified_date . '' . ''; echo '
    '; echo '
      '; -- cgit v1.2.3 From 207c085b30955761beb0e76837fc1838148a648c Mon Sep 17 00:00:00 2001 From: Nick Frey Date: Wed, 28 Nov 2012 16:57:07 -0600 Subject: Play audio podcasts from feeds in the News app --- templates/part.items.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'templates/part.items.php') diff --git a/templates/part.items.php b/templates/part.items.php index efad98830..3d043dfd0 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -50,7 +50,20 @@ foreach($items as $item) { echo '

      '. $feedTitle . $author . '

      '; } - echo '
      ' . $item->getBody() . '
      '; + echo '
      '; + echo $item->getBody(); + + if($item->getEnclosure() !== null) { + $enclosure = $item->getEnclosure(); + $enclosureType = htmlspecialchars($enclosure->getMimeType(), ENT_QUOTES, 'UTF-8'); + $enclosureLink = htmlspecialchars($enclosure->getLink(), ENT_QUOTES, 'UTF-8'); + $enclosureFilename = htmlspecialchars(basename($enclosureLink), ENT_QUOTES, 'UTF-8'); + + echo '


      '; + echo 'Original audio source (' . $enclosureFilename . ')'; + } + + echo '
      '; echo '
      '; echo '
        '; -- cgit v1.2.3