Merge pull request #1238 from Alkarex/download-podcast

Download icon 💾 for podcasts
This commit is contained in:
Alexandre Alapetite
2016-09-05 20:48:52 +02:00
committed by GitHub
3 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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 .= '<p class="enclosure"><img lazyload="" src="' . $elink . '" alt="" /></p>';
} elseif (strpos($mime, 'audio/') === 0) {
$content .= '<br /><audio lazyload="" postpone="" preload="none" src="' . $elink . '" controls="controls" />';
$content .= '<p class="enclosure"><audio preload="none" src="' . $elink . '" controls="controls"></audio> <a download="" href="' . $elink . '">💾</a></p>';
} elseif (strpos($mime, 'video/') === 0) {
$content .= '<br /><video lazyload="" postpone="" preload="none" src="' . $elink . '" controls="controls" />';
$content .= '<p class="enclosure"><video preload="none" src="' . $elink . '" controls="controls"></video> <a download="" href="' . $elink . '">💾</a></p>';
} else {
unset($elinks[$elink]);
}

View File

@@ -807,6 +807,10 @@ input:checked + .slide-container .properties {
display: none;
}
.enclosure > [download] {
font-size: xx-large;
margin-left: .8em;
}
/*=== MOBILE */
/*===========*/