diff options
author | Xéfir Destiny <xefir@crystalyx.net> | 2014-06-29 16:38:26 +0200 |
---|---|---|
committer | Xéfir Destiny <xefir@crystalyx.net> | 2014-06-29 16:38:26 +0200 |
commit | 3049a6042013a7f15cd2398dad95a37325e60259 (patch) | |
tree | 89d949af5c4e0e05e4b11b0531bfefa8a7360df9 /templates | |
parent | e1a7814e0f2c00b6f939f85217a7c5d5e578e129 (diff) |
Add img enclosure support
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.items.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index 9e5c2a917..801f6e133 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -70,7 +70,8 @@ <video ui-if="item.enclosureMime.indexOf('video/') == 0" type="{{ item.enclosureMime }}" ng-src="{{ item.enclosureLink|trustUrl }}" controls><?php p($l->t('Download')) ?></video> - <a ui-if="item.enclosureMime.indexOf('audio/') != 0 && item.enclosureMime.indexOf('video/') != 0" type="{{ item.enclosureMime }}" ng-href="{{ item.enclosureLink|trustUrl }}"><?php + <img ui-if="item.enclosureMime.indexOf('image/') == 0" type="{{ item.enclosureMime }}" ng-src="{{ item.enclosureLink|trustUrl }}" alt="" /> + <a ui-if="item.enclosureMime.indexOf('audio/') != 0 && item.enclosureMime.indexOf('video/') != 0 && item.enclosureMime.indexOf('image/') != 0" type="{{ item.enclosureMime }}" ng-href="{{ item.enclosureLink|trustUrl }}"><?php p($l->t('Download')) ?></a> </div> |