diff options
| author | 2016-09-03 21:46:43 +0200 | |
|---|---|---|
| committer | 2016-09-03 21:46:43 +0200 | |
| commit | 3b2b91e1f2bd7ad653a6e8dd079bce34910d9361 (patch) | |
| tree | 76b2caa4f7db796f75bf744306791d45ad244e93 | |
| parent | 57705c679b56b0f9eb5c343fd24f15fc80926b5b (diff) | |
Download icon 💾 for podcasts
https://github.com/FreshRSS/FreshRSS/issues/1236
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | app/Models/Feed.php | 6 | ||||
| -rw-r--r-- | p/themes/base-theme/template.css | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1002873d2..c61478b33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 2016-XX-XX FreshRSS 1.6.0-dev +* UI + * Download icon 💾 for podcasts [#1236](https://github.com/FreshRSS/FreshRSS/issues/1236) + ## 2016-08-29 FreshRSS 1.5.0 diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 6104b1e31..5d09e7be8 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -309,11 +309,11 @@ class FreshRSS_Feed extends Minz_Model { $elinks[$elink] = '1'; $mime = strtolower($enclosure->get_type()); if (strpos($mime, 'image/') === 0) { - $content .= '<br /><img lazyload="" postpone="" src="' . $elink . '" alt="" />'; + $content .= '<br /><img lazyload="" src="' . $elink . '" alt="" />'; } elseif (strpos($mime, 'audio/') === 0) { - $content .= '<br /><audio lazyload="" postpone="" preload="none" src="' . $elink . '" controls="controls" />'; + $content .= '<br /><audio preload="none" src="' . $elink . '" controls="controls"></audio> <a class="download-enclosure" href="' . $elink . '">💾</a>'; } elseif (strpos($mime, 'video/') === 0) { - $content .= '<br /><video lazyload="" postpone="" preload="none" src="' . $elink . '" controls="controls" />'; + $content .= '<br /><video preload="none" src="' . $elink . '" controls="controls"></video> <a class="download-enclosure" href="' . $elink . '">💾</a>'; } else { unset($elinks[$elink]); } diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 8a12423be..0902dac0c 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -807,6 +807,10 @@ input:checked + .slide-container .properties { display: none; } +.download-enclosure { + font-size: xx-large; + margin-left: .8em; +} /*=== MOBILE */ /*===========*/ |
